aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts/darwin_embedded
diff options
context:
space:
mode:
authorBrent Murphy <bmurphy@bcmcs.net>2020-03-24 14:12:12 +1000
committerBrent Murphy <bmurphy@bcmcs.net>2020-03-27 10:47:24 +1000
commitf37b82d2c1696a64909a52be5571ba4455d11392 (patch)
treee0962a634587655d0a5a9695761d92d850499a71 /cmake/scripts/darwin_embedded
parent92d0e06fb0e14222dd15eb9ffc0cec9fc05ff0aa (diff)
[darwin_embedded] enable xcode project binary addon build for ios
Just enables xcode binary-addon creation as part of the xcode project.
Diffstat (limited to 'cmake/scripts/darwin_embedded')
-rw-r--r--cmake/scripts/darwin_embedded/Install.cmake22
1 files changed, 10 insertions, 12 deletions
diff --git a/cmake/scripts/darwin_embedded/Install.cmake b/cmake/scripts/darwin_embedded/Install.cmake
index 106cfc9bed..72936eac4e 100644
--- a/cmake/scripts/darwin_embedded/Install.cmake
+++ b/cmake/scripts/darwin_embedded/Install.cmake
@@ -81,19 +81,17 @@ set_target_properties(${APP_NAME_LC} PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTI
XCODE_ATTRIBUTE_PROVISIONING_PROFILE_SPECIFIER "${PROVISIONING_PROFILE_APP}")
# Create xcode target that allows to build binary-addons.
-if(CORE_PLATFORM_NAME_LC STREQUAL tvos)
- if(ADDONS_TO_BUILD)
- set(_addons "ADDONS=${ADDONS_TO_BUILD}")
- endif()
- add_custom_target(binary-addons
- COMMAND $(MAKE) -C ${CMAKE_SOURCE_DIR}/tools/depends/target/binary-addons clean
- COMMAND $(MAKE) -C ${CMAKE_SOURCE_DIR}/tools/depends/target/binary-addons VERBOSE=1 V=99
- INSTALL_PREFIX="${CMAKE_BINARY_DIR}/addons" CROSS_COMPILING=yes ${_addons})
- if(ENABLE_XCODE_ADDONBUILD)
- add_dependencies(${APP_NAME_LC} binary-addons)
- endif()
- unset(_addons)
+if(ADDONS_TO_BUILD)
+ set(_addons "ADDONS=${ADDONS_TO_BUILD}")
+endif()
+add_custom_target(binary-addons
+ COMMAND $(MAKE) -C ${CMAKE_SOURCE_DIR}/tools/depends/target/binary-addons clean
+ COMMAND $(MAKE) -C ${CMAKE_SOURCE_DIR}/tools/depends/target/binary-addons VERBOSE=1 V=99
+ INSTALL_PREFIX="${CMAKE_BINARY_DIR}/addons" CROSS_COMPILING=yes ${_addons})
+if(ENABLE_XCODE_ADDONBUILD)
+ add_dependencies(${APP_NAME_LC} binary-addons)
endif()
+unset(_addons)
add_custom_command(TARGET ${APP_NAME_LC} POST_BUILD
# TODO: Remove in sync with CopyRootFiles-darwin_embedded expecting the ".bin" file