-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for multiple generators
- Loading branch information
Showing
3 changed files
with
57 additions
and
40 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
This file was deleted.
Oops, something went wrong.
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,49 @@ | ||
@echo off | ||
|
||
echo "===== BUILDING BRANCH: %1 =====" | ||
|
||
if [%2] == [] ( | ||
set ROS2_DOTNET_CMAKE_GENERATOR="Visual Studio 15 2017 Win64" | ||
) else if [%2] == [x86] ( | ||
set ROS2_DOTNET_CMAKE_GENERATOR="Visual Studio 15 2017" | ||
) else if [%2] == [x64] ( | ||
set ROS2_DOTNET_CMAKE_GENERATOR="Visual Studio 15 2017 Win64" | ||
) else if [%2] == [arm] ( | ||
set ROS2_DOTNET_CMAKE_GENERATOR="Visual Studio 15 2017 ARM" | ||
) else ( | ||
echo "Unknown architecture: %2" | ||
exit /b 1 | ||
) | ||
|
||
set ROS2_DOTNET_MSBUILD_EXECUTABLE="C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe" | ||
|
||
md \dev\ament\src | ||
cd \dev\ament | ||
curl -sk https://raw.githubusercontent.com/esteve/ros2_dotnet/%1/ament_dotnet_uwp.repos -o ament_dotnet_uwp.repos | ||
vcs import src < ament_dotnet_uwp.repos | ||
python src\ament\ament_tools\scripts\ament.py build ^ | ||
--cmake-args ^ | ||
-G "Visual Studio 15 2017 Win64" ^ | ||
-DMSBUILD_EXECUTABLE=%ROS2_DOTNET_MSBUILD_EXECUTABLE% ^ | ||
-- | ||
|
||
call \dev\ament\install\local_setup.bat | ||
md \dev\ros2\src | ||
cd \dev\ros2 | ||
curl -sk https://raw.githubusercontent.com/esteve/ros2_dotnet/%1/ros2_dotnet_uwp.repos -o ros2_dotnet_uwp.repos | ||
vcs import src < ros2_dotnet_uwp.repos | ||
cd \dev\ros2\src\ros2\rosidl_typesupport | ||
patch -p1 < ..\..\ros2_dotnet/ros2_dotnet\rosidl_typesupport_ros2_uwp.patch | ||
cd \dev\ros2\src\ros2_dotnet\ros2_dotnet | ||
git checkout %1 | ||
cd \dev\ros2 | ||
ament build ^ | ||
--cmake-args ^ | ||
-G %ROS2_DOTNET_CMAKE_GENERATOR% ^ | ||
-DMSBUILD_EXECUTABLE=%ROS2_DOTNET_MSBUILD_EXECUTABLE% ^ | ||
-DCMAKE_SYSTEM_NAME=WindowsStore ^ | ||
-DCMAKE_SYSTEM_VERSION=10.0 ^ | ||
-DTHIRDPARTY=ON ^ | ||
-DCOMPILE_EXAMPLES=OFF ^ | ||
-DCMAKE_FIND_ROOT_PATH="\dev\ament\install;\dev\ros2\install" ^ | ||
-- |