diff --git a/build.sh b/build.sh index 10f852546e..2f5b454ea3 100755 --- a/build.sh +++ b/build.sh @@ -212,6 +212,7 @@ for ARG in "$@"; do --lto ) flags="$flags -DUSE_LTO=TRUE" ;; --pgo-optimize ) flags="$flags -DUSE_PGO_OPTIMIZE=TRUE" ;; --pgo-generate ) flags="$flags -DUSE_PGO_GENERATE=TRUE" ;; + --no-dev9ghzdrk ) flags="$flags -DDISABLE_DEV9GHZDRK=TRUE" ;; --no-simd ) flags="$flags -DDISABLE_ADVANCE_SIMD=TRUE" ;; --no-trans ) flags="$flags -DNO_TRANSLATION=TRUE" ;; --cross-multilib ) flags="$flags -DCMAKE_TOOLCHAIN_FILE=$toolfile"; useCross=1; ;; @@ -241,6 +242,7 @@ for ARG in "$@"; do echo echo "** Distribution Compatibilities **" echo "--sdl12 : Build with SDL1.2 (requires if wx is linked against SDL1.2)" + echo "--no-dev9ghzdrk : Skip dev9ghzdrk. (Avoids needing escalated privileges to build.)" echo echo "** Expert Developer option **" echo "--gtk3 : replace GTK2 by GTK3" diff --git a/cmake/SelectPcsx2Plugins.cmake b/cmake/SelectPcsx2Plugins.cmake index deea8701dd..69d0e07b91 100644 --- a/cmake/SelectPcsx2Plugins.cmake +++ b/cmake/SelectPcsx2Plugins.cmake @@ -120,6 +120,7 @@ endif() #--------------------------------------- # dev9ghzdrk #--------------------------------------- +if(NOT DISABLE_DEV9GHZDRK) if(GTKn_FOUND AND PCAP_FOUND AND LIBXML2_FOUND) set(dev9ghzdrk TRUE) list(APPEND CMAKE_MODULE_PATH @@ -129,6 +130,7 @@ else() set(dev9ghzdrk FALSE) print_dep("Skip build of dev9ghzdrk: missing dependencies" "${msg_dep_dev}") endif() +endif() #--------------------------------------- #---------------------------------------