LYWrappers_ios.cmake 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. include(cmake/Platform/Common/LYWrappers_default.cmake)
  9. function(ly_apply_platform_properties target)
  10. get_target_property(target_type ${target} TYPE)
  11. if(${target_type} STREQUAL "SHARED_LIBRARY")
  12. # Some projects use an "_" in their target name which is not allowed in a bundle identifier
  13. get_target_property(target_name ${target} NAME)
  14. string(REPLACE "_" "." target_name ${target_name})
  15. set_target_properties(${target}
  16. PROPERTIES
  17. FRAMEWORK TRUE
  18. MACOSX_FRAMEWORK_IDENTIFIER "org.o3de.lib.${target_name}"
  19. XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "org.o3de.lib.${target_name}"
  20. XCODE_ATTRIBUTE_SKIP_INSTALL "YES"
  21. )
  22. endif()
  23. if(${target_type} STREQUAL "EXECUTABLE")
  24. set_target_properties(${target}
  25. PROPERTIES
  26. XCODE_ATTRIBUTE_SKIP_INSTALL "NO"
  27. XCODE_ATTRIBUTE_INSTALL_PATH "$(LOCAL_APPS_DIR)"
  28. XCODE_ATTRIBUTE_COPY_PHASE_STRIP "NO"
  29. )
  30. endif()
  31. endfunction()