mirror of https://github.com/PCSX2/pcsx2.git
build.sh: separate release/dev/dbg into separated directory
Avoid useless recompilation
This commit is contained in:
parent
4ac17428ac
commit
c73d626757
18
build.sh
18
build.sh
|
@ -26,6 +26,12 @@ CoverityBuild=0
|
|||
cppcheck=0
|
||||
clangTidy=0
|
||||
|
||||
root=$PWD/$(dirname "$0")
|
||||
log="$root/install_log.txt"
|
||||
build="$root/build"
|
||||
coverity_dir="cov-int"
|
||||
coverity_result=pcsx2-coverity.xz
|
||||
|
||||
if [[ $(uname -s) == 'Darwin' ]]; then
|
||||
ncpu=$(sysctl -n hw.ncpu)
|
||||
release=$(uname -r)
|
||||
|
@ -47,10 +53,10 @@ for ARG in "$@"; do
|
|||
--clang-tidy ) flags+=(-DCMAKE_EXPORT_COMPILE_COMMANDS=ON); clangTidy=1 ;;
|
||||
--clang ) useClang=1 ;;
|
||||
--cppcheck ) cppcheck=1 ;;
|
||||
--dev|--devel ) flags+=(-DCMAKE_BUILD_TYPE=Devel) ;;
|
||||
--dbg|--debug ) flags+=(-DCMAKE_BUILD_TYPE=Debug) ;;
|
||||
--dev|--devel ) flags+=(-DCMAKE_BUILD_TYPE=Devel) build="$root/build_dev";;
|
||||
--dbg|--debug ) flags+=(-DCMAKE_BUILD_TYPE=Debug) build="$root/build_dbg";;
|
||||
--release ) flags+=(-DCMAKE_BUILD_TYPE=Release) build="$root/build_rel";;
|
||||
--strip ) flags+=(-DCMAKE_BUILD_STRIP=TRUE) ;;
|
||||
--release ) flags+=(-DCMAKE_BUILD_TYPE=Release) ;;
|
||||
--glsl ) flags+=(-DGLSL_API=TRUE) ;;
|
||||
--egl ) flags+=(-DEGL_API=TRUE) ;;
|
||||
--sdl12 ) flags+=(-DSDL2_API=FALSE) ;;
|
||||
|
@ -99,12 +105,6 @@ for ARG in "$@"; do
|
|||
esac
|
||||
done
|
||||
|
||||
root=$PWD/$(dirname "$0")
|
||||
log="$root/install_log.txt"
|
||||
build="$root/build"
|
||||
coverity_dir="`cov-int`"
|
||||
coverity_result=pcsx2-coverity.xz
|
||||
|
||||
if [[ "$cleanBuild" -eq 1 ]]; then
|
||||
echo "Doing a clean build."
|
||||
# allow to keep build as a symlink (for example to a ramdisk)
|
||||
|
|
Loading…
Reference in New Issue