Skip to content

Instantly share code, notes, and snippets.

@headupinclouds
Created February 24, 2017 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headupinclouds/4d700e4602b2f46a2179ff2859110e6f to your computer and use it in GitHub Desktop.
Save headupinclouds/4d700e4602b2f46a2179ff2859110e6f to your computer and use it in GitHub Desktop.
android-ndk-r11c-api-21-arm64-v8a-clang-hid-sections-lto.cmake
# Copyright (c) 2016-2017, Michele Caini
# Copyright (c) 2017, David Hirvonen
# All rights reserved.
if(DEFINED POLLY_ANDROID_NDK_R11C_API_21_ARM64_V8A_CLANG_35_HID_SECTIONS_LTO_CMAKE_)
return()
else()
set(POLLY_ANDROID_NDK_R11C_API_21_ARM64_V8A_CLANG_35_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 "r11c")
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 3.5 / c++11 support / hidden / 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/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}/flags/lto.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/os/android.cmake")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment