summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Android/abi-armeabi-v7a-GNU.cmake
blob: d27e37e257065e5629fccbda09877132c7ca5743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# <ndk>/build/core/toolchains/arm-linux-androideabi-4.9/setup.mk
string(APPEND _ANDROID_ABI_INIT_CFLAGS
  " -march=armv7-a"
  )

if(CMAKE_ANDROID_ARM_MODE)
  string(APPEND _ANDROID_ABI_INIT_CFLAGS " -marm")
else()
  string(APPEND _ANDROID_ABI_INIT_CFLAGS " -mthumb")
endif()

if(CMAKE_ANDROID_ARM_NEON)
  string(APPEND _ANDROID_ABI_INIT_CFLAGS " -mfpu=neon")
else()
  string(APPEND _ANDROID_ABI_INIT_CFLAGS " -mfpu=vfpv3-d16")
endif()

string(APPEND _ANDROID_ABI_INIT_CFLAGS
  " -mfloat-abi=softfp"
  " -fpic"
  )

string(APPEND _ANDROID_ABI_INIT_LDFLAGS
  " -Wl,--fix-cortex-a8"
  )

include(Platform/Android/abi-common-GNU)