From d8e6ba42740e0e442b495f547ef96955b610e0b6 Mon Sep 17 00:00:00 2001 From: arcum42 Date: Wed, 5 Sep 2018 21:38:38 -0700 Subject: [PATCH] Add a new option to build.sh to not generate translations while building the project. --- CMakeLists.txt | 2 ++ build.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 21e9d28f00..9fae311cfa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,10 +64,12 @@ include(SelectPcsx2Plugins) # Must be done after SearchForStuff write_svnrev_h() +if(NOT NO_TRANSLATION) # make the translation if(EXISTS "${CMAKE_SOURCE_DIR}/locales") add_subdirectory(locales) endif() +endif() # make common if(common_libs) diff --git a/build.sh b/build.sh index cd407a146f..d123318d67 100755 --- a/build.sh +++ b/build.sh @@ -80,6 +80,7 @@ for ARG in "$@"; do --pgo-optimize ) flags="$flags -DUSE_PGO_OPTIMIZE=TRUE" ;; --pgo-generate ) flags="$flags -DUSE_PGO_GENERATE=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; ;; --no-cross-multilib ) useCross=0; ;; --coverity ) CoverityBuild=1; cleanBuild=1; ;;