summaryrefslogtreecommitdiff
path: root/build_game.sh
blob: d917df32d342b2b454380a5bee4aacb2b3bd4956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

build_path=build
mkdir -p "$build_path"

include_path=include
include_opts="-I $include_path"

files="source/game/game.cpp"
build_opts="-fPIC -shared -g -O0"

build_command="g++ $build_opts $include_opts $files -o $build_path/libgame.so"

printf "Building game as a shared library\n"
printf "This is the build command:\n"
printf "$build_command\n\n"
$build_command
printf "Build Complete!\n"