forked from RoboStack/ros-humble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying to apply ros/xacro#304 as a patch
- Loading branch information
dan
committed
Jun 24, 2022
1 parent
94b94cd
commit d666233
Showing
49 changed files
with
2,626 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
:: Generated by vinca http://github.com/RoboStack/vinca. | ||
:: DO NOT EDIT! | ||
@if not defined CONDA_PREFIX goto:eof | ||
|
||
@REM Don't do anything when we are in conda build. | ||
@if defined SYS_PREFIX exit /b 0 | ||
|
||
@set "QT_PLUGIN_PATH=%CONDA_PREFIX%\Library\plugins" | ||
|
||
@call "%CONDA_PREFIX%\Library\local_setup.bat" | ||
@set PYTHONHOME= | ||
@set "ROS_OS_OVERRIDE=conda:win64" | ||
@set "ROS_ETC_DIR=%CONDA_PREFIX%\Library\etc\ros" | ||
@set "AMENT_PREFIX_PATH=%CONDA_PREFIX%\Library" | ||
@set "AMENT_PYTHON_EXECUTABLE=%CONDA_PREFIX%\Library\python.exe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by vinca http://github.com/RoboStack/vinca. | ||
# DO NOT EDIT! | ||
# if [ -z "${CONDA_PREFIX}" ]; then | ||
# exit 0; | ||
# fi | ||
|
||
# Not sure if this is necessary on UNIX? | ||
# export QT_PLUGIN_PATH=$CONDA_PREFIX\plugins | ||
|
||
if [ "$CONDA_BUILD" = "1" -a "$target_platform" != "$build_platform" ]; then | ||
# ignore sourcing | ||
echo "Not activating ROS when cross-compiling"; | ||
else | ||
source $CONDA_PREFIX/setup.sh | ||
fi | ||
|
||
case "$OSTYPE" in | ||
darwin*) export ROS_OS_OVERRIDE="conda:osx";; | ||
linux*) export ROS_OS_OVERRIDE="conda:linux";; | ||
esac | ||
|
||
export ROS_ETC_DIR=$CONDA_PREFIX/etc/ros | ||
export AMENT_PREFIX_PATH=$CONDA_PREFIX | ||
|
||
# Looks unnecessary for UNIX | ||
# unset PYTHONHOME= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
:: Generated by vinca http://github.com/RoboStack/vinca. | ||
:: DO NOT EDIT! | ||
setlocal EnableDelayedExpansion | ||
|
||
set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%" | ||
|
||
:: MSVC is preferred. | ||
set CC=cl.exe | ||
set CXX=cl.exe | ||
|
||
rd /s /q build | ||
mkdir build | ||
pushd build | ||
|
||
:: set "CMAKE_GENERATOR=Ninja" | ||
|
||
:: try to fix long paths issues by using default generator | ||
set "CMAKE_GENERATOR=Visual Studio %VS_MAJOR% %VS_YEAR%" | ||
set "SP_DIR_FORWARDSLASHES=%SP_DIR:\=/%" | ||
|
||
cmake ^ | ||
-G "%CMAKE_GENERATOR%" ^ | ||
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True ^ | ||
-DPYTHON_EXECUTABLE=%PYTHON% ^ | ||
-DPython_EXECUTABLE=%PYTHON% ^ | ||
-DPython3_EXECUTABLE=%PYTHON% ^ | ||
-DSETUPTOOLS_DEB_LAYOUT=OFF ^ | ||
-DBUILD_SHARED_LIBS=ON ^ | ||
-DBUILD_TESTING=OFF ^ | ||
-DCMAKE_OBJECT_PATH_MAX=255 ^ | ||
-DPYTHON_INSTALL_DIR=%SP_DIR_FORWARDSLASHES% ^ | ||
%SRC_DIR%\%PKG_NAME%\src\work | ||
if errorlevel 1 exit 1 | ||
|
||
cmake --build . --config Release --target install | ||
if errorlevel 1 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
:: Generated by vinca http://github.com/RoboStack/vinca. | ||
:: DO NOT EDIT! | ||
setlocal | ||
|
||
set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%" | ||
|
||
pushd %SRC_DIR%\%PKG_NAME%\src\work | ||
|
||
:: If there is a setup.cfg that contains install-scripts then we should not | ||
:: set it here | ||
set "INSTALL_SCRIPTS_ARG=--install-scripts=%LIBRARY_PREFIX%\bin" | ||
findstr install[-_]scripts setup.cfg | ||
if "%errorlevel%" == "0" ( | ||
set INSTALL_SCRIPTS_ARG= | ||
) | ||
|
||
%PYTHON% setup.py install ^ | ||
--prefix=%LIBRARY_PREFIX% ^ | ||
--install-lib=%SP_DIR% ^ | ||
%INSTALL_SCRIPTS_ARG% | ||
|
||
if errorlevel 1 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
:: Generated by vinca http://github.com/RoboStack/vinca. | ||
:: DO NOT EDIT! | ||
setlocal | ||
set "PYTHONPATH=%LIBRARY_PREFIX%\lib\site-packages;%SP_DIR%" | ||
|
||
:: MSVC is preferred. | ||
set CC=cl.exe | ||
set CXX=cl.exe | ||
|
||
set "CATKIN_BUILD_BINARY_PACKAGE_ARGS=-DCATKIN_BUILD_BINARY_PACKAGE=1" | ||
if "%PKG_NAME%" == "ros-humble-catkin" ( | ||
:: create catkin cookie to make it is a catkin workspace | ||
type NUL > %LIBRARY_PREFIX%\.catkin | ||
:: keep the workspace activation scripts (e.g., local_setup.bat) | ||
set CATKIN_BUILD_BINARY_PACKAGE_ARGS= | ||
) | ||
|
||
rd /s /q build | ||
mkdir build | ||
pushd build | ||
|
||
set SKIP_TESTING=ON | ||
|
||
cmake ^ | ||
-G "Ninja" ^ | ||
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON ^ | ||
-DBUILD_SHARED_LIBS=ON ^ | ||
-DPYTHON_EXECUTABLE=%PYTHON% ^ | ||
-DPython3_EXECUTABLE=%PYTHON% ^ | ||
-DSETUPTOOLS_DEB_LAYOUT=OFF ^ | ||
-DBoost_USE_STATIC_LIBS=OFF ^ | ||
%CATKIN_BUILD_BINARY_PACKAGE_ARGS% ^ | ||
-DCATKIN_SKIP_TESTING=%SKIP_TESTING% ^ | ||
%SRC_DIR%\%PKG_NAME%\src\work | ||
if errorlevel 1 exit 1 | ||
|
||
if "%PKG_NAME%" == "ros-humble-eigenpy" ( | ||
cmake --build . --config Release --target all --parallel 1 | ||
if errorlevel 1 exit 1 | ||
) else ( | ||
cmake --build . --config Release --target all | ||
if errorlevel 1 exit 1 | ||
) | ||
|
||
if "%SKIP_TESTING%" == "OFF" ( | ||
cmake --build . --config Release --target run_tests | ||
if errorlevel 1 exit 1 | ||
) | ||
|
||
cmake --build . --config Release --target install | ||
if errorlevel 1 exit 1 | ||
|
||
if "%PKG_NAME%" == "ros-humble-catkin" ( | ||
:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d. | ||
:: This will allow them to be run on environment activation. | ||
for %%F in (activate deactivate) DO ( | ||
if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d | ||
copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat | ||
) | ||
) | ||
|
||
if "%PKG_NAME%" == "ros-humble-ros-workspace" ( | ||
:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d. | ||
:: This will allow them to be run on environment activation. | ||
for %%F in (activate deactivate) DO ( | ||
if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d | ||
copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
:: Generated by vinca http://github.com/RoboStack/vinca. | ||
:: DO NOT EDIT! | ||
setlocal | ||
|
||
:: MSVC is preferred. | ||
set CC=cl.exe | ||
set CXX=cl.exe | ||
|
||
set CATKIN_MAKE_ISOLATED=src\ros-humble-catkin\bin\catkin_make_isolated | ||
set CMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH:\=/% | ||
|
||
%PYTHON% %CATKIN_MAKE_ISOLATED% ^ | ||
--install-space %LIBRARY_PREFIX% ^ | ||
--use-ninja ^ | ||
--install ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DBUILD_SHARED_LIBS=ON ^ | ||
-DPYTHON_EXECUTABLE=%PYTHON% ^ | ||
-DCATKIN_SKIP_TESTING=ON | ||
if errorlevel 1 exit 1 | ||
|
||
:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d. | ||
:: This will allow them to be run on environment activation. | ||
for %%F in (activate deactivate) DO ( | ||
if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d | ||
copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
:: Generated by vinca http://github.com/RoboStack/vinca. | ||
:: DO NOT EDIT! | ||
setlocal | ||
|
||
:: MSVC is preferred. | ||
set CC=cl.exe | ||
set CXX=cl.exe | ||
|
||
set "SP_DIR_FORWARDSLASHES=%SP_DIR:\=/%" | ||
|
||
colcon build ^ | ||
--event-handlers console_cohesion+ ^ | ||
--merge-install ^ | ||
--install-base %LIBRARY_PREFIX% ^ | ||
--cmake-args ^ | ||
-G Ninja ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DBUILD_TESTING=OFF ^ | ||
-DPYTHON_INSTALL_DIR=%SP_DIR_FORWARDSLASHES% ^ | ||
-DPYTHON_EXECUTABLE=%PYTHON% | ||
if errorlevel 1 exit 1 | ||
|
||
:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d. | ||
:: This will allow them to be run on environment activation. | ||
for %%F in (activate deactivate) DO ( | ||
if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d | ||
copy %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Generated by vinca http://github.com/RoboStack/vinca. | ||
# DO NOT EDIT! | ||
|
||
rm -rf build | ||
mkdir build | ||
cd build | ||
|
||
# necessary for correctly linking SIP files (from python_qt_bindings) | ||
export LINK=$CXX | ||
|
||
if [[ "$CONDA_BUILD_CROSS_COMPILATION" != "1" ]]; then | ||
PYTHON_EXECUTABLE=$PREFIX/bin/python | ||
PKG_CONFIG_EXECUTABLE=$PREFIX/bin/pkg-config | ||
OSX_DEPLOYMENT_TARGET="10.15" | ||
else | ||
PYTHON_EXECUTABLE=$BUILD_PREFIX/bin/python | ||
PKG_CONFIG_EXECUTABLE=$BUILD_PREFIX/bin/pkg-config | ||
OSX_DEPLOYMENT_TARGET="11.0" | ||
fi | ||
|
||
echo "USING PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}" | ||
echo "USING PKG_CONFIG_EXECUTABLE=${PKG_CONFIG_EXECUTABLE}" | ||
|
||
export ROS_PYTHON_VERSION=`$PYTHON_EXECUTABLE -c "import sys; print('%i.%i' % (sys.version_info[0:2]))"` | ||
echo "Using Python $ROS_PYTHON_VERSION" | ||
|
||
# see https://github.com/conda-forge/cross-python-feedstock/issues/24 | ||
if [[ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]]; then | ||
find $PREFIX/lib/cmake -type f -exec sed -i "s~\${_IMPORT_PREFIX}/lib/python$ROS_PYTHON_VERSION/site-packages~$BUILD_PREFIX/lib/python$ROS_PYTHON_VERSION/site-packages~g" {} + || true | ||
find $PREFIX/share/rosidl* -type f -exec sed -i "s~$PREFIX/lib/python$ROS_PYTHON_VERSION/site-packages~$BUILD_PREFIX/lib/python$ROS_PYTHON_VERSION/site-packages~g" {} + || true | ||
find $PREFIX/share/rosidl* -type f -exec sed -i "s~\${_IMPORT_PREFIX}/lib/python$ROS_PYTHON_VERSION/site-packages~$BUILD_PREFIX/lib/python$ROS_PYTHON_VERSION/site-packages~g" {} + || true | ||
find $PREFIX/lib/cmake -type f -exec sed -i "s~message(FATAL_ERROR \"The imported target~message(WARNING \"The imported target~g" {} + || true | ||
fi | ||
|
||
if [[ $target_platform =~ linux.* ]]; then | ||
export CFLAGS="${CFLAGS} -D__STDC_FORMAT_MACROS=1" | ||
export CXXFLAGS="${CXXFLAGS} -D__STDC_FORMAT_MACROS=1" | ||
fi; | ||
|
||
cmake \ | ||
-G "Ninja" \ | ||
-DCMAKE_INSTALL_PREFIX=$PREFIX \ | ||
-DCMAKE_PREFIX_PATH=$PREFIX \ | ||
-DAMENT_PREFIX_PATH=$PREFIX \ | ||
-DCMAKE_INSTALL_LIBDIR=lib \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DPYTHON_EXECUTABLE=$PYTHON_EXECUTABLE \ | ||
-DPython_EXECUTABLE=$PYTHON_EXECUTABLE \ | ||
-DPython3_EXECUTABLE=$PYTHON_EXECUTABLE \ | ||
-DPKG_CONFIG_EXECUTABLE=$PKG_CONFIG_EXECUTABLE \ | ||
-DPYTHON_INSTALL_DIR=$SP_DIR \ | ||
-DSETUPTOOLS_DEB_LAYOUT=OFF \ | ||
-DCATKIN_SKIP_TESTING=$SKIP_TESTING \ | ||
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DBUILD_TESTING=OFF \ | ||
-DCMAKE_OSX_DEPLOYMENT_TARGET=$OSX_DEPLOYMENT_TARGET \ | ||
$SRC_DIR/$PKG_NAME/src/work | ||
|
||
cmake --build . --config Release --target install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Generated by vinca http://github.com/RoboStack/vinca. | ||
# DO NOT EDIT! | ||
|
||
pushd $SRC_DIR/$PKG_NAME/src/work | ||
$PYTHON -m pip install . --no-deps -vvv |
Oops, something went wrong.