X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fbabeltrace%2Fbuild.sh;h=8f9d23f4a1feb391caf4c0d4852e8db86b954b97;hb=16ec8358533661e41d03a52092a6fb55597984fa;hp=58991010e7fd707c74950f89a0e9a90f0e4837c6;hpb=1183a11815822b173a33df994c0222597480f17c;p=lttng-ci.git diff --git a/scripts/babeltrace/build.sh b/scripts/babeltrace/build.sh index 5899101..8f9d23f 100755 --- a/scripts/babeltrace/build.sh +++ b/scripts/babeltrace/build.sh @@ -196,6 +196,11 @@ cd "$SRCDIR" # Get source version from configure script eval "$(grep '^PACKAGE_VERSION=' ./configure)" +# Enable dev mode by default for BT 2.0 builds +export BABELTRACE_DEBUG_MODE=1 +export BABELTRACE_DEV_MODE=1 +export BABELTRACE_MINIMAL_LOG_LEVEL=VERBOSE + # Set configure options for each build configuration CONF_OPTS="" case "$conf" in @@ -217,6 +222,19 @@ python-bindings) 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="/usr/bin/python3-config" + CONF_OPTS="--enable-python-bindings --enable-python-bindings-doc --enable-python-plugins" + ;; *) echo "Standard build" CONF_OPTS=""