File tree 5 files changed +23
-18
lines changed
contrib/autoboost/autoboost/thread/pthread
5 files changed +23
-18
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ project(autowiring VERSION ${autowiring_VERSION})
5
5
include (CTest)
6
6
include (CheckTypeSize)
7
7
8
+ message (STATUS "sizeof(void*) is ${CMAKE_SIZEOF_VOID_P} " )
9
+
8
10
if (APPLE )
9
11
option (autowiring_BUILD_FAT "Build fat binaries for Autowiring" ON )
10
12
set (CMAKE_OSX_ARCHITECTURES "x86_64;i386" CACHE STRING "Mac OS X build architectures" FORCE)
@@ -162,7 +164,7 @@ install(
162
164
COMPONENT autowiring
163
165
FILES_MATCHING PATTERN "*.h"
164
166
)
165
-
167
+
166
168
# Install autoboost headers on ARM, which still requires them
167
169
if (CMAKE_COMPILER_IS_GNUCC AND ("${CMAKE_CXX_COMPILER} " MATCHES "androideabi" ))
168
170
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9" )
@@ -173,7 +175,7 @@ if(CMAKE_COMPILER_IS_GNUCC AND ("${CMAKE_CXX_COMPILER}" MATCHES "androideabi"))
173
175
)
174
176
endif ()
175
177
endif ()
176
-
178
+
177
179
# Targets file is needed in order to describe how to link Autowiring to the rest of the system
178
180
install (EXPORT AutowiringTargets FILE AutowiringTargets.cmake COMPONENT autowiring NAMESPACE Autowiring:: DESTINATION cmake CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES} )
179
181
Original file line number Diff line number Diff line change 24
24
#include < vector>
25
25
#include < utility>
26
26
27
- #if defined(__ANDROID__)
28
- #include < asm/page.h> // http://code.google.com/p/android/issues/detail?id=39983
29
- #endif
30
27
31
28
#include < pthread.h>
32
29
#include < unistd.h>
Original file line number Diff line number Diff line change 1
- if (BUILD_64_BIT) # ARMv8 with GCC 4.9
2
- set (BUILD_ANDROID64 1)
3
- set (ANDROID_NDK_TOOL_PREFIX aarch64-linux-android)
4
- set (_ndk_suffix -4.9-aarch64)
5
- else () # GCC 4.8
6
- set (ARM_TARGET "armeabi-v7a" )
7
- set (ANDROID_NDK_TOOL_PREFIX arm-linux-androideabi)
1
+ if (NOT ANDROID_NDK_TOOL_PREFIX)
2
+ # Default to the 32-bit toolchain version for legacy compatibility
3
+ if (0.9.0 VERSION_LESS autowiring_VERSION)
4
+ message (FATAL_ERROR "Eliminate this compatibility hack" )
5
+ endif ()
6
+
7
+ if ($ENV{ARMv8} )
8
+ include (${CMAKE_CURRENT_LIST_DIR} /toolchain-android64.cmake)
9
+ else ()
10
+ include (${CMAKE_CURRENT_LIST_DIR} /toolchain-android32.cmake)
11
+ endif ()
12
+ return ()
8
13
endif ()
9
- set (BUILD_ANDROID 1)
14
+
10
15
set (CMAKE_SYSTEM_NAME Linux)
11
16
set (CMAKE_SYSTEM_PROCESSOR arm)
12
17
set (CMAKE_SYSTEM_VERSION 1)
13
- set (BUILD_ARM 1)
14
-
15
- if (MSYS)
16
- set (_exe_suffix .exe)
17
- endif ()
18
18
19
19
#For reasons beyond my comprehension, this file is parsed multiple times
20
20
#and in some of them, cache variables are not preserved so we have to store
Original file line number Diff line number Diff line change
1
+ set (ARM_TARGET "armeabi-v7a" )
2
+ set (ANDROID_NDK_TOOL_PREFIX arm-linux-androideabi)
3
+ include (${CMAKE_CURRENT_LIST_DIR} /toolchain-android.cmake)
Original file line number Diff line number Diff line change
1
+ set (ANDROID_NDK_TOOL_PREFIX aarch64-linux-android)
2
+ set (_ndk_suffix -4.9-aarch64)
3
+ include (${CMAKE_CURRENT_LIST_DIR} /toolchain-android.cmake)
You can’t perform that action at this time.
0 commit comments