1 # Create build directory
2 rm -rf $WORKSPACE/build
3 mkdir
-p $WORKSPACE/build
6 URCU_INCS
="$WORKSPACE/dependencies/liburcu/build/include/"
7 URCU_LIBS
="$WORKSPACE/dependencies/liburcu/build/lib/"
9 export CPPFLAGS
="-I$URCU_INCS"
10 export LDFLAGS
="-L$URCU_LIBS"
11 export LD_LIBRARY_PATH
="$URCU_LIBS:$LD_LIBRARY_PATH"
13 PREFIX
="$WORKSPACE/build"
20 # Unsupported! liblttng-ust can't pull in it's static (.a) dependencies.
23 # CONF_OPTS="--enable-static --disable-shared"
26 echo "Java agent build"
27 export CLASSPATH
="/usr/share/java/log4j-1.2.jar"
28 CONF_OPTS
="--enable-java-agent-all"
31 echo "Python agent build"
32 CONF_OPTS
="--enable-python-agent"
41 # oot : out-of-tree build
42 # dist: build via make dist
43 # * : normal tree build
45 # Make sure to move to the build_path and configure
51 echo "Out of tree build"
52 BUILD_PATH
=$WORKSPACE/oot
55 $WORKSPACE/configure
--prefix=$PREFIX $CONF_OPTS
58 echo "Distribution out of tree build"
59 BUILD_PATH
=`mktemp -d`
61 # Initial configure and generate tarball
66 cp *.
tar.
* $BUILD_PATH/
69 # Ignore level 1 of tar
70 tar xvf
*.
tar.
* --strip 1
72 $BUILD_PATH/configure
--prefix=$PREFIX $CONF_OPTS
76 echo "Standard tree build"
77 $WORKSPACE/configure
--prefix=$PREFIX $CONF_OPTS
86 mkdir
-p $WORKSPACE/tap
/unit
90 prove
--merge --exec '' - < $BUILD_PATH/tests
/unit_tests
--archive $WORKSPACE/tap
/unit
/ || true
92 # TAP plugin is having a hard time with .yml files.
93 rm -f $WORKSPACE/tap
/unit
/meta.yml
95 # And also with files without extension, so rename all result to *.tap
96 find $WORKSPACE/tap
/unit
/ -type f
-exec mv {} {}.tap \
;
101 # Cleanup rpath and libtool .la files
102 find $WORKSPACE/build
/lib
-name "*.so" -exec chrpath
--delete {} \
;
103 find $WORKSPACE/build
/lib
-name "*.la" -exec rm -f {} \
;
105 # Clean temp dir for dist build
106 if [ $build = "dist" ]; then
This page took 0.068679 seconds and 5 git commands to generate.