docker.sh 821 B

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