# 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
+export BABELTRACE_MINIMAL_LOG_LEVEL=TRACE
# Set configure options for each build configuration
CONF_OPTS=""
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=""