File tree Expand file tree Collapse file tree 2 files changed +23
-8
lines changed
Release/src/websockets/client Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- git clone --depth=1 https://github.com/x2on/OpenSSL-for-iPhone.git
5
- pushd OpenSSL-for-iPhone
6
- ./build-libssl.sh
7
- popd
8
- mkdir openssl
9
- mv OpenSSL-for-iPhone/include openssl
10
- mv OpenSSL-for-iPhone/lib openssl
11
4
git clone https://git.gitorious.org/boostoniphone/galbraithjosephs-boostoniphone.git boostoniphone
12
5
pushd boostoniphone
13
- sed -e ' s/\${BOOST_LIBS:=".*"}/\${BOOST_LIBS:="random thread filesystem regex locale system"}/g' -i .bak boost.sh
6
+ sed -e ' s/\${IPHONE_SDKVERSION:=7.0}/\${IPHONE_SDKVERSION:=8.0}/' -i .bak boost.sh
7
+ sed -e ' s/\${BOOST_LIBS:=".*"}/\${BOOST_LIBS:="random thread filesystem regex locale system date_time"}/g' -i .bak boost.sh
14
8
./boost.sh
15
9
pushd ios/framework/boost.framework/Versions/A
16
10
mkdir Headers2
@@ -19,6 +13,15 @@ mv Headers2 Headers
19
13
popd
20
14
popd
21
15
mv boostoniphone/ios/framework/boost.framework .
16
+
17
+ git clone --depth=1 https://github.com/x2on/OpenSSL-for-iPhone.git
18
+ pushd OpenSSL-for-iPhone
19
+ ./build-libssl.sh
20
+ popd
21
+ mkdir openssl
22
+ mv OpenSSL-for-iPhone/include openssl
23
+ mv OpenSSL-for-iPhone/lib openssl
24
+
22
25
hg clone https://code.google.com/p/ios-cmake/
23
26
mkdir build.ios
24
27
pushd build.ios
Original file line number Diff line number Diff line change 41
41
#pragma GCC diagnostic ignored "-Wconversion"
42
42
#pragma GCC diagnostic ignored "-Wunused-parameter"
43
43
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
44
+ #if defined(__APPLE__)
45
+ #include " stdlib.h"
46
+ // Issue caused by iOS SDK 8.0
47
+ #pragma push_macro("ntohll")
48
+ #pragma push_macro("htonll")
49
+ #undef ntohll
50
+ #undef htonll
51
+ #endif
44
52
#include < websocketpp/config/asio_client.hpp>
45
53
#include < websocketpp/config/asio_no_tls_client.hpp>
46
54
#include < websocketpp/client.hpp>
55
+ #if defined(__APPLE__)
56
+ #pragma pop_macro("htonll")
57
+ #pragma pop_macro("ntohll")
58
+ #endif
47
59
#pragma GCC diagnostic pop
48
60
#else /* __GNUC__ */
49
61
#pragma warning( disable : 4503 )
You can’t perform that action at this time.
0 commit comments