fix the cmake flags

This commit is contained in:
VictorGamerLOL 2024-04-30 20:49:52 +01:00
parent 9512dfb8df
commit 689ce83617
2 changed files with 9 additions and 9 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/result

View file

@ -43,7 +43,6 @@ stdenv.mkDerivation(finalAttrs: {
url = "https://git.suyu.dev/suyu/suyu"; url = "https://git.suyu.dev/suyu/suyu";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
sha256 = "wLUPNRDR22m34OcUSB1xHd+pT7/wx0pHYAZj6LnEN4g="; sha256 = "wLUPNRDR22m34OcUSB1xHd+pT7/wx0pHYAZj6LnEN4g=";
fetchSubmodules = true;
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -102,7 +101,7 @@ stdenv.mkDerivation(finalAttrs: {
cmakeFlags = [ cmakeFlags = [
# actually has a noticeable performance impact # actually has a noticeable performance impact
"-DSUYUENABLE_LTO=ON" "-DSUYU_ENABLE_LTO=ON"
# build with qt6 # build with qt6
"-DENABLE_QT6=ON" "-DENABLE_QT6=ON"
@ -111,22 +110,22 @@ stdenv.mkDerivation(finalAttrs: {
# use system libraries # use system libraries
# NB: "external" here means "from the externals/ directory in the source", # NB: "external" here means "from the externals/ directory in the source",
# so "off" means "use system" # so "off" means "use system"
"-DSUYUUSE_EXTERNAL_SDL2=OFF" "-DSUYU_USE_EXTERNAL_SDL2=OFF"
"-DSUYUUSE_EXTERNAL_VULKAN_HEADERS=OFF" "-DSUYU_USE_EXTERNAL_VULKAN_HEADERS=OFF"
# don't use system ffmpeg, suyu uses internal APIs # don't use system ffmpeg, suyu uses internal APIs
"-DSUYUUSE_BUNDLED_FFMPEG=ON" "-DSUYU_USE_BUNDLED_FFMPEG=ON"
# don't check for missing submodules # don't check for missing submodules
"-DSUYUCHECK_SUBMODULES=OFF" "-DSUYU_CHECK_SUBMODULES=OFF"
# enable some optional features # enable some optional features
"-DSUYUUSE_QT_WEB_ENGINE=ON" "-DSUYU_USE_QT_WEB_ENGINE=ON"
"-DSUYUUSE_QT_MULTIMEDIA=ON" "-DSUYU_USE_QT_MULTIMEDIA=ON"
"-DUSE_DISCORD_PRESENCE=ON" "-DUSE_DISCORD_PRESENCE=ON"
# We dont want to bother upstream with potentially outdated compat reports # We dont want to bother upstream with potentially outdated compat reports
"-DSUYUENABLE_COMPATIBILITY_REPORTING=OFF" "-DSUYU_ENABLE_COMPATIBILITY_REPORTING=OFF"
"-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=OFF" # We provide this deterministically "-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=OFF" # We provide this deterministically
]; ];