forked from sigsegv-mvm/sigsegv-mvm
-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
autoconfig.sh
executable file
·40 lines (33 loc) · 1.53 KB
/
autoconfig.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
CONFIGURE=$(realpath configure.py)
PROJECT_DIR=$(dirname $(realpath $0))
echo $PROJECT_DIR
PATHS="--hl2sdk-root=$PROJECT_DIR/../alliedmodders --mms-path=$PROJECT_DIR/../alliedmodders/metamod-source --sm-path=$PROJECT_DIR/../alliedmodders/sourcemod"
mkdir -p build
cd build
CC=gcc CXX=g++ $CONFIGURE $PATHS --sdks=tf2 --enable-debug --exclude-mods-debug --enable-optimize --exclude-mods-visualize --exclude-vgui
cd ..
mkdir -p build/release
pushd build/release
CC=gcc CXX=g++ $CONFIGURE $PATHS --targets=x86_64,x86 --sdks=tf2,css,sdk2013 --build-all --enable-optimize --exclude-mods-debug --exclude-mods-visualize --exclude-vgui
popd
mkdir -p build/x86
pushd build/x86
CC=gcc CXX=g++ $CONFIGURE $PATHS --targets=x86 --sdks=tf2 --enable-optimize --exclude-mods-debug --exclude-mods-visualize --exclude-vgui
popd
mkdir -p build/x64
pushd build/x64
CC=gcc CXX=g++ $CONFIGURE $PATHS --targets=x86_64 --sdks=tf2 --enable-optimize --exclude-mods-debug --exclude-mods-visualize --exclude-vgui
popd
# mkdir -p build/release/optimize-only
# pushd build/release/optimize-only
# CC=gcc CXX=g++ $CONFIGURE $PATHS --enable-optimize --exclude-mods-debug --exclude-mods-visualize --exclude-vgui --optimize-mods-only
# popd
# mkdir -p build/release/no-mvm
# pushd build/release/no-mvm
# CC=gcc CXX=g++ $CONFIGURE $PATHS --sdks=tf2 --enable-optimize --exclude-mods-debug --exclude-mods-visualize --exclude-vgui --exclude-mods-mvm
# popd
# mkdir -p build/clang
# pushd build/clang
# CC=clang CXX=clang++ $CONFIGURE $PATHS --sdks=tf2 --enable-debug
# popd