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.
Merge pull request #207 from elucideye/pr.ios-nocodesign-10-3-arm64-d…
…ep-9-0-device-libcxx-hid-sections add ios-nocodesign-10-3-arm64-dep-9-0-device-libcxx-hid-sections
- Loading branch information
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
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
75 changes: 75 additions & 0 deletions
75
ios-nocodesign-10-3-arm64-dep-9-0-device-libcxx-hid-sections.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,75 @@ | ||
# Copyright (c) 2015-2017, Tomas Zemaitis | ||
# Copyright (c) 2016-2017, David Hirvonen | ||
# All rights reserved. | ||
|
||
if(DEFINED POLLY_IOS_NOCODESIGN_10_3_ARM64_DEP_9_0_DEVICE_LIBCXX_HID_SECTIONS_CMAKE_) | ||
return() | ||
else() | ||
set(POLLY_IOS_NOCODESIGN_10_3_ARM64_DEP_9_0_DEVICE_LIBCXX_HID_SECTIONS_CMAKE_ 1) | ||
endif() | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_clear_environment_variables.cmake") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake") | ||
|
||
set(IOS_SDK_VERSION 10.3) | ||
set(IOS_DEPLOYMENT_SDK_VERSION 9.0) | ||
set(POLLY_XCODE_COMPILER "clang") | ||
|
||
polly_init( | ||
"iOS ${IOS_SDK_VERSION} / Universal (arm64) / \ | ||
Deployment ${IOS_DEPLOYMENT_SDK_VERSION} / \ | ||
${POLLY_XCODE_COMPILER} / \ | ||
No code sign / \ | ||
c++11 support / hidden / data-sections / function-sections" | ||
"Xcode" | ||
) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") | ||
|
||
include(polly_fatal_error) | ||
|
||
# Fix try_compile | ||
include(polly_ios_bundle_identifier) | ||
set(CMAKE_MACOSX_BUNDLE YES) | ||
|
||
# Verify XCODE_XCCONFIG_FILE | ||
set( | ||
_polly_xcode_xcconfig_file_path | ||
"${CMAKE_CURRENT_LIST_DIR}/scripts/NoCodeSign.xcconfig" | ||
) | ||
if(NOT EXISTS "$ENV{XCODE_XCCONFIG_FILE}") | ||
polly_fatal_error( | ||
"Path specified by XCODE_XCCONFIG_FILE environment variable not found" | ||
"($ENV{XCODE_XCCONFIG_FILE})" | ||
"Use this command to set: " | ||
" export XCODE_XCCONFIG_FILE=${_polly_xcode_xcconfig_file_path}" | ||
) | ||
else() | ||
string( | ||
COMPARE | ||
NOTEQUAL | ||
"$ENV{XCODE_XCCONFIG_FILE}" | ||
"${_polly_xcode_xcconfig_file_path}" | ||
_polly_wrong_xcconfig_path | ||
) | ||
if(_polly_wrong_xcconfig_path) | ||
polly_fatal_error( | ||
"Unexpected XCODE_XCCONFIG_FILE value: " | ||
" $ENV{XCODE_XCCONFIG_FILE}" | ||
"expected: " | ||
" ${_polly_xcode_xcconfig_file_path}" | ||
) | ||
endif() | ||
endif() | ||
|
||
set(IPHONEOS_ARCHS arm64) | ||
set(IPHONESIMULATOR_ARCHS "") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/os/iphone.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake") | ||
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") |