This repository has been archived by the owner on May 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
115 additions
and
1 deletion.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
android-ndk-r14-api-16-armeabi-v7a-neon-clang-hid-sections-lto.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright (c) 2015-2017, Ruslan Baratov | ||
# Copyright (c) 2015, David Hirvonen | ||
# All rights reserved. | ||
|
||
if(DEFINED POLLY_ANDROID_NDK_R14_API_16_ARMEABI_V7A_NEON_CLANG_HID_SECTIONS_LTO_CMAKE_) | ||
return() | ||
else() | ||
set(POLLY_ANDROID_NDK_R14_API_16_ARMEABI_V7A_NEON_CLANG_HID_SECTIONS_LTO_CMAKE_ 1) | ||
endif() | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_clear_environment_variables.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") | ||
|
||
set(ANDROID_NDK_VERSION "r14") | ||
set(CMAKE_SYSTEM_VERSION "16") | ||
set(CMAKE_ANDROID_ARCH_ABI "armeabi-v7a") | ||
set(CMAKE_ANDROID_ARM_NEON TRUE) | ||
set(CMAKE_ANDROID_ARM_MODE TRUE) # 32-bit ARM | ||
set(CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION "clang") | ||
|
||
polly_init( | ||
"Android NDK ${ANDROID_NDK_VERSION} / \ | ||
API ${CMAKE_SYSTEM_VERSION} / ${CMAKE_ANDROID_ARCH_ABI} / \ | ||
NEON / 32-bit ARM / Clang / c++11 support / data-sections / function-sections / LTO" | ||
"Unix Makefiles" | ||
) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") # before toolchain! | ||
include("${CMAKE_CURRENT_LIST_DIR}/flags/hidden.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/flags/function-sections.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/flags/data-sections.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/os/android.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/flags/lto.cmake") # after os/android.cmake |
41 changes: 41 additions & 0 deletions
41
android-ndk-r14-api-19-armeabi-v7a-neon-hid-sections-lto.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) 2015-2017, Ruslan Baratov | ||
# Copyright (c) 2015, David Hirvonen | ||
# Copyright (c) 2015, Alexandre Pretyman | ||
# All rights reserved. | ||
|
||
if(DEFINED POLLY_ANDROID_NDK_R14_API_19_ARMEABI_V7A_NEON_HID_SECTIONS_LTO_CMAKE_) | ||
return() | ||
else() | ||
set(POLLY_ANDROID_NDK_R14_API_19_ARMEABI_V7A_NEON_HID_SECTIONS_LTO_CMAKE_ 1) | ||
endif() | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_clear_environment_variables.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") | ||
|
||
set(ANDROID_NDK_VERSION "r14") | ||
set(CMAKE_SYSTEM_VERSION "19") | ||
set(CMAKE_ANDROID_ARCH_ABI "armeabi-v7a") | ||
set(CMAKE_ANDROID_ARM_NEON TRUE) | ||
set(CMAKE_ANDROID_ARM_MODE TRUE) # 32-bit ARM | ||
|
||
polly_init( | ||
"Android NDK ${ANDROID_NDK_VERSION} / \ | ||
API ${CMAKE_SYSTEM_VERSION} / ${CMAKE_ANDROID_ARCH_ABI} / \ | ||
NEON / 32-bit ARM / c++11 support / hidden / function-sections / data-sections / LTO" | ||
"Unix Makefiles" | ||
) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") # before toolchain! | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/flags/function-sections.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/flags/data-sections.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/flags/hidden.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/os/android.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/flags/lto.cmake") # after 'os/android.cmake' |
34 changes: 34 additions & 0 deletions
34
android-ndk-r14-api-21-arm64-v8a-clang-hid-sections-lto.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright (c) 2015-2017, Ruslan Baratov | ||
# Copyright (c) 2015, David Hirvonen | ||
# All rights reserved. | ||
|
||
if(DEFINED POLLY_ANDROID_NDK_R14_API_21_ARM64_V8A_CLANG_HID_SECTIONS_LTO_CMAKE_) | ||
return() | ||
else() | ||
set(POLLY_ANDROID_NDK_R14_API_21_ARM64_V8A_CLANG_HID_SECTIONS_LTO_CMAKE_ 1) | ||
endif() | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_clear_environment_variables.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") | ||
|
||
set(ANDROID_NDK_VERSION "r14") | ||
set(CMAKE_SYSTEM_VERSION "21") | ||
set(CMAKE_ANDROID_ARCH_ABI "arm64-v8a") | ||
set(CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION "clang") | ||
|
||
polly_init( | ||
"Android NDK ${ANDROID_NDK_VERSION} / \ | ||
API ${CMAKE_SYSTEM_VERSION} / ${CMAKE_ANDROID_ARCH_ABI} / \ | ||
Clang / c++11 support / data-sections / function-sections / LTO" | ||
"Unix Makefiles" | ||
) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") # before toolchain! | ||
include("${CMAKE_CURRENT_LIST_DIR}/flags/hidden.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/flags/function-sections.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/flags/data-sections.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/os/android.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/flags/lto.cmake") # after os/android.cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters