test_OpenSSL_ios.sh 802 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. #
  3. # Copyright (c) Contributors to the Open 3D Engine Project.
  4. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. #
  6. # SPDX-License-Identifier: Apache-2.0 OR MIT
  7. #
  8. #
  9. rm -rf temp/build_test
  10. mkdir temp/build_test
  11. cmake -S test -B temp/build_test -G Xcode \
  12. -DCMAKE_TOOLCHAIN_FILE=../../../../Scripts/cmake/Platform/iOS/Toolchain_ios.cmake \
  13. -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED=false \
  14. -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=false \
  15. -DCMAKE_MODULE_PATH="$PACKAGE_ROOT" || exit 1
  16. cmake --build temp/build_test --parallel --config Release || exit 1
  17. # we can't actually run it on ios, that'd require an emulator or device as well as
  18. # cert / signing - but we can at least make sure it compiles and links!
  19. exit 0