forked from CopernicaMarketingSoftware/PHP-CPP
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_all.sh
55 lines (40 loc) · 1.32 KB
/
build_all.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
#
# Run this script from project root dir
#
echo --------------------------------------------------------
echo -- Building Shared Library - Debug
echo --------------------------------------------------------
cmake -S . -B build_shared_d -G "Unix Makefiles" \
-DPHPCPP_BUILD_SHARED=TRUE \
-DCMAKE_BUILD_TYPE="Debug"
sleep 5
cmake --build build_shared_d
sleep 5
echo --------------------------------------------------------
echo -- Building Shared Library - Release
echo --------------------------------------------------------
cmake -S . -B build_shared_r -G "Unix Makefiles" \
-DPHPCPP_BUILD_SHARED=TRUE \
-DCMAKE_BUILD_TYPE="Release"
sleep 5
cmake --build build_shared_r
sleep 5
echo --------------------------------------------------------
echo -- Building Static Library - Debug
echo --------------------------------------------------------
cmake -S . -B build_static_d -G "Unix Makefiles" \
-DPHPCPP_BUILD_SHARED=FALSE \
-DCMAKE_BUILD_TYPE="Debug"
sleep 5
cmake --build build_static_d
sleep 5
echo --------------------------------------------------------
echo -- Building Static Library - Release
echo --------------------------------------------------------
cmake -S . -B build_static_r -G "Unix Makefiles" \
-DPHPCPP_BUILD_SHARED=FALSE \
-DCMAKE_BUILD_TYPE="Release"
sleep 5
cmake --build build_static_r
sleep 5