Add a new option to build.sh to not generate translations while building the project.

This commit is contained in:
arcum42 2018-09-05 21:38:38 -07:00
parent a977f1e6c1
commit d8e6ba4274
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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; ;;