build_tiff_ios.sh 1.0 KB

123456789101112131415161718192021222324252627282930
  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/iOS/Toolchain_ios.cmake \
  13. -DCMAKE_MACOSX_BUNDLE=OFF \
  14. -DCMAKE_POLICY_DEFAULT_CMP0074=NEW \
  15. -DBUILD_SHARED_LIBS=OFF \
  16. -Djpeg=OFF \
  17. -Dold-jpeg=OFF \
  18. -Dpixarlog=OFF \
  19. -Dlzma=OFF \
  20. -Dwebp=OFF \
  21. -Djbig=OFF \
  22. -Dzstd=OFF \
  23. -Djpeg12=OFF \
  24. -Dzlib=ON \
  25. -Dlibdeflate=OFF \
  26. -Dcxx=OFF \
  27. -DCMAKE_MODULE_PATH="$DOWNLOADED_PACKAGE_FOLDERS" || exit 1
  28. cmake --build temp/build --target tiff --config Release --parallel || exit 1