forked from hazelcast/hazelcast-cpp-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
releaseLinux.sh
executable file
·77 lines (60 loc) · 2.24 KB
/
releaseLinux.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
set -e #abort the script at first faiure
echo "Cleanup release directories"
rm -rf ./Release*
rm -rf ./cpp
echo "Compiling Static 32bit library"
mkdir ReleaseStatic32;
cd ./ReleaseStatic32;
cmake .. -DHZ_LIB_TYPE=STATIC -DHZ_BIT=32 -DCMAKE_BUILD_TYPE=Release
make -j;
cd ..;
echo "Compiling Shared 32bit library"
mkdir ReleaseShared32;
cd ./ReleaseShared32;
cmake .. -DHZ_LIB_TYPE=SHARED -DHZ_BIT=32 -DCMAKE_BUILD_TYPE=Release
make -j;
cd ..;
echo "Moving 32bit libraries to target"
mkdir -p ./cpp/Linux_32/hazelcast/include/hazelcast/
mkdir -p ./cpp/Linux_32/hazelcast/lib
mkdir -p ./cpp/Linux_32/external/include
mkdir -p ./cpp/Linux_32/examples/
cp -R hazelcast/include/hazelcast/* cpp/Linux_32/hazelcast/include/hazelcast/
cp ReleaseShared32/libHazelcastClient* cpp/Linux_32/hazelcast/lib/
cp ReleaseStatic32/libHazelcastClient* cpp/Linux_32/hazelcast/lib/
echo "Moving 32bit external libraries to target"
cp -R external/include/* cpp/Linux_32/external/include/
echo "Moving 32bit examples to target"
cp examples/*cpp cpp/Linux_32/examples/
cp ReleaseStatic32/examples/*exe cpp/Linux_32/examples/
echo "Clearing temporary 32bit libraries"
rm -rf ./ReleaseShared32
rm -rf ./ReleaseStatic32
echo "Compiling Static 64bit library"
mkdir ReleaseStatic64;
cd ./ReleaseStatic64;
cmake .. -DHZ_LIB_TYPE=STATIC -DHZ_BIT=64 -DCMAKE_BUILD_TYPE=Release
make -j;
cd ..;
echo "Compiling Shared 64bit library"
mkdir ReleaseShared64;
cd ./ReleaseShared64;
cmake .. -DHZ_LIB_TYPE=SHARED -DHZ_BIT=64 -DCMAKE_BUILD_TYPE=Release
make -j;
cd ..;
echo "Moving 64bit libraries to target"
mkdir -p ./cpp/Linux_64/hazelcast/include/hazelcast/
mkdir -p ./cpp/Linux_64/hazelcast/lib
mkdir -p ./cpp/Linux_64/external/include
mkdir -p ./cpp/Linux_64/examples/
cp -R hazelcast/include/hazelcast/* cpp/Linux_64/hazelcast/include/hazelcast/
cp ReleaseShared64/libHazelcastClient* cpp/Linux_64/hazelcast/lib/
cp ReleaseStatic64/libHazelcastClient* cpp/Linux_64/hazelcast/lib/
echo "Moving 64bit external libraries to target"
cp -R external/include/* cpp/Linux_64/external/include/
echo "Moving 64bit examples to target"
cp examples/*cpp cpp/Linux_64/examples/
cp ReleaseStatic64/examples/*exe cpp/Linux_64/examples/
echo "Clearing temporary 64bit libraries"
rm -rf ./ReleaseShared64
rm -rf ./ReleaseStatic64