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
40 echo "Out of tree build"
41 BUILD_PATH
=$WORKSPACE/oot
44 $WORKSPACE/configure
--prefix=$PREFIX $CONF_OPTS
47 echo "Distribution out of tree build"
48 BUILD_PATH
=`mktemp -d`
50 # Initial configure and generate tarball
55 cp *.
tar.
* $BUILD_PATH/
58 # Ignore level 1 of tar
59 tar xvf
*.
tar.
* --strip 1
61 $BUILD_PATH/configure
--prefix=$PREFIX $CONF_OPTS
65 echo "Standard tree build"
66 $WORKSPACE/configure
--prefix=$PREFIX $CONF_OPTS
74 mkdir
-p $WORKSPACE/tap
78 # Run make check tests
79 prove
--merge --exec '' - < $BUILD_PATH/tests
/tests
--archive $WORKSPACE/tap
/ || true
81 # TAP plugin is having a hard time with .yml files.
82 rm -f $WORKSPACE/tap
/meta.yml
84 # And also with files without extension, so rename all result to *.tap
85 find $WORKSPACE/tap
/ -type f
-exec mv {} {}.tap \
;
89 # Cleanup rpath and libtool .la files
90 find $WORKSPACE/build
/bin
-executable -type f
-exec chrpath
--delete {} \
;
91 find $WORKSPACE/build
/lib
-name "*.so" -exec chrpath
--delete {} \
;
92 find $WORKSPACE/build
/lib
-name "*.la" -exec rm -f {} \
;
94 if [ $build = "dist" ]; then
This page took 0.031831 seconds and 4 git commands to generate.