docker_build_linux.sh 939 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  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. # Build the release version of the library
  7. cmake -S src -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="-fPIC -O2" -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=/data/workspace/package
  8. if [ $? -ne 0 ]
  9. then
  10. echo "Error configuring cmake for squish-ccr (${build_config})"
  11. exit 1
  12. fi
  13. cmake --build build --target install
  14. if [ $? -ne 0 ]
  15. then
  16. echo "Failed to build squish-ccr for Linux (${build_config})"
  17. exit 1
  18. fi
  19. # If sse2neon was installed on this docker container, include its license file
  20. if [ -f /data/workspace/sse2neon/LICENSE ]
  21. then
  22. cp /data/workspace/sse2neon/LICENSE /data/workspace/package/LICENSE.sse2neon
  23. fi
  24. exit 0