test_OpenSSL_android.cmd 884 B

1234567891011121314151617181920212223242526
  1. @rem #
  2. @rem # Copyright (c) Contributors to the Open 3D Engine Project.
  3. @rem # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. @rem #
  5. @rem # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. @rem #
  7. @rem #
  8. rmdir /S /Q temp\build_test
  9. mkdir temp\build_test
  10. @rem CMAKE demands forward slashes but PACKAGE_ROOT is in native path:
  11. set "PACKAGE_ROOT=%PACKAGE_ROOT:\=/%"
  12. cmake -S test -B temp/build_test ^
  13. -G Ninja ^
  14. -DCMAKE_BUILD_TYPE=Release ^
  15. -DCMAKE_TOOLCHAIN_FILE=../../../../Scripts/cmake/Platform/Android/Toolchain_android.cmake ^
  16. -DCMAKE_MODULE_PATH="%PACKAGE_ROOT%" || exit /b 1
  17. cmake --build temp/build_test --parallel || exit /b 1
  18. @rem we can't actually run this - its an android binary. But at least the above
  19. @rem makes sure it links and that our OpenSSL script is working.
  20. exit /b 0