build_zlib_android.cmd 753 B

123456789101112131415161718192021
  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 note that toolchain path is relative to the source path (-S) not to the folder this script lives in.
  8. cmake -S temp/src -B temp/build -G Ninja ^
  9. -DCMAKE_BUILD_TYPE=Release ^
  10. -DCMAKE_CXX_STANDARD=17 ^
  11. -DCMAKE_TOOLCHAIN_FILE=../../../../Scripts/cmake/Platform/Android/Toolchain_android.cmake ^
  12. -DBUILD_SHARED_LIBS=OFF ^
  13. -DSKIP_INSTALL_FILES=YES
  14. @if %errorlevel% NEQ 0 ( exit /b 1 )
  15. cmake --build temp/build --target zlibstatic --parallel
  16. @if %errorlevel% NEQ 0 ( exit /b 1 )
  17. exit /b 0