-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS build #1124
Open
OLFDB
wants to merge
170
commits into
navit-gps:trunk
Choose a base branch
from
OLFDB:ios
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
iOS build #1124
Changes from 34 commits
Commits
Show all changes
170 commits
Select commit
Hold shift + click to select a range
995fc19
Add files via upload
OLFDB 644fc22
Add:gui/internal
OLFDB f277c49
Indent
OLFDB f0c7fd7
Indent
OLFDB 38fe29f
Add files via upload
OLFDB f666165
Indent
OLFDB 4862370
Indent
OLFDB 5de0b44
Indent
OLFDB 3459120
Indent
OLFDB e881f47
FIX:DTD <navit> to not show errors in XML editors
OLFDB 495b4cf
Merge pull request #1 from navit-gps/trunk
OLFDB 50eb35e
FIX: Removed duplicate comma
OLFDB 43c649d
FIX:WIN32 build with gtk_drawing_area
OLFDB e9fb7a2
FIX:undefined symbol errors for cairo
OLFDB 0f4282f
FIX:Undo changes
OLFDB 6b84e47
FIX:Use cairo instead of pangocairo
OLFDB 9563675
Feature: Support USERPROFILE folder for Windows
OLFDB 1c0274a
Merge pull request #2 from navit-gps/trunk
OLFDB d3ad426
Indent
OLFDB 60e98a2
indent
OLFDB a1d6038
indent
OLFDB 400ea1b
indent
OLFDB 0f15a21
indent
OLFDB 207ea59
indent
OLFDB 4365ed2
Rework:USERPROFILE for Windows
OLFDB 5d2b87f
FIX:build for macos
OLFDB 503d1c3
Merge pull request #3 from navit-gps/trunk
OLFDB d206aad
Merge pull request #4 from navit-gps/trunk
OLFDB 78c3cd8
FIX:Conditional apple build
OLFDB 985fa38
FIX:typo
OLFDB 6444f38
Using HAVE_API_WIN32 instead of HAVE_API_WIN32_BASE (Both WinCE and W…
lains 9b40328
Update config.yml
OLFDB 399985a
Revert "Update config.yml"
OLFDB ba98bee
Revert "Update config.yml"
OLFDB 68f3dd8
Merge branch 'trunk' of https://github.com/OLFDB/navit into trunk
OLFDB 5e76e7d
Revert "FIX:Use cairo instead of pangocairo"
OLFDB b0c2a83
revert changes
OLFDB 17ecfcd
repair
b2de863
Revert "FIX: Removed duplicate comma"
907c5fb
Revert "FIX:DTD <navit> to not show errors in XML editors"
76cbd23
Revert "FIX:WIN32 build with gtk_drawing_area"
67961fe
Disable sanity check for permanentrestrictions folder
OLFDB 9c5a187
Merge branch 'trunk' into trunk
pgrandin 540d93a
Merge remote-tracking branch 'upstream/trunk' into trunk
b41d652
Minor revert on blank line
d670c8c
Update update_download_center.sh
OLFDB e34ee3b
Update config.yml
OLFDB ae8e847
Update ci_sanity_checks.sh
OLFDB 7775f77
Merge pull request #10 from navit-gps/trunk
OLFDB 71493b4
Update osm.c
OLFDB 12c9200
Update osm.c
OLFDB c3c8c5a
Disable debug output
OLFDB fc9a672
Update navit_shipped.xml
OLFDB 6af3dbc
Merge branch 'trunk' into trucknavigation
OLFDB baeef1c
Update osm.c
OLFDB 3a397da
Update osm.c
OLFDB 9fc0e74
Add boundary=low_emission_zone to binfile map.
metalstrolch 3998c8d
Update osm.c
OLFDB e9b933e
Merge branch 'trunk' into trucknavigation
OLFDB f6a1771
Fix multi polygon detection
metalstrolch 2f251b2
Update navit_layout_car_shipped.xml
OLFDB e98b308
Update osm.c
OLFDB f00c2f8
Update osm_xml.c
OLFDB f1a2d28
Update osm.c
OLFDB 6e109d2
Update navit_layout_car_dark_shipped.xml
OLFDB a95c73b
enhanced conversion functions
OLFDB 8a87709
Merge branch 'trucknavigation' of https://github.com/OLFDB/navit into…
OLFDB 6dd140a
handle onditional speed limits
OLFDB d8bb86c
gui internal to change vehicle dimensions. Store dimensions in XML fi…
OLFDB 3971819
Merge branch 'trunk' into trucknavigation
OLFDB 5222500
Merge branch 'trunk' into trucknavigation
OLFDB 67a33a2
Merge pull request #11 from OLFDB/trucknavigation
OLFDB 9e3e9fc
Added demo vehicle
OLFDB 019ec0e
Request location authorization from the user on request
OLFDB 5785ff0
Handle location authorization requests, applied astyle
OLFDB fdc4363
Handle location authorization requests, applied astyle
OLFDB fa3130b
Fix iOS build
OLFDB e1808a2
Fix iOS build, astyle applied
OLFDB 14e0a06
Fixed iOS build
OLFDB 2e01498
Fixed iOS build
OLFDB 3de6a8a
Fixed iOS build
OLFDB c90a03e
Fixed iOS build
OLFDB e5fa578
Fixed iOS build
OLFDB 88f9c72
Fixed iOS build, astyle applied
OLFDB cc321f0
Fixed iOS build, astyle applied
OLFDB d7d34a0
Added implementation, astyle applied
OLFDB 569f3a7
Added attr_vehicle_request_location_authorization to be able to reque…
OLFDB aeb2435
Fix for iOS build, astyle applied
OLFDB 646ccb1
Fixes for iOS build, astyle applied
OLFDB 310da33
Fixes for iOS build, astyle applied
OLFDB ea0e08b
Fixes for iOS build, astyle applied
OLFDB 2f45274
Added attr_vehicle_request_location_authorization to be able to reque…
OLFDB dc00070
Fixes for iOS build, astyle applied
OLFDB bf5f51f
New iOS build cmake file
OLFDB 5e0c9f6
Added VSSpeechSynthesizer.m to module
OLFDB e91a350
Fixed iOS build
OLFDB 5ca4413
Fixed iOS build
OLFDB 9d691d8
astyle applied
OLFDB 25c7378
Log disabled
OLFDB bb3dbfb
Discard attr_vehicle_request_location_authorization with no error
OLFDB d877d1c
Added NSLocationWhenInUseUsageDescription key
OLFDB 3c08b42
Log disabled
OLFDB 7515cb1
Repair the mess atype created...
OLFDB f49ae2f
Removed variable
OLFDB 78970d6
Merge branch 'ios' of https://github.com/OLFDB/navit into HEAD
OLFDB a8c2b47
Repair the mess atype created...
OLFDB a78ccd1
Fixes after review
OLFDB bbd1319
Fixes after review
OLFDB b873491
Fixes after review
OLFDB 325645c
Fixes after review
OLFDB fe4513c
Fixes after review
OLFDB 3e6d0d5
Allow architecture to be set via -DIOS_ARCH= in commandline
OLFDB f9266df
Changes after review, iPad support
OLFDB 24970c7
handle asset catalag
OLFDB c442d98
use of simulator
OLFDB 101ba49
use of asset catalog, do not crop Default.png and Icon.png
OLFDB b53c474
Guide to build with Xcode for iOS
OLFDB b814bf7
use LaunchScreen, no status bar, supported orientations, CFBundleVers…
OLFDB db0beea
Changes after review
OLFDB b4770d0
not needed
OLFDB 7bca23a
astyle
OLFDB 4087bc2
astyle
OLFDB 6cc9d0a
Fixed CoreText library linker directive
OLFDB f655c6a
changes to prevent include of gthreadprivate.h in start_real.c
OLFDB d88e977
generated icons, debug entries to find root cause for symbols not found
OLFDB 38a43bb
sanity check issue
OLFDB 8fc1a9a
Policy issue
OLFDB 8e5b1c8
Improved speech for iPhone
OLFDB fe2fc27
Changes after review
OLFDB d2e539e
Improved rotation
OLFDB 389d47b
astyle
OLFDB a05cb7e
adress warnings
OLFDB 99d1d1a
pad, pinch, tap support
OLFDB 1a2dcb8
Merge branch 'trunk' into ios
jkoan 2d851ba
Rendering issues fixed
OLFDB e4d7c5a
Merge branch 'ios' of https://github.com/OLFDB/navit into ios
OLFDB e3056a1
astyle
OLFDB c3f5510
addressed a warning, removed a debug message
OLFDB 3b7ae06
Changes for icon creation, added textures to bundle
OLFDB 961daab
macos compatibility
OLFDB 1ac3c9a
macos compatibility
OLFDB ccd49b8
add icons for ad-hoc deployment
OLFDB 52fd7ee
astyle
OLFDB 5fe2256
set iOS version for any build target
OLFDB fa9fa38
background processing, versioning, license text
OLFDB 3c43196
display menu while in background, do not draw polygons with count of …
OLFDB 0384757
maptool on macos
OLFDB a4a2f36
moved vehicle_request_location_authorization, added vehicle_is_select…
OLFDB abafe62
mark vehicle active/inactive when changing vehicles, added navit_stor…
OLFDB d2a1bd5
added prototype for navit_store_center(struct navit * this_)
OLFDB 0c7d095
added prototype for (void)setHFPDelay:(double) delay
OLFDB 8fc8d76
use a delay instead of silent annoucement for HFP connection establis…
OLFDB 41ea250
setHFPdelay added
OLFDB 6c23a7c
handle language="de"
OLFDB 71a72c4
addressed an Xcode warning
OLFDB 10ac9c6
support for attribute vehicle_is_selected
OLFDB 50f9693
support for attribute vehicle_is_selected
OLFDB d9989cd
support background activity
OLFDB 7ba5d8e
support position_valid attribute
OLFDB 77e4f23
support new build system for Xcode, create launch images for iOS
OLFDB 3aa2e2a
use git version for iOS only
OLFDB d24af52
Merge branch 'trunk' into ios
OLFDB c572c4f
merge trunk
OLFDB 3b8f8a3
Merge branch 'navit-gps-trunk' into trunk
OLFDB 1da3ccb
Merge pull request #14 from navit-gps/trunk
OLFDB 4c69b68
merged trunk
OLFDB 5d4bf2a
merge trunk
OLFDB 4591018
Merge branch 'navit-gps-trunk' into trunk
OLFDB 5973dc5
Merge branch 'ios' into trunk
OLFDB 7acf706
Merge pull request #17 from OLFDB/trunk
OLFDB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,225 @@ | ||
# Taken from https://github.com/tdlib/td/blob/master/CMake/iOS.cmake | ||
# This file is based off of the Platform/Darwin.cmake and Platform/UnixPaths.cmake | ||
# files which are included with CMake 2.8.4 | ||
# It has been altered for iOS development | ||
|
||
# Options: | ||
# | ||
# IOS_PLATFORM = OS (default) or SIMULATOR | ||
# This decides if SDKS will be selected from the iPhoneOS.platform or iPhoneSimulator.platform folders | ||
# OS - the default, used to build for iPhone and iPad physical devices, which have an arm arch. | ||
# SIMULATOR - used to build for the Simulator platforms, which have an x86 arch. | ||
# | ||
# CMAKE_IOS_DEVELOPER_ROOT = automatic(default) or /path/to/platform/Developer folder | ||
# By default this location is automatcially chosen based on the IOS_PLATFORM value above. | ||
# If set manually, it will override the default location and force the user of a particular Developer Platform | ||
# | ||
# CMAKE_IOS_SDK_ROOT = automatic(default) or /path/to/platform/Developer/SDKs/SDK folder | ||
# By default this location is automatcially chosen based on the CMAKE_IOS_DEVELOPER_ROOT value. | ||
# In this case it will always be the most up-to-date SDK found in the CMAKE_IOS_DEVELOPER_ROOT path. | ||
# If set manually, this will force the use of a specific SDK version | ||
# | ||
# IOS_BITCODE = 1/0: Enable bitcode or not. Only iOS >= 6.0 device build can enable bitcode. Default is enabled. | ||
|
||
# Macros: | ||
# | ||
# set_xcode_property (TARGET XCODE_PROPERTY XCODE_VALUE) | ||
# A convenience macro for setting xcode specific properties on targets | ||
# example: set_xcode_property (myioslib IPHONEOS_DEPLOYMENT_TARGET "3.1") | ||
# | ||
# find_host_package (PROGRAM ARGS) | ||
# A macro used to find executable programs on the host system, not within the iOS environment. | ||
# Thanks to the android-cmake project for providing the command | ||
|
||
# Standard settings | ||
set (CMAKE_SYSTEM_NAME Darwin) | ||
set (CMAKE_SYSTEM_VERSION 1) | ||
set (CMAKE_CROSSCOMPILING TRUE) | ||
set (UNIX TRUE) | ||
set (APPLE TRUE) | ||
set (IOS TRUE) | ||
|
||
if(NOT DEFINED IOS_BITCODE) # check xcode/clang version? since xcode 7 | ||
set(IOS_BITCODE 1) | ||
endif() | ||
set(IOS_BITCODE_MARKER 0) | ||
|
||
# Required as of cmake 2.8.10 | ||
set (CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment target for iOS" FORCE) | ||
|
||
# Determine the cmake host system version so we know where to find the iOS SDKs | ||
find_program (CMAKE_UNAME uname /bin /usr/bin /usr/local/bin) | ||
if (CMAKE_UNAME) | ||
exec_program(uname ARGS -r OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION) | ||
string (REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_HOST_SYSTEM_VERSION}") | ||
endif (CMAKE_UNAME) | ||
|
||
set(CMAKE_AR ar CACHE FILEPATH "" FORCE) | ||
set(CMAKE_RANLIB ranlib CACHE FILEPATH "" FORCE) | ||
|
||
# Skip the platform compiler checks for cross compiling | ||
set (CMAKE_CXX_COMPILER_WORKS TRUE) | ||
set (CMAKE_C_COMPILER_WORKS TRUE) | ||
|
||
# All iOS/Darwin specific settings - some may be redundant | ||
set (CMAKE_SHARED_LIBRARY_PREFIX "lib") | ||
set (CMAKE_SHARED_LIBRARY_SUFFIX ".dylib") | ||
set (CMAKE_SHARED_MODULE_PREFIX "lib") | ||
set (CMAKE_SHARED_MODULE_SUFFIX ".so") | ||
set (CMAKE_MODULE_EXISTS 1) | ||
set (CMAKE_DL_LIBS "") | ||
|
||
if(IOS_BITCODE) | ||
set(BITCODE_FLAGS "-fembed-bitcode") | ||
elseif(IOS_BITCODE_MARKER) | ||
set(BITCODE_FLAGS "-fembed-bitcode-marker") | ||
endif() | ||
|
||
set (CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ") | ||
set (CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ") | ||
set (CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG}") | ||
set (CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}") | ||
|
||
# Hidden visibilty is required for cxx on iOS | ||
set (CMAKE_C_FLAGS_INIT "${BITCODE_FLAGS}") | ||
set (CMAKE_CXX_FLAGS_INIT "-fvisibility=hidden -fvisibility-inlines-hidden ${BITCODE_FLAGS}") | ||
|
||
set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}") | ||
set (CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS}") | ||
|
||
set (CMAKE_PLATFORM_HAS_INSTALLNAME 1) | ||
set (CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -headerpad_max_install_names") | ||
set (CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -headerpad_max_install_names") | ||
set (CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,") | ||
set (CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,") | ||
set (CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a") | ||
|
||
# hack: if a new cmake (which uses CMAKE_INSTALL_NAME_TOOL) runs on an old build tree | ||
# (where install_name_tool was hardcoded) and where CMAKE_INSTALL_NAME_TOOL isn't in the cache | ||
# and still cmake didn't fail in CMakeFindBinUtils.cmake (because it isn't rerun) | ||
# hardcode CMAKE_INSTALL_NAME_TOOL here to install_name_tool, so it behaves as it did before, Alex | ||
if (NOT DEFINED CMAKE_INSTALL_NAME_TOOL) | ||
find_program(CMAKE_INSTALL_NAME_TOOL install_name_tool) | ||
endif () | ||
|
||
# Setup iOS platform unless specified manually with IOS_PLATFORM | ||
if (NOT DEFINED IOS_PLATFORM) | ||
set (IOS_PLATFORM "OS") | ||
endif () | ||
set (IOS_PLATFORM ${IOS_PLATFORM} CACHE STRING "Type of iOS Platform") | ||
|
||
# Setup building for arm64 or not | ||
if (NOT DEFINED BUILD_ARM64) | ||
set (BUILD_ARM64 true) | ||
endif () | ||
set (BUILD_ARM64 ${BUILD_ARM64} CACHE STRING "Build arm64 arch or not") | ||
|
||
# Check the platform selection and setup for developer root | ||
if (${IOS_PLATFORM} STREQUAL "OS") | ||
set (IOS_PLATFORM_LOCATION "iPhoneOS.platform") | ||
|
||
# This causes the installers to properly locate the output libraries | ||
set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos") | ||
elseif (${IOS_PLATFORM} STREQUAL "SIMULATOR") | ||
set (IS_SIMULATOR true) | ||
set (IOS_PLATFORM_LOCATION "iPhoneSimulator.platform") | ||
|
||
# This causes the installers to properly locate the output libraries | ||
set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphonesimulator") | ||
else () | ||
message (FATAL_ERROR "Unsupported IOS_PLATFORM value selected. Please choose OS or SIMULATOR") | ||
endif () | ||
|
||
# Setup iOS developer location unless specified manually with CMAKE_IOS_DEVELOPER_ROOT | ||
# Note Xcode 4.3 changed the installation location, choose the most recent one available | ||
exec_program(/usr/bin/xcode-select ARGS -print-path OUTPUT_VARIABLE CMAKE_XCODE_DEVELOPER_DIR) | ||
set (XCODE_POST_43_ROOT "${CMAKE_XCODE_DEVELOPER_DIR}/Platforms/${IOS_PLATFORM_LOCATION}/Developer") | ||
set (XCODE_PRE_43_ROOT "/Developer/Platforms/${IOS_PLATFORM_LOCATION}/Developer") | ||
if (NOT DEFINED CMAKE_IOS_DEVELOPER_ROOT) | ||
if (EXISTS ${XCODE_POST_43_ROOT}) | ||
set (CMAKE_IOS_DEVELOPER_ROOT ${XCODE_POST_43_ROOT}) | ||
elseif(EXISTS ${XCODE_PRE_43_ROOT}) | ||
set (CMAKE_IOS_DEVELOPER_ROOT ${XCODE_PRE_43_ROOT}) | ||
endif (EXISTS ${XCODE_POST_43_ROOT}) | ||
endif () | ||
set (CMAKE_IOS_DEVELOPER_ROOT ${CMAKE_IOS_DEVELOPER_ROOT} CACHE PATH "Location of iOS Platform") | ||
|
||
# Find and use the most recent iOS sdk unless specified manually with CMAKE_IOS_SDK_ROOT | ||
if (NOT DEFINED CMAKE_IOS_SDK_ROOT) | ||
file (GLOB _CMAKE_IOS_SDKS "${CMAKE_IOS_DEVELOPER_ROOT}/SDKs/*") | ||
if (_CMAKE_IOS_SDKS) | ||
list (SORT _CMAKE_IOS_SDKS) | ||
list (REVERSE _CMAKE_IOS_SDKS) | ||
list (GET _CMAKE_IOS_SDKS 0 CMAKE_IOS_SDK_ROOT) | ||
else (_CMAKE_IOS_SDKS) | ||
message (FATAL_ERROR "No iOS SDK's found in default search path ${CMAKE_IOS_DEVELOPER_ROOT}. Manually set CMAKE_IOS_SDK_ROOT or install the iOS SDK.") | ||
endif (_CMAKE_IOS_SDKS) | ||
message (STATUS "Toolchain using default iOS SDK: ${CMAKE_IOS_SDK_ROOT}") | ||
endif () | ||
set (CMAKE_IOS_SDK_ROOT ${CMAKE_IOS_SDK_ROOT} CACHE PATH "Location of the selected iOS SDK") | ||
|
||
# Set the sysroot default to the most recent SDK | ||
set (CMAKE_OSX_SYSROOT ${CMAKE_IOS_SDK_ROOT} CACHE PATH "Sysroot used for iOS support") | ||
|
||
# set the architecture for iOS | ||
if (${IOS_PLATFORM} STREQUAL "OS") | ||
set (IOS_ARCH arm64) | ||
elseif (${IOS_PLATFORM} STREQUAL "SIMULATOR") | ||
set (IOS_ARCH i386;x86_64) | ||
endif () | ||
|
||
set (CMAKE_OSX_ARCHITECTURES ${IOS_ARCH} CACHE STRING "Build architecture for iOS") | ||
|
||
# Set the find root to the iOS developer roots and to user defined paths | ||
set (CMAKE_FIND_ROOT_PATH ${CMAKE_IOS_DEVELOPER_ROOT} ${CMAKE_IOS_SDK_ROOT} ${CMAKE_PREFIX_PATH} CACHE STRING "iOS find search path root") | ||
|
||
# default to searching for frameworks first | ||
set (CMAKE_FIND_FRAMEWORK FIRST) | ||
|
||
# set up the default search directories for frameworks | ||
set (CMAKE_SYSTEM_FRAMEWORK_PATH | ||
${CMAKE_IOS_SDK_ROOT}/System/Library/Frameworks | ||
${CMAKE_IOS_SDK_ROOT}/System/Library/PrivateFrameworks | ||
${CMAKE_IOS_SDK_ROOT}/Developer/Library/Frameworks | ||
) | ||
|
||
# only search the iOS sdks, not the remainder of the host filesystem | ||
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
|
||
|
||
# This little macro lets you set any XCode specific property | ||
macro (set_xcode_property TARGET XCODE_PROPERTY XCODE_VALUE) | ||
set_property (TARGET ${TARGET} PROPERTY XCODE_ATTRIBUTE_${XCODE_PROPERTY} ${XCODE_VALUE}) | ||
endmacro (set_xcode_property) | ||
|
||
|
||
# This macro lets you find executable programs on the host system | ||
macro (find_host_package) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER) | ||
set (IOS FALSE) | ||
|
||
find_package(${ARGN}) | ||
|
||
set (IOS TRUE) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
endmacro (find_host_package) | ||
|
||
macro (find_host_program) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER) | ||
set (IOS FALSE) | ||
|
||
find_program(${ARGN}) | ||
|
||
set (IOS TRUE) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
endmacro (find_host_program) |
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be detected automatically as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.