comparison Resources/CMake/BoostConfiguration.cmake @ 2781:13038d638097

primitives for android ndk
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 20 Jul 2018 11:01:33 +0200
parents ee9a6cd63891
children 64e3d4ab158d
comparison
equal deleted inserted replaced
2780:d4e81e0a8324 2781:13038d638097
95 95
96 set(BOOST_SOURCES 96 set(BOOST_SOURCES
97 ${BOOST_SOURCES_DIR}/libs/system/src/error_code.cpp 97 ${BOOST_SOURCES_DIR}/libs/system/src/error_code.cpp
98 ) 98 )
99 99
100 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") 100 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase" OR
101 "${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
101 add_definitions( 102 add_definitions(
102 -DBOOST_SYSTEM_USE_STRERROR=1 103 -DBOOST_SYSTEM_USE_STRERROR=1
103 ) 104 )
104 105
105 execute_process( 106 execute_process(
146 ${BOOST_SOURCES_DIR}/libs/thread/src/win32/thread.cpp 147 ${BOOST_SOURCES_DIR}/libs/thread/src/win32/thread.cpp
147 ${BOOST_SOURCES_DIR}/libs/thread/src/win32/tss_pe.cpp 148 ${BOOST_SOURCES_DIR}/libs/thread/src/win32/tss_pe.cpp
148 ) 149 )
149 150
150 elseif (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") 151 elseif (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
151 # No support for threads in WebAssembly 152 # No support for threads in asm.js/WebAssembly
153
154 elseif (CMAKE_SYSTEM_NAME STREQUAL "Android")
155 # No support for threads in Android
152 156
153 else() 157 else()
154 message(FATAL_ERROR "Support your platform here") 158 message(FATAL_ERROR "Support your platform here")
155 endif() 159 endif()
156 160
179 ## Configuration of boost::filesystem 183 ## Configuration of boost::filesystem
180 ## 184 ##
181 185
182 if (CMAKE_SYSTEM_NAME STREQUAL "PNaCl" OR 186 if (CMAKE_SYSTEM_NAME STREQUAL "PNaCl" OR
183 CMAKE_SYSTEM_NAME STREQUAL "NaCl32" OR 187 CMAKE_SYSTEM_NAME STREQUAL "NaCl32" OR
184 CMAKE_SYSTEM_NAME STREQUAL "NaCl64") 188 CMAKE_SYSTEM_NAME STREQUAL "NaCl64" OR
189 CMAKE_SYSTEM_NAME STREQUAL "Android")
185 # boost::filesystem is not available on PNaCl 190 # boost::filesystem is not available on PNaCl
186 add_definitions( 191 add_definitions(
187 -DBOOST_HAS_FILESYSTEM_V3=0 192 -DBOOST_HAS_FILESYSTEM_V3=0
188 -D__INTEGRITY=1 193 -D__INTEGRITY=1
189 ) 194 )