mirror of https://github.com/PCSX2/pcsx2.git
build.sh: add a -no-cross-multilib option
(only for developers)
This commit is contained in:
parent
a0d54df522
commit
14d4b3fe7a
46
build.sh
46
build.sh
|
@ -25,23 +25,24 @@ useCross=2
|
||||||
|
|
||||||
for ARG in "$@"; do
|
for ARG in "$@"; do
|
||||||
case "$ARG" in
|
case "$ARG" in
|
||||||
--clean ) cleanBuild=1 ;;
|
--clean ) cleanBuild=1 ;;
|
||||||
--clang ) useClang=1; ;;
|
--clang ) useClang=1; ;;
|
||||||
--dev|--devel ) flags+=(-DCMAKE_BUILD_TYPE=Devel) ;;
|
--dev|--devel ) flags+=(-DCMAKE_BUILD_TYPE=Devel) ;;
|
||||||
--dbg|--debug ) flags+=(-DCMAKE_BUILD_TYPE=Debug) ;;
|
--dbg|--debug ) flags+=(-DCMAKE_BUILD_TYPE=Debug) ;;
|
||||||
--strip ) flags+=(-DCMAKE_BUILD_STRIP=TRUE) ;;
|
--strip ) flags+=(-DCMAKE_BUILD_STRIP=TRUE) ;;
|
||||||
--release ) flags+=(-DCMAKE_BUILD_TYPE=Release) ;;
|
--release ) flags+=(-DCMAKE_BUILD_TYPE=Release) ;;
|
||||||
--glsl ) flags+=(-DGLSL_API=TRUE) ;;
|
--glsl ) flags+=(-DGLSL_API=TRUE) ;;
|
||||||
--egl ) flags+=(-DEGL_API=TRUE) ;;
|
--egl ) flags+=(-DEGL_API=TRUE) ;;
|
||||||
--gles ) flags+=(-DGLES_API=TRUE) ;;
|
--gles ) flags+=(-DGLES_API=TRUE) ;;
|
||||||
--sdl2 ) flags+=(-DSDL2_API=TRUE) ;;
|
--sdl2 ) flags+=(-DSDL2_API=TRUE) ;;
|
||||||
--extra ) flags+=(-DEXTRA_PLUGINS=TRUE) ;;
|
--extra ) flags+=(-DEXTRA_PLUGINS=TRUE) ;;
|
||||||
--asan ) flags+=(-DUSE_ASAN=TRUE) ;;
|
--asan ) flags+=(-DUSE_ASAN=TRUE) ;;
|
||||||
--wx28 ) flags+=(-DWX28_API=TRUE) ;;
|
--wx28 ) flags+=(-DWX28_API=TRUE) ;;
|
||||||
--gtk3 ) flags+=(-DGTK3_API=TRUE) ;;
|
--gtk3 ) flags+=(-DGTK3_API=TRUE) ;;
|
||||||
--no-simd ) flags+=(-DDISABLE_ADVANCE_SIMD=TRUE) ;;
|
--no-simd ) flags+=(-DDISABLE_ADVANCE_SIMD=TRUE) ;;
|
||||||
--cross-multilib ) flags+=(-DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake); useCross=1; ;;
|
--cross-multilib ) flags+=(-DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake); useCross=1; ;;
|
||||||
-D* ) flags+=($ARG) ;;
|
--no-cross-multilib ) useCross=0; ;;
|
||||||
|
-D* ) flags+=($ARG) ;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
# Unknown option
|
# Unknown option
|
||||||
|
@ -52,11 +53,9 @@ for ARG in "$@"; do
|
||||||
echo
|
echo
|
||||||
echo "--clean : Do a clean build."
|
echo "--clean : Do a clean build."
|
||||||
echo "--extra : Build all plugins"
|
echo "--extra : Build all plugins"
|
||||||
|
echo "--no-simd : Only allow sse2"
|
||||||
echo
|
echo
|
||||||
echo "** Developer option **"
|
echo "** Developer option **"
|
||||||
echo "--clang : Build with Clang/llvm"
|
|
||||||
echo "--asan : Enable Address sanitizer"
|
|
||||||
echo
|
|
||||||
echo "--wx28 : Force wxWidget 2.8"
|
echo "--wx28 : Force wxWidget 2.8"
|
||||||
echo "--glsl : Replace CG backend of ZZogl by GLSL"
|
echo "--glsl : Replace CG backend of ZZogl by GLSL"
|
||||||
echo "--egl : Replace GLX by EGL (ZZogl plugins only)"
|
echo "--egl : Replace GLX by EGL (ZZogl plugins only)"
|
||||||
|
@ -64,9 +63,12 @@ for ARG in "$@"; do
|
||||||
echo "--gles : Replace openGL backend of GSdx by openGLES3.1"
|
echo "--gles : Replace openGL backend of GSdx by openGLES3.1"
|
||||||
echo "--cross-multilib: Build a 32bit PCSX2 on a 64bit machine using multilib."
|
echo "--cross-multilib: Build a 32bit PCSX2 on a 64bit machine using multilib."
|
||||||
echo
|
echo
|
||||||
echo "** Hardcode Developer option **"
|
echo "** Expert Developer option **"
|
||||||
echo "--no-simd : Only allow sse2"
|
|
||||||
echo "--gtk3 : replace GTK2 by GTK3"
|
echo "--gtk3 : replace GTK2 by GTK3"
|
||||||
|
echo "--no-cross-multilib: Build a native PCSX2"
|
||||||
|
echo "--clang : Build with Clang/llvm"
|
||||||
|
echo "--asan : Enable Address sanitizer"
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue