docker.sh 1015 B

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