build_tiff_mac.sh 1011 B

1234567891011121314151617181920212223242526272829
  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. # note that we explicitly turn off the compilation of all features that rely on 3rd Party Libraries
  9. # except the ones we want. This prevents the cmake build system from automatically finding things
  10. # if they happen to be installed locally, which we don't want.
  11. cmake -S temp/src -B temp/build -G Xcode \
  12. -DCMAKE_TOOLCHAIN_FILE=../../../../Scripts/cmake/Platform/Mac/Toolchain_mac.cmake \
  13. -DCMAKE_C_FLAGS="-fPIC" \
  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 1
  27. cmake --build temp/build --target tiff --config Release --parallel || exit 1