X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fbabeltrace%2Fbuild.sh;h=92c47ed32a8ff29e7af3ddae378b14e27d9e7469;hb=c3accd92fccc9f6b22c9af2d91e4b0e97556c66f;hp=da5f4ab96ff4ec1aa46a74e75ec5b97abbf72e66;hpb=10bbe356323e68a2e206b8ccb8de984933fd1282;p=lttng-ci.git diff --git a/scripts/babeltrace/build.sh b/scripts/babeltrace/build.sh index da5f4ab..92c47ed 100755 --- a/scripts/babeltrace/build.sh +++ b/scripts/babeltrace/build.sh @@ -74,7 +74,6 @@ arch=${arch:-} conf=${conf:-} build=${build:-} cc=${cc:-} -bt2_mode=${bt2_mode:-} SRCDIR="$WORKSPACE/src/babeltrace" @@ -198,18 +197,9 @@ cd "$SRCDIR" eval "$(grep '^PACKAGE_VERSION=' ./configure)" # Enable dev mode by default for BT 2.0 builds -case "$bt2_mode" in -dev) - echo "Developer mode" - export BABELTRACE_DEBUG_MODE=1 - export BABELTRACE_DEV_MODE=1 - export BABELTRACE_MINIMAL_LOG_LEVEL=VERBOSE - ;; -*) - echo "Production mode (Default)" - export BABELTRACE_MINIMAL_LOG_LEVEL=INFO - ;; -esac +export BABELTRACE_DEBUG_MODE=1 +export BABELTRACE_DEV_MODE=1 +export BABELTRACE_MINIMAL_LOG_LEVEL=TRACE # Set configure options for each build configuration CONF_OPTS="" @@ -225,13 +215,26 @@ python-bindings) echo "Build with python bindings" # We only support bindings built with Python 3 export PYTHON="python3" - export PYTHON_CONFIG="/usr/bin/python3-config" + export PYTHON_CONFIG="python3-config" CONF_OPTS="--enable-python-bindings" if vergte "$PACKAGE_VERSION" "2.0"; then CONF_OPTS="${CONF_OPTS} --enable-python-bindings-doc --enable-python-plugins" fi ;; +production) + echo "Production build" + + # Unset the developper variables + unset BABELTRACE_DEBUG_MODE + unset BABELTRACE_DEV_MODE + unset BABELTRACE_MINIMAL_LOG_LEVEL + + # Enable the python bindings + export PYTHON="python3" + export PYTHON_CONFIG="python3-config" + CONF_OPTS="--enable-python-bindings --enable-python-bindings-doc --enable-python-plugins" + ;; *) echo "Standard build" CONF_OPTS=""