-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.dev.sh
executable file
·57 lines (47 loc) · 1.43 KB
/
build.dev.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
#!/bin/sh
BUILD_DIR=./build.dev
FORCE_BUILD=false
if [ "$1" = "-f" ]; then
FORCE_BUILD=true
fi
await_confirm() {
if ! $FORCE_BUILD; then
echo ""
echo " To build using these settings, hit ENTER"
read confirm
fi
}
exit_message() {
echo "-------------------------------------------------------------"
echo "Done. To install PyDASH, run make install in $BUILD_DIR"
}
if [ "${PYCXX_BASE}" = "" ] ; then
PYCXX_BASE=${HOME}/opt/pycxx
fi
if [ "${PYBIND11_BASE}" = "" ] ; then
PYBIND11_BASE="/opt/pybind11"
fi
if [ "${DASH_BASE}" = "" ] ; then
DASH_BASE="/opt/dash/dash-0.3.0-dev"
fi
# Configure with default release build settings:
mkdir -p $BUILD_DIR
rm -Rf $BUILD_DIR/*
(cd $BUILD_DIR && cmake -DCMAKE_BUILD_TYPE=Debug \
-DINSTALL_PREFIX=./pydash-0.1.0/ \
\
-DENABLE_LOGGING=ON \
-DENABLE_TRACE_LOGGING=ON \
-DENABLE_ASSERTIONS=ON \
\
-DBUILD_EXAMPLES=ON \
-DBUILD_TESTS=ON \
\
-DDASH_BASE=$DASH_BASE \
-DPYBIND11_BASE=$PYBIND11_BASE \
\
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
../ && \
await_confirm && \
make -j 4 VERBOSE=1) && (cp $BUILD_DIR/compile_commands.json .) && \
exit_message