-
Notifications
You must be signed in to change notification settings - Fork 3
/
build_pf.sh
executable file
·118 lines (61 loc) · 3.13 KB
/
build_pf.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/bin/bash
SOURCE_DIR=$1
BUILD_TYPE=RelWithDebInfo
if [[ "$2" != "" ]]
then
BUILD_TYPE=$2
fi
echo "Build type: ${BUILD_TYPE}"
[ -z $BUILD_DOCS ] && BUILD_DOCS=1
echo "Docs build: ${BUILD_DOCS}"
[ -z $TEST_PLUGINS ] && TEST_PLUGINS=1
echo "Plugins build: ${TEST_PLUGINS}"
[ -z $USE_CPPUNIT ] && USE_CPPUNIT=1
echo "Unittests build: ${USE_CPPUNIT}"
[ -z $MAKE_WSSQL ] && MAKE_WSSQL=0
echo "WSSql build: ${MAKE_WSSQL}"
[ -z $USE_LIBMEMCACHED ] && USE_LIBMEMCACHED=0
echo "WSSql build: ${USE_LIBMEMCACHED}"
[ -z $ECLWATCH_BUILD_STRATEGY ] && ECLWATCH_BUILD_STRATEGY=IF_MISSING
echo "ECLWatch strategy: ${ECLWATCH_BUILD_STRATEGY}"
[ -z $ENABLE_SPARK ] && ENABLE_SPARK=0
echo "Enable Spark: ${ENABLE_SPARK}"
[ -z $SUPPRESS_SPARK ] && SUPPRESS_SPARK=1
echo "Suppress Spark: ${SUPPRESS_SPARK}"
[ -z $SUPPRESS_PLUGINS ] && SUPPRESS_PLUGINS=''
echo "Suppress plugins: ${SUPRESS_PLUGINS}"
echo "PYTHON_PLUGIN: ${PYTHON_PLUGIN}"
#/usr/local/bin/cmake ../$SOURCE_DIR -DTEST_PLUGINS=1 -DINCLUDE_PLUGINS=1 -DUSE_LIBMEMCACHED=0 -DWSSQL_SERVICE=0 -DSUPPRESS_PY3EMBED=ON -DINCLUDE_PY3EMBED=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DMAKE_DOCS=$BUILD_DOCS -DUSE_CPPUNIT=1 -DINCLUDE_SPARK=0 -DSUPPRESS_SPARK=1 -DSPARK=0 -DGENERATE_COVERAGE_INFO=0 -DUSE_LIBXSLT=ON -DXALAN_LIBRARIES= -DMYSQL_LIBRARIES=/usr/lib64/mysql/libmysqlclient.so -DMYSQL_INCLUDE_DIR=/usr/include/mysql -DMAKE_MYSQLEMBED=1
#/usr/local/bin/cmake ../$SOURCE_DIR -DTEST_PLUGINS=1 -DINCLUDE_PLUGINS=1 -DSUPPRESS_PY3EMBED=ON -DINCLUDE_PY3EMBED=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DMAKE_DOCS=$BUILD_DOCS -DUSE_CPPUNIT=1 -DINCLUDE_SPARK=0 -DSUPPRESS_SPARK=1 -DSPARK=0 -DGENERATE_COVERAGE_INFO=0 -DUSE_LIBXSLT=ON -DXALAN_LIBRARIES= -DMYSQL_LIBRARIES=/usr/lib64/mysql/libmysqlclient.so -DMYSQL_INCLUDE_DIR=/usr/include/mysql -DMAKE_MYSQLEMBED=1
echo "Create makefiles"
#GENERATOR="Eclipse CDT4 - Unix Makefiles"
GENERATOR="Unix Makefiles"
CMAKE_CMD=$'/usr/local/bin/cmake'
#CMAKE_CMD+=$' -G "'${GENERATOR}$'"'
CMAKE_CMD+=$' -D CMAKE_BUILD_TYPE='$BUILD_TYPE
CMAKE_CMD+=$' -DINCLUDE_PLUGINS='${TEST_PLUGINS}' -DTEST_PLUGINS='${TEST_PLUGINS}
CMAKE_CMD+=${SUPRESS_PLUGINS}
CMAKE_CMD+=$' -DMAKE_DOCS='${BUILD_DOCS}
CMAKE_CMD+=$' -DUSE_CPPUNIT='${USE_CPPUNIT}
CMAKE_CMD+=$' -DWSSQL_SERVICE='${MAKE_WSSQL}
CMAKE_CMD+=$' -DUSE_LIBMEMCACHED='${USE_LIBMEMCACHED}
CMAKE_CMD+=$' -DECLWATCH_BUILD_STRATEGY='${ECLWATCH_BUILD_STRATEGY}
CMAKE_CMD+=$' -DINCLUDE_SPARK='${ENABLE_SPARK}' -DSUPPRESS_SPARK='${SUPPRESS_SPARK}' -DSPARK='${ENABLE_SPARK}
CMAKE_CMD+=$' -DUSE_MYSQL=OFF -DUSE_MYSQLEMBED=OFF -DSUPPRESS_MYSQLEMBED=ON'
CMAKE_CMD+=$' '${PYTHON_PLUGIN}
CMAKE_CMD+=$' -DVCPKG_ECLBLAS_DYNAMIC_ARCH=OFF'
CMAKE_CMD+=$' -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DUSE_LIBXSLT=ON -DXALAN_LIBRARIES= '
if [[ ( "${SYSTEM_ID}" =~ "CentOS_release_6" ) ]]
then
# For CentOS 6
CMAKE_CMD+=$' -DCENTOS_6_BOOST=ON'
else
CMAKE_CMD+=$' -DCENTOS_6_BOOST=OFF'
fi
CMAKE_CMD+=$' -DCMAKE_EXE_LINKER_FLAGS=-lrt'
#CMAKE_CMD+=$' -D CMAKE_ECLIPSE_MAKE_ARGUMENTS=-30 ../HPCC-Platform ln -s ../HPCC-Platform'
CMAKE_CMD+=$' ../'$SOURCE_DIR
echo "${CMAKE_CMD}"
#res=$( eval ${CMAKE_CMD} 2>&1 )
# echo "Res: ${res[*]}"
eval ${CMAKE_CMD}