add no_untiy entrance for build.sh and fix build error without unity

This commit is contained in:
wenxingsen
2022-05-20 14:31:30 +08:00
committed by wangzelin.wzl
parent 8167156cf5
commit 4177759770
10 changed files with 18 additions and 7 deletions

View File

@ -112,9 +112,15 @@ function build
xrelease)
do_build "$@" -DCMAKE_BUILD_TYPE=RelWithDebInfo
;;
xrelease_no_unity)
do_build "$@" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOB_ENABLE_UNITY=OFF -DOB_ENABLE_PCH=OFF
;;
xdebug)
do_build "$@" -DCMAKE_BUILD_TYPE=Debug
;;
xdebug_no_unity)
do_build "$@" -DCMAKE_BUILD_TYPE=Debug -DOB_ENABLE_UNITY=OFF -DOB_ENABLE_PCH=OFF
;;
xrpm)
do_build "$@" -DOB_BUILD_RPM=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOB_USE_CCACHE=OFF -DOB_COMPRESS_DEBUG_SECTIONS=ON -DOB_STATIC_LINK_LGPL_DEPS=OFF
;;