Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #207 from elucideye/pr.ios-nocodesign-10-3-arm64-d…
Browse files Browse the repository at this point in the history
…ep-9-0-device-libcxx-hid-sections

add ios-nocodesign-10-3-arm64-dep-9-0-device-libcxx-hid-sections
  • Loading branch information
ruslo authored Nov 30, 2017
2 parents b83cf13 + f564d62 commit beb1a3c
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/detail/toolchain_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ def verify(self):
Toolchain('ios-nocodesign-10-1-dep-9-0-device-libcxx-hid-sections-lto', 'Xcode', ios_version='10.1', nocodesign=True),
Toolchain('ios-nocodesign-10-2', 'Xcode', ios_version='10.2', nocodesign=True),
Toolchain('ios-nocodesign-10-3', 'Xcode', ios_version='10.3', nocodesign=True),
Toolchain('ios-nocodesign-10-3-arm64-dep-9-0-device-libcxx-hid-sections', 'Xcode', ios_version='10.3', nocodesign=True),
Toolchain('ios-nocodesign-10-3-dep-9-0-bitcode', 'Xcode', ios_version='10.3', nocodesign=True),
Toolchain('ios-nocodesign-11-0', 'Xcode', ios_version='11.0', nocodesign=True),
Toolchain('ios-nocodesign-11-0-dep-9-0-bitcode-cxx11', 'Xcode', ios_version='11.0', nocodesign=True),
Expand Down
75 changes: 75 additions & 0 deletions ios-nocodesign-10-3-arm64-dep-9-0-device-libcxx-hid-sections.cmake
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")

0 comments on commit beb1a3c

Please sign in to comment.