1 # Create build directory
2 rm -rf $WORKSPACE/build
3 mkdir
-p $WORKSPACE/build
5 PREFIX
="$WORKSPACE/build"
14 CONF_OPTS
="--enable-static --disable-shared"
17 echo "Build with python bindings"
18 # We only support bindings built with Python 3
19 export PYTHON
="python3"
20 export PYTHON_CONFIG
="/usr/bin/python3-config"
21 CONF_OPTS
="--enable-python-bindings"
30 # oot : out-of-tree build
31 # dist: build via make dist
32 # * : normal tree build
34 # Make sure to move to the build_path and configure
38 TEST_PLAN_PATH
=$WORKSPACE
42 echo "Out of tree build"
43 BUILD_PATH
=$WORKSPACE/oot
46 $WORKSPACE/configure
--prefix=$PREFIX $CONF_OPTS
49 echo "Distribution out of tree build"
50 BUILD_PATH
=`mktemp -d`
52 # Initial configure and generate tarball
57 cp *.
tar.
* $BUILD_PATH/
60 # Ignore level 1 of tar
61 tar xvf
*.
tar.
* --strip 1
63 $BUILD_PATH/configure
--prefix=$PREFIX $CONF_OPTS
65 # Set test plan to dist tar
66 TEST_PLAN_PATH
=$BUILD_PATH
69 echo "Standard tree build"
70 $WORKSPACE/configure
--prefix=$PREFIX $CONF_OPTS
78 mkdir
-p $WORKSPACE/tap
82 # Run make check tests
83 if [ -e $TEST_PLAN_PATH/tests
/tests
]; then
84 prove
--merge --exec '' - < $TEST_PLAN_PATH/tests
/tests
--archive $WORKSPACE/tap
/ || true
86 echo "Missing test plan"
90 # TAP plugin is having a hard time with .yml files.
91 rm -f $WORKSPACE/tap
/meta.yml
93 # And also with files without extension, so rename all result to *.tap
94 find $WORKSPACE/tap
/ -type f
-exec mv {} {}.tap \
;
98 # Cleanup rpath and libtool .la files
99 find $WORKSPACE/build
/bin
-executable -type f
-exec chrpath
--delete {} \
;
100 find $WORKSPACE/build
/lib
-name "*.so" -exec chrpath
--delete {} \
;
101 find $WORKSPACE/build
/lib
-name "*.la" -exec rm -f {} \
;
103 if [ $build = "dist" ]; then
This page took 0.052455 seconds and 4 git commands to generate.