forked from sigsegv-mvm/sigsegv-mvm
-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
autoconfig_docker.sh
executable file
·34 lines (25 loc) · 1.14 KB
/
autoconfig_docker.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
#!/bin/bash
CONFIGURE="$(realpath configure.py)"
PROJECT_DIR=$(dirname $(realpath $0))
echo $PROJECT_DIR
PATHS="--hl2sdk-root=$PROJECT_DIR/build/alliedmodders --mms-path=$PROJECT_DIR/build/alliedmodders/metamod-source --sm-path=$PROJECT_DIR/build/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 --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 --sdks=tf2 --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