test_OpenSSL_ios.sh 818 B

1234567891011121314151617181920212223
  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. rm -rf temp/build_test
  9. mkdir temp/build_test
  10. cmake -S test -B temp/build_test -G Xcode \
  11. -DCMAKE_TOOLCHAIN_FILE=../../../../Scripts/cmake/Platform/iOS/Toolchain_ios.cmake \
  12. -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED=false \
  13. -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=false \
  14. -DCMAKE_MODULE_PATH="$DOWNLOADED_PACKAGE_FOLDERS;$PACKAGE_ROOT" || exit 1
  15. cmake --build temp/build_test --parallel --config Release || exit 1
  16. # we can't actually run it on ios, that'd require an emulator or device as well as
  17. # cert / signing - but we can at least make sure it compiles and links!
  18. exit 0