Skip to content

Commit

Permalink
Fix ign server -s on Windows (take two) (#52)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] authored Oct 20, 2022
2 parents d9c32e9 + e870c92 commit a7d8966
Show file tree
Hide file tree
Showing 11 changed files with 795 additions and 15 deletions.
33 changes: 32 additions & 1 deletion .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 32 additions & 1 deletion .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions .scripts/create_conda_build_artifacts.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 113 additions & 0 deletions .scripts/create_conda_build_artifacts.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ github:
branch_name: main
tooling_branch_name: main
test: native_and_emulated
azure:
store_build_artifacts: true
11 changes: 11 additions & 0 deletions recipe/activate.msh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if_(is_set("COMSPEC")).then_([
sys.list_append("IGN_GAZEBO_SYSTEM_PLUGIN_PATH", path.join(env("CONDA_PREFIX"), "Library\\lib\\ign-gazebo-6\\plugins")),
sys.list_append("IGN_GUI_PLUGIN_PATH", path.join(env("CONDA_PREFIX"), "Library\\lib\\ign-gazebo-6\\plugins\\gui")),
sys.list_append("IGN_GAZEBO_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "Library\\share\\ignition\\ignition-gazebo6\\worlds")),
sys.list_append("IGN_GAZEBO_PHYSICS_ENGINE_PATH", path.join(env("CONDA_PREFIX"), "Library\\lib\\ign-physics-5\\engine-plugins")),
]).else_([
sys.list_append("IGN_GAZEBO_SYSTEM_PLUGIN_PATH", path.join(env("CONDA_PREFIX"), "lib/ign-gazebo-6/plugins")),
sys.list_append("IGN_GUI_PLUGIN_PATH", path.join(env("CONDA_PREFIX"), "lib/ign-gazebo-6/plugins/gui")),
sys.list_append("IGN_GAZEBO_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "share/ignition/ignition-gazebo6/worlds")),
sys.list_append("IGN_GAZEBO_PHYSICS_ENGINE_PATH", path.join(env("CONDA_PREFIX"), "lib/ign-physics-5/engine-plugins")),
])
28 changes: 28 additions & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,31 @@ if errorlevel 1 exit 1
:: Install.
cmake --build . --config Release --target install
if errorlevel 1 exit 1

setlocal EnableDelayedExpansion
:: Just on Windows, binary relocation is not working properly so we use environment variables
:: to specify the location of resources installed by ign-gazebo
:: Generate and 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 (
multisheller %RECIPE_DIR%\%%F.msh --output .\%%F

if not exist %PREFIX%\etc\conda\%%F.d mkdir %PREFIX%\etc\conda\%%F.d
copy %%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
if %errorlevel% neq 0 exit /b %errorlevel%

copy %%F.sh %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.sh
if %errorlevel% neq 0 exit /b %errorlevel%

copy %%F.bash %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bash
if %errorlevel% neq 0 exit /b %errorlevel%

copy %%F.ps1 %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.ps1
if %errorlevel% neq 0 exit /b %errorlevel%

copy %%F.xsh %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.xsh
if %errorlevel% neq 0 exit /b %errorlevel%

copy %%F.zsh %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.zsh
if %errorlevel% neq 0 exit /b %errorlevel%
)
11 changes: 11 additions & 0 deletions recipe/deactivate.msh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if_(is_set("COMSPEC")).then_([
sys.list_remove("IGN_GAZEBO_SYSTEM_PLUGIN_PATH", path.join(env("CONDA_PREFIX"), "Library\\lib\\ign-gazebo-6\\plugins")),
sys.list_remove("IGN_GUI_PLUGIN_PATH", path.join(env("CONDA_PREFIX"), "Library\\lib\\ign-gazebo-6\\plugins\\gui")),
sys.list_remove("IGN_GAZEBO_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "Library\\share\\ignition\\ignition-gazebo6\\worlds")),
sys.list_remove("IGN_GAZEBO_PHYSICS_ENGINE_PATH", path.join(env("CONDA_PREFIX"), "Library\\lib\\ign-physics-5\\engine-plugins")),
]).else_([
sys.list_remove("IGN_GAZEBO_SYSTEM_PLUGIN_PATH", path.join(env("CONDA_PREFIX"), "lib/ign-gazebo-6/plugins")),
sys.list_remove("IGN_GUI_PLUGIN_PATH", path.join(env("CONDA_PREFIX"), "lib/ign-gazebo-6/plugins/gui")),
sys.list_remove("IGN_GAZEBO_RESOURCE_PATH", path.join(env("CONDA_PREFIX"), "share/ignition/ignition-gazebo6/worlds")),
sys.list_remove("IGN_GAZEBO_PHYSICS_ENGINE_PATH", path.join(env("CONDA_PREFIX"), "lib/ign-physics-5/engine-plugins")),
])
Loading

0 comments on commit a7d8966

Please sign in to comment.