Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ign -> gz : Release Tools Migrate Internal Vars #753

Merged
merged 7 commits into from
Aug 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions jenkins-scripts/docker/ign_cmake-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ export BUILDING_DEPENDENCIES="pkg-config"
# Enable long-running ign-cmake tests in CI.
export BUILDING_EXTRA_CMAKE_PARAMS+=" -DBUILDSYSTEM_TESTING=True"

# Identify IGN_CMAKE_MAJOR_VERSION to help with dependency resolution
IGN_CMAKE_MAJOR_VERSION=$(\
# Identify GZ_CMAKE_MAJOR_VERSION to help with dependency resolution
GZ_CMAKE_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-cmake/CMakeLists.txt)

# Check IGN_CMAKE version is integer
if ! [[ ${IGN_CMAKE_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_CMAKE_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_CMAKE version is integer
if ! [[ ${GZ_CMAKE_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_CMAKE_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

export GZDEV_PROJECT_NAME="gz-cmake${IGN_CMAKE_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-cmake${GZ_CMAKE_MAJOR_VERSION}"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
16 changes: 8 additions & 8 deletions jenkins-scripts/docker/ign_common-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-common"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_COMMON_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_COMMON_DEPENDENCIES"

# Identify IGN_COMMON_MAJOR_VERSION to help with dependency resolution
IGN_COMMON_MAJOR_VERSION=$(\
# Identify GZ_COMMON_MAJOR_VERSION to help with dependency resolution
GZ_COMMON_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-common/CMakeLists.txt)

# Check IGN_COMMON version is integer
if ! [[ ${IGN_COMMON_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_COMMON_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_COMMON version is integer
if ! [[ ${GZ_COMMON_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_COMMON_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

if [[ ${IGN_COMMON_MAJOR_VERSION} -ge 3 ]]; then
if [[ ${GZ_COMMON_MAJOR_VERSION} -ge 3 ]]; then
export NEED_C17_COMPILER=true
fi

export GZDEV_PROJECT_NAME="gz-common${IGN_COMMON_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-common${GZ_COMMON_MAJOR_VERSION}"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
14 changes: 7 additions & 7 deletions jenkins-scripts/docker/ign_fuel-tools-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-fuel-tools"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_FUEL_TOOLS_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_FUEL_TOOLS_DEPENDENCIES"
export BUILDING_JOB_REPOSITORIES="stable"

# Identify IGN_FUEL_TOOLS_MAJOR_VERSION to help with dependency resolution
IGN_FUEL_TOOLS_MAJOR_VERSION=$(\
# Identify GZ_FUEL_TOOLS_MAJOR_VERSION to help with dependency resolution
GZ_FUEL_TOOLS_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-fuel-tools/CMakeLists.txt)

# Check IGN_FUEL_TOOLS version is integer
if ! [[ ${IGN_FUEL_TOOLS_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_FUEL_TOOLS_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_FUEL_TOOLS version is integer
if ! [[ ${GZ_FUEL_TOOLS_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_FUEL_TOOLS_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

export GZDEV_PROJECT_NAME="gz-fuel-tools${IGN_FUEL_TOOLS_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-fuel-tools${GZ_FUEL_TOOLS_MAJOR_VERSION}"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
12 changes: 6 additions & 6 deletions jenkins-scripts/docker/ign_gazebo-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-gazebo"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_GAZEBO_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_SIM_DEPENDENCIES"

# Identify IGN_GAZEBO_MAJOR_VERSION to help with dependency resolution
IGN_GAZEBO_MAJOR_VERSION=$(\
# Identify GZ_SIM_MAJOR_VERSION to help with dependency resolution
GZ_SIM_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-gazebo/CMakeLists.txt)

# Check IGN_GAZEBO version is integer
if ! [[ ${IGN_GAZEBO_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_GAZEBO_MAJOR_VERSION is not an integer, check the detection"
if ! [[ ${GZ_SIM_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_SIM_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

export NEED_C17_COMPILER=true
export GPU_SUPPORT_NEEDED=true

export GZDEV_PROJECT_NAME="gz-sim${IGN_GAZEBO_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-sim${GZ_SIM_MAJOR_VERSION}"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
16 changes: 8 additions & 8 deletions jenkins-scripts/docker/ign_gui-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-gui"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_GUI_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_GUI_DEPENDENCIES"

# Identify IGN_GUI_MAJOR_VERSION to help with dependency resolution
IGN_GUI_MAJOR_VERSION=$(\
# Identify GZ_GUI_MAJOR_VERSION to help with dependency resolution
GZ_GUI_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-gui/CMakeLists.txt)

# Check IGN_GUI_MAJOR_VERSION version is integer
if ! [[ ${IGN_GUI_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_GUI_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_GUI_MAJOR_VERSION version is integer
if ! [[ ${GZ_GUI_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_GUI_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

if [[ ${IGN_GUI_MAJOR_VERSION} -ge 1 ]]; then
if [[ ${GZ_GUI_MAJOR_VERSION} -ge 1 ]]; then
export NEED_C17_COMPILER=true
fi

export GPU_SUPPORT_NEEDED=true
export GZDEV_PROJECT_NAME="gz-gui${IGN_GUI_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-gui${GZ_GUI_MAJOR_VERSION}"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
14 changes: 7 additions & 7 deletions jenkins-scripts/docker/ign_launch-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-launch"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_LAUNCH_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_LAUNCH_DEPENDENCIES"

# Identify IGN_LAUNCH_MAJOR_VERSION to help with dependency resolution
IGN_LAUNCH_MAJOR_VERSION=$(\
# Identify GZ_LAUNCH_MAJOR_VERSION to help with dependency resolution
GZ_LAUNCH_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-launch/CMakeLists.txt)

# Check IGN_LAUNCH version is integer
if ! [[ ${IGN_LAUNCH_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_LAUNCH_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_LAUNCH version is integer
if ! [[ ${GZ_LAUNCH_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_LAUNCH_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

export NEED_C17_COMPILER=true
export GZDEV_PROJECT_NAME="gz-launch${IGN_LAUNCH_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-launch${GZ_LAUNCH_MAJOR_VERSION}"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
2 changes: 1 addition & 1 deletion jenkins-scripts/docker/ign_launch-install-test-job.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export GPU_SUPPORT_NEEDED=true
. ${SCRIPT_DIR}/lib/_gazebo_utils.sh

INSTALL_JOB_POSTINSTALL_HOOK="""
${IGN_GAZEBO_RUNTIME_TEST}
${GZ_SIM_RUNTIME_TEST}
"""
# Need bc to proper testing and parsing the time
export DEPENDENCY_PKGS="${DEPENDENCY_PKGS} wget bc"
Expand Down
16 changes: 8 additions & 8 deletions jenkins-scripts/docker/ign_math-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ fi

export BUILDING_SOFTWARE_DIRECTORY="ign-math"
export BUILDING_JOB_REPOSITORIES="stable"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_MATH_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_MATH_DEPENDENCIES"

# Identify IGN_MATH_MAJOR_VERSION to help with dependency resolution
IGN_MATH_MAJOR_VERSION=$(\
# Identify GZ_MATH_MAJOR_VERSION to help with dependency resolution
GZ_MATH_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-math/CMakeLists.txt)

# Check IGN_MATH version is integer
if ! [[ ${IGN_MATH_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_MATH_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_MATH version is integer
if ! [[ ${GZ_MATH_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_MATH_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

if [[ ${IGN_MATH_MAJOR_VERSION} -ge 6 ]]; then
if [[ ${GZ_MATH_MAJOR_VERSION} -ge 6 ]]; then
export NEED_C17_COMPILER=true
fi

export GZDEV_PROJECT_NAME="gz-math${IGN_MATH_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-math${GZ_MATH_MAJOR_VERSION}"

. "${SCRIPT_DIR}/lib/generic-building-base.bash"
16 changes: 8 additions & 8 deletions jenkins-scripts/docker/ign_msgs-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-msgs"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_MSGS_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_MSGS_DEPENDENCIES"

# Identify IGN_MSGS_MAJOR_VERSION to help with dependency resolution
IGN_MSGS_MAJOR_VERSION=$(\
# Identify GZ_MSGS_MAJOR_VERSION to help with dependency resolution
GZ_MSGS_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-msgs/CMakeLists.txt)

# Check IGN_MSGS version is integer
if ! [[ ${IGN_MSGS_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_MSGS_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_MSGS version is integer
if ! [[ ${GZ_MSGS_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_MSGS_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

if [[ ${IGN_MSGS_MAJOR_VERSION} -ge 3 ]]; then
if [[ ${GZ_MSGS_MAJOR_VERSION} -ge 3 ]]; then
export NEED_C17_COMPILER=true
fi

export GZDEV_PROJECT_NAME="gz-msgs${IGN_MSGS_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-msgs${GZ_MSGS_MAJOR_VERSION}"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
14 changes: 7 additions & 7 deletions jenkins-scripts/docker/ign_physics-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-physics"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_PHYSICS_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_PHYSICS_DEPENDENCIES"

# Identify IGN_PHYSICS_MAJOR_VERSION to help with dependency resolution
IGN_PHYSICS_MAJOR_VERSION=$(\
# Identify GZ_PHYSICS_MAJOR_VERSION to help with dependency resolution
GZ_PHYSICS_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-physics/CMakeLists.txt)

# Check IGN_PHYSICS version is integer
if ! [[ ${IGN_PHYSICS_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_PHYSICS_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_PHYSICS version is integer
if ! [[ ${GZ_PHYSICS_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_PHYSICS_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

export NEED_C17_COMPILER=true
export GZDEV_PROJECT_NAME="gz-physics${IGN_PHYSICS_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-physics${GZ_PHYSICS_MAJOR_VERSION}"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
16 changes: 8 additions & 8 deletions jenkins-scripts/docker/ign_plugin-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-plugin"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_PLUGIN_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_PLUGIN_DEPENDENCIES"

# Identify IGN_PLUGIN_MAJOR_VERSION to help with dependency resolution
IGN_PLUGIN_MAJOR_VERSION=$(\
# Identify GZ_PLUGIN_MAJOR_VERSION to help with dependency resolution
GZ_PLUGIN_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-plugin/CMakeLists.txt)

# Check IGN_PLUGIN version is integer
if ! [[ ${IGN_PLUGIN_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_PLUGIN_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_PLUGIN version is integer
if ! [[ ${GZ_PLUGIN_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_PLUGIN_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

if [[ ${IGN_PLUGIN_MAJOR_VERSION} -ge 6 ]]; then
if [[ ${GZ_PLUGIN_MAJOR_VERSION} -ge 6 ]]; then
export NEED_C17_COMPILER=true
fi

export GZDEV_PROJECT_NAME="gz-plugin${IGN_PLUGIN_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-plugin${GZ_PLUGIN_MAJOR_VERSION}"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
16 changes: 8 additions & 8 deletions jenkins-scripts/docker/ign_rendering-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-rendering"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_RENDERING_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_RENDERING_DEPENDENCIES"

# Identify IGN_RENDERING_MAJOR_VERSION to help with dependency resolution
IGN_RENDERING_MAJOR_VERSION=$(\
# Identify GZ_RENDERING_MAJOR_VERSION to help with dependency resolution
GZ_RENDERING_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-rendering/CMakeLists.txt)

# Check IGN_RENDERING version is integer
if ! [[ ${IGN_RENDERING_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_RENDERING_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_RENDERING version is integer
if ! [[ ${GZ_RENDERING_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_RENDERING_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

if [[ ${IGN_RENDERING_MAJOR_VERSION} -ge 1 ]]; then
if [[ ${GZ_RENDERING_MAJOR_VERSION} -ge 1 ]]; then
export NEED_C17_COMPILER=true
fi

export GPU_SUPPORT_NEEDED=true
export GZDEV_PROJECT_NAME="gz-rendering${IGN_RENDERING_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-rendering${GZ_RENDERING_MAJOR_VERSION}"

export BUILDING_EXTRA_CMAKE_PARAMS+=" -DSKIP_optix=true"

Expand Down
2 changes: 1 addition & 1 deletion jenkins-scripts/docker/ign_rndf-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-rndf"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_RNDF_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_RNDF_DEPENDENCIES"
export BUILDING_JOB_REPOSITORIES="stable"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
14 changes: 7 additions & 7 deletions jenkins-scripts/docker/ign_sensors-compilation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ if [[ -z ${DISTRO} ]]; then
fi

export BUILDING_SOFTWARE_DIRECTORY="ign-sensors"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="IGN_SENSORS_DEPENDENCIES"
export BUILDING_PKG_DEPENDENCIES_VAR_NAME="GZ_SENSORS_DEPENDENCIES"

# Identify IGN_SENSORS_MAJOR_VERSION to help with dependency resolution
IGN_SENSORS_MAJOR_VERSION=$(\
# Identify GZ_SENSORS_MAJOR_VERSION to help with dependency resolution
GZ_SENSORS_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/ign-sensors/CMakeLists.txt)

# Check IGN_SENSORS version is integer
if ! [[ ${IGN_SENSORS_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! IGN_SENSORS_MAJOR_VERSION is not an integer, check the detection"
# Check GZ_SENSORS version is integer
if ! [[ ${GZ_SENSORS_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! GZ_SENSORS_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

export NEED_C17_COMPILER=true

export GPU_SUPPORT_NEEDED=true
export GZDEV_PROJECT_NAME="gz-sensors${IGN_SENSORS_MAJOR_VERSION}"
export GZDEV_PROJECT_NAME="gz-sensors${GZ_SENSORS_MAJOR_VERSION}"

. ${SCRIPT_DIR}/lib/generic-building-base.bash
Loading