3 # Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # Create build directory
20 rm -rf $WORKSPACE/build
21 mkdir
-p $WORKSPACE/build
24 URCU_INCS
="$WORKSPACE/deps/liburcu/build/include/"
25 URCU_LIBS
="$WORKSPACE/deps/liburcu/build/lib/"
27 export CPPFLAGS
="-I$URCU_INCS"
28 export LDFLAGS
="-L$URCU_LIBS"
29 export LD_LIBRARY_PATH
="$URCU_LIBS:${LD_LIBRARY_PATH:-}"
31 PREFIX
="$WORKSPACE/build"
38 # Unsupported! liblttng-ust can't pull in it's static (.a) dependencies.
41 # CONF_OPTS="--enable-static --disable-shared"
44 echo "Java agent build"
45 export CLASSPATH
="/usr/share/java/log4j-1.2.jar"
46 CONF_OPTS
="--enable-java-agent-all"
49 echo "Python agent build"
50 CONF_OPTS
="--enable-python-agent"
59 # oot : out-of-tree build
60 # dist: build via make dist
61 # * : normal tree build
63 # Make sure to move to the build_path and configure
69 echo "Out of tree build"
70 BUILD_PATH
=$WORKSPACE/oot
73 $WORKSPACE/configure
--prefix=$PREFIX $CONF_OPTS
76 echo "Distribution out of tree build"
77 BUILD_PATH
=`mktemp -d`
79 # Initial configure and generate tarball
84 cp *.
tar.
* $BUILD_PATH/
87 # Ignore level 1 of tar
88 tar xvf
*.
tar.
* --strip 1
90 $BUILD_PATH/configure
--prefix=$PREFIX $CONF_OPTS
94 echo "Standard tree build"
95 $WORKSPACE/configure
--prefix=$PREFIX $CONF_OPTS
103 rm -rf $WORKSPACE/tap
104 mkdir
-p $WORKSPACE/tap
/unit
108 prove
--merge --exec '' - < $BUILD_PATH/tests
/unit_tests
--archive $WORKSPACE/tap
/unit
/ || true
110 # TAP plugin is having a hard time with .yml files.
111 rm -f $WORKSPACE/tap
/unit
/meta.yml
113 # And also with files without extension, so rename all result to *.tap
114 find $WORKSPACE/tap
/unit
/ -type f
-exec mv {} {}.tap \
;
119 # Cleanup rpath and libtool .la files
120 find $WORKSPACE/build
/lib
-name "*.so" -exec chrpath
--delete {} \
;
121 find $WORKSPACE/build
/lib
-name "*.la" -exec rm -f {} \
;
123 # Clean temp dir for dist build
124 if [ $build = "dist" ]; then
This page took 0.031464 seconds and 4 git commands to generate.