-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild_plugin.sh
More file actions
executable file
·36 lines (29 loc) · 977 Bytes
/
Copy pathbuild_plugin.sh
File metadata and controls
executable file
·36 lines (29 loc) · 977 Bytes
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
#!/bin/bash
check_ret() {
if [ $1 -ne 0 ]; then
echo ""
echo "!!! FAIL: $2"
echo "********************************************************************************"
echo ""
exit $1
else
echo ""
echo "*** SUCCESS: $2"
echo "********************************************************************************"
echo ""
fi
}
cd UnigineEditorPlugin_Python3Scripting
cmake -H. -Bjunk/release -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_INSTALL_PREFIX=../bin
check_ret $? "cmake configure release"
cmake --build junk/release --parallel 8 --config Release
check_ret $? "cmake build release"
# cmake -H. -Bjunk/debug -DCMAKE_BUILD_TYPE=Debug \
# -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
# -DCMAKE_INSTALL_PREFIX=../bin
# check_ret $? "cmake configure debug"
#
# cmake --build junk/debug --parallel 8 --config Release
# check_ret $? "cmake build debug"