-
Notifications
You must be signed in to change notification settings - Fork 0
/
release_it.sh
executable file
·53 lines (40 loc) · 1.36 KB
/
release_it.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
#!/bin/sh
HOST_SYSTEM=`uname -s`
HOST_ARCH=`uname -m`
STARTDIR=`pwd`
CMAKE_BUILDDIR=build/$HOST_ARCH-$HOST_SYSTEM
mkdir -p $CMAKE_BUILDDIR
cd $CMAKE_BUILDDIR
if [ "$HOST_SYSTEM" = "Linux" ]
then
cmake -DwxUnivDiff_WITH_DOCS:bool=ON \
-DwxUnivDiff_WITH_TESTS:bool=ON \
-DCXXTEST_INCLUDE_DIR=3rdparty/cxxtest \
-DCXXTEST_PYTHON_TESTGEN_EXECUTABLE=3rdparty/cxxtest/bin/cxxtestgen \
../..
cmake --build . --target all --target test --target package
cmake --build . --target package_source
cd $STARTDIR
else
WXDIR=$STARTDIR/../wxWidgets/3.2.4
cmake -DwxUnivDiff_WITH_DOCS:bool=ON \
-DwxUnivDiff_WITH_TESTS:bool=ON \
-DCXXTEST_INCLUDE_DIR=$STARTDIR/3rdparty/cxxtest \
-DCXXTEST_PYTHON_TESTGEN_EXECUTABLE=$STARTDIR/3rdparty/cxxtest/bin/cxxtestgen \
-DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=$WXDIR/build-cocoa-debug/wx-config \
../..
cmake --build . --target all
cmake --build . --target test
cmake --build . --target package
cmake --build . --target package_source
cd $STARTDIR
mkdir -p build/Xcode
cd build/Xcode
cmake -DwxUnivDiff_WITH_DOCS:bool=ON \
-DwxUnivDiff_WITH_TESTS:bool=ON \
-DCXXTEST_INCLUDE_DIR=3rdparty/cxxtest \
-DCXXTEST_PYTHON_TESTGEN_EXECUTABLE=3rdparty/cxxtest/bin/cxxtestgen \
-DwxWidgets_CONFIG_EXECUTABLE:FILEPATH=$WXDIR/build-cocoa-debug/wx-config \
-G Xcode ../..
cd $STARTDIR
fi