-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathBuildLinux.sh
More file actions
executable file
·54 lines (40 loc) · 1.46 KB
/
BuildLinux.sh
File metadata and controls
executable file
·54 lines (40 loc) · 1.46 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# ~/bin/build-polycode
set -euv
basedir=$(pwd)
# NOTE: The build system does not install any files into CMAKE_INSTALL_PREFIX,
# but instead builds everything in the source tree.
# You can supply parameters to make by passing them as parameters to this
# script. For example -j<number of threads> may be useful.
# Build dependencies
mkdir -p "$basedir/Dependencies/Build/Debug"
cd "$basedir/Dependencies/Build/Debug"
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ../..
make $@
mkdir -p "$basedir/Dependencies/Build/Release"
cd "$basedir/Dependencies/Build/Release"
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../..
make $@
# Build core
mkdir -p "$basedir/Build/Debug"
cd "$basedir/Build/Debug"
cmake -G "Unix Makefiles" -DPOLYCODE_BUILD_BINDINGS=ON -DPOLYCODE_BUILD_PLAYER=ON -DCMAKE_BUILD_TYPE=Debug -DPYTHON_EXECUTABLE=/usr/bin/python2 ../..
make $@
make $@ PolycodeLua
make install
mkdir -p "$basedir/Build/Release"
cd "$basedir/Build/Release"
cmake -G "Unix Makefiles" -DPOLYCODE_BUILD_BINDINGS=ON -DPOLYCODE_BUILD_PLAYER=ON -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python2 ../..
make $@
make $@ PolycodeLua
make install
# Build standalone
mkdir -p "$basedir/Standalone/Build"
cd "$basedir/Standalone/Build"
cmake -G "Unix Makefiles" ..
make install
# Build IDE
mkdir -p "$basedir/IDE/Build/Linux"
cd "$basedir/IDE/Build/Linux"
make $@
# IDE executable is found in "$basedir/IDE/Build/Linux/Build"