build_tiff_windows.cmd 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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 we explicitly turn off the compilation of all features that rely on 3rd Party Libraries
  8. @rem # except the ones we want. This prevents the cmake build system from automatically finding things
  9. @rem # if they happen to be installed locally, which we don't want.
  10. @rem # cmake expects fowardslashes:
  11. set "DOWNLOADED_PACKAGE_FOLDERS=%DOWNLOADED_PACKAGE_FOLDERS:\=/%"
  12. cmake -S temp/src -B temp/build ^
  13. -DCMAKE_POLICY_DEFAULT_CMP0074=NEW ^
  14. -DBUILD_SHARED_LIBS=OFF ^
  15. -Djpeg=OFF ^
  16. -Dold-jpeg=OFF ^
  17. -Dpixarlog=OFF ^
  18. -Dlzma=OFF ^
  19. -Dwebp=OFF ^
  20. -Djbig=OFF ^
  21. -Dzstd=OFF ^
  22. -Djpeg12=OFF ^
  23. -Dzlib=ON ^
  24. -Dlibdeflate=OFF ^
  25. -Dcxx=OFF ^
  26. -DCMAKE_MODULE_PATH="%DOWNLOADED_PACKAGE_FOLDERS%" || exit /b 1
  27. cmake --build temp/build --target tiff --config Release --parallel || exit /b 1
  28. exit /b 0