docker.sh 854 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash -ex
  2. # SPDX-FileCopyrightText: 2024 suyu Emulator Project
  3. # SPDX-License-Identifier: GPL-2.0-or-later
  4. #
  5. # Modified by AMA25 on 3/5/24
  6. # Exit on error, rather than continuing with the rest of the script.
  7. set -e
  8. ccache -s
  9. mkdir build || true && cd build
  10. cmake .. \
  11. -DCMAKE_BUILD_TYPE=Release \
  12. -DCMAKE_CXX_FLAGS="-march=x86-64-v2" \
  13. -DCMAKE_CXX_COMPILER=/usr/lib/ccache/clang++ \
  14. -DCMAKE_C_COMPILER=/usr/lib/ccache/clang \
  15. -DCMAKE_INSTALL_PREFIX="/usr" \
  16. -DDISPLAY_VERSION=$1 \
  17. -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
  18. -DENABLE_QT_TRANSLATION=ON \
  19. -DUSE_DISCORD_PRESENCE=ON \
  20. -DSUYU_CRASH_DUMPS=ON \
  21. -DSUYU_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} \
  22. -DSUYU_USE_BUNDLED_FFMPEG=ON \
  23. -GNinja
  24. ninja
  25. ccache -s
  26. ctest -VV -C Release