This repository was 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
3 changed files
with
53 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
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,13 @@ | ||
# Copyright (c) 2015, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
if(DEFINED POLLY_FLAGS_HIDDEN_CMAKE_) | ||
return() | ||
else() | ||
set(POLLY_FLAGS_HIDDEN_CMAKE_ 1) | ||
endif() | ||
|
||
include(polly_add_cache_flag) | ||
|
||
polly_add_cache_flag(CMAKE_CXX_FLAGS "-fvisibility=hidden") | ||
polly_add_cache_flag(CMAKE_CXX_FLAGS "-fvisibility-inlines-hidden") |
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,39 @@ | ||
# Copyright (c) 2015, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
if(DEFINED POLLY_IOS_8_2_ARM64_HID_) | ||
return() | ||
else() | ||
set(POLLY_IOS_8_2_ARM64_HID_ 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 8.2) | ||
set(POLLY_XCODE_COMPILER "clang") | ||
polly_init( | ||
"iOS ${IOS_SDK_VERSION} / \ | ||
${POLLY_XCODE_COMPILER} / \ | ||
arm64 / hidden visibility / \ | ||
c++11 support" | ||
"Xcode" | ||
) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake") | ||
|
||
include(polly_fatal_error) | ||
|
||
# Fix try_compile | ||
set(MACOSX_BUNDLE_GUI_IDENTIFIER com.example) | ||
set(CMAKE_MACOSX_BUNDLE YES) | ||
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer") | ||
|
||
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}/flags/cxx11.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/flags/hidden.cmake") |