Skip to content

Commit 53597ab

Browse files
Updates to iOS.cmake
1 parent 6267a62 commit 53597ab

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

extras/ios_libwebsockets/lws_config.h

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
/* config.h.in. Generated from configure.ac by autoheader. */
22

3-
#ifndef WIN32
4-
#define _DEBUG
3+
#ifndef NDEBUG
4+
#ifndef _DEBUG
5+
#define _DEBUG
6+
#endif
57
#endif
68

79
/* Define to 1 to use CyaSSL as a replacement for OpenSSL.
810
* LWS_OPENSSL_SUPPORT needs to be set also for this to work. */
911
/* #undef USE_CYASSL */
1012

1113
/* The Libwebsocket version */
12-
#define LWS_LIBRARY_VERSION "1.3"
14+
#define LWS_LIBRARY_VERSION "1.4"
1315

1416
/* The current git commit hash that we're building from */
1517
/* #undef LWS_BUILD_HASH */
@@ -146,29 +148,23 @@
146148
*/
147149
#undef LT_OBJDIR // We're not using libtool
148150

149-
/* Define to 1 if you have the ANSI C header files. */
150-
/* #undef STDC_HEADERS */
151-
152151
/* Version number of package */
153152
#define VERSION
154153

155154
/* Define to rpl_malloc if the replacement function should be used. */
156-
//#define malloc
155+
// #define malloc
157156

158157
/* Define to `int' if <sys/types.h> does not define. */
159-
//#define pid_t
158+
// #define pid_t
160159

161160
/* Define to rpl_realloc if the replacement function should be used. */
162-
//#define realloc
161+
// #define realloc
163162

164163
/* Define to `unsigned int' if <sys/types.h> does not define. */
165-
//#ifndef _SIZE_T
166-
//#define _SIZE_T
167-
//typedef __darwin_size_t size_t
168-
//#endif
164+
// #define size_t
169165

170166
/* Define to 1 if we have getifaddrs */
171-
/* #undef HAVE_GETIFADDRS */
167+
#define HAVE_GETIFADDRS
172168

173169
/* Define as `fork' if `vfork' does not work. */
174170
/* #undef vfork */

extras/ios_libwebsockets/toolchain/iOS.cmake

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ set (IOS True)
2727

2828
# Force the compilers to gcc for iOS
2929
include (CMakeForceCompiler)
30-
CMAKE_FORCE_C_COMPILER (gcc gcc)
31-
CMAKE_FORCE_CXX_COMPILER (g++ g++)
30+
CMAKE_FORCE_C_COMPILER(/usr/bin/gcc GNU)
31+
CMAKE_FORCE_CXX_COMPILER(/usr/bin/g++ GNU)
3232

3333
# Skip the platform compiler checks for cross compiling
3434
set (CMAKE_CXX_COMPILER_WORKS TRUE)
@@ -92,26 +92,23 @@ set( CMAKE_IOS_SDK_ROOT, "/Applications/Xcode.app/Contents/Developer/Platforms/i
9292
if (NOT DEFINED CMAKE_IOS_DEVELOPER_ROOT)
9393
set (CMAKE_IOS_DEVELOPER_ROOT "/Applications/Xcode.app/Contents/Developer/Platforms/${IOS_PLATFORM_LOCATION}/Developer")
9494
else (DEFINED CMAKE_IOS_DEVELOPER_ROOT)
95-
message(STATUS "FART")
95+
message(STATUS "IOS DEV ROOT DEF")
9696
endif (NOT DEFINED CMAKE_IOS_DEVELOPER_ROOT)
9797
set (CMAKE_IOS_DEVELOPER_ROOT ${CMAKE_IOS_DEVELOPER_ROOT} CACHE PATH "Location of iOS Platform")
9898

9999
# Find and use the most recent iOS sdk
100100
if (NOT DEFINED CMAKE_IOS_SDK_ROOT)
101101
file (GLOB _CMAKE_IOS_SDKS "${CMAKE_IOS_DEVELOPER_ROOT}/SDKs/*")
102102
if (_CMAKE_IOS_SDKS)
103-
message(STATUS "FART 2")
104103
list (SORT _CMAKE_IOS_SDKS)
105-
message(STATUS "FART 3")
106104
list (REVERSE _CMAKE_IOS_SDKS)
107-
message(STATUS "FART 4")
108105
list (GET _CMAKE_IOS_SDKS 0 CMAKE_IOS_SDK_ROOT)
109106
else (_CMAKE_IOS_SDKS)
110107
message( FATAL_ERROR "Crap")
111108
endif (_CMAKE_IOS_SDKS)
112109
message (STATUS "Toolchain using default iOS SDK: ${CMAKE_IOS_SDK_ROOT}")
113110
else (DEFINED CMAKE_IOS_SDK_ROOT)
114-
message(STATUS "FART 2")
111+
message(STATUS "CMAKE IOS SDK ROOTS DEFINED")
115112
endif (NOT DEFINED CMAKE_IOS_SDK_ROOT)
116113
set (CMAKE_IOS_SDK_ROOT ${CMAKE_IOS_SDK_ROOT} CACHE PATH "Location of the selected iOS SDK")
117114

@@ -139,4 +136,3 @@ set (CMAKE_SYSTEM_FRAMEWORK_PATH
139136
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
140137
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
141138
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
142-

0 commit comments

Comments
 (0)