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

Multiple ogre + OSX #5

Merged
merged 19 commits into from
Oct 8, 2021
Merged
Show file tree
Hide file tree
Changes from 16 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
8 changes: 6 additions & 2 deletions .azure-pipelines/azure-pipelines-linux.yml

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

31 changes: 31 additions & 0 deletions .azure-pipelines/azure-pipelines-osx.yml

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

7 changes: 5 additions & 2 deletions .azure-pipelines/azure-pipelines-win.yml

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

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ c_compiler_version:
cdt_name:
- cos6
channel_sources:
- conda-forge,defaults
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
Expand All @@ -16,6 +16,8 @@ docker_image:
- quay.io/condaforge/linux-anvil-comp7
libprotobuf:
- '3.18'
ogre:
- '1.10'
target_platform:
- linux-64
zip_keys:
Expand Down
27 changes: 27 additions & 0 deletions .ci_support/linux_64_ogre1.12.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
c_compiler:
- gcc
c_compiler_version:
- '9'
cdt_name:
- cos6
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- gxx
cxx_compiler_version:
- '9'
docker_image:
- quay.io/condaforge/linux-anvil-comp7
libprotobuf:
- '3.16'
ogre:
- '1.12'
target_platform:
- linux-64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - cdt_name
- docker_image
29 changes: 29 additions & 0 deletions .ci_support/osx_64_ogre1.10.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.13'
c_compiler:
- clang
c_compiler_version:
- '11'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- clangxx
cxx_compiler_version:
- '11'
libarchive:
- '3.5'
libprotobuf:
- '3.16'
macos_machine:
- x86_64-apple-darwin13.4.0
macos_min_version:
- '10.13'
ogre:
- '1.10'
target_platform:
- osx-64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
29 changes: 29 additions & 0 deletions .ci_support/osx_64_ogre1.12.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.13'
c_compiler:
- clang
c_compiler_version:
- '11'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- clangxx
cxx_compiler_version:
- '11'
libarchive:
- '3.5'
libprotobuf:
- '3.16'
macos_machine:
- x86_64-apple-darwin13.4.0
macos_min_version:
- '10.13'
ogre:
- '1.12'
target_platform:
- osx-64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
c_compiler:
- vs2017
channel_sources:
- conda-forge,defaults
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- vs2017
libprotobuf:
- '3.18'
ogre:
- '1.10'
target_platform:
- win-64
14 changes: 14 additions & 0 deletions .ci_support/win_64_ogre1.12.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
c_compiler:
- vs2017
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- vs2017
libprotobuf:
- '3.16'
ogre:
- '1.12'
target_platform:
- win-64
69 changes: 69 additions & 0 deletions .scripts/run_osx_build.sh

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

36 changes: 32 additions & 4 deletions README.md

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

3 changes: 2 additions & 1 deletion azure-pipelines.yml

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

5 changes: 3 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ cmake ${CMAKE_ARGS} \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True \
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE \
-DCMAKE_MACOSX_RPATH=FALSE \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=ON \
..

cmake --build . --config Release
cmake --build . --config Release --target install
ctest --output-on-failure -C Release
DYLD_FALLBACK_LIBRARY_PATH=${PREFIX}/lib ctest --output-on-failure -C Release
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ macos_min_version: # [osx and x86_64]
- 10.13 # [osx and x86_64]
MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64]
- 10.13 # [osx and x86_64]

ogre:
- 1.10
- 1.12
6 changes: 4 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ source:
sha256: 2484b82d2122633956fdf3fab9e8a41fd8c18de3055d059ec461c9b9153c3257

build:
number: 3
skip: true # [osx]
number: 4
run_exports:
- {{ pin_subpackage(name, max_pin='x') }}

Expand All @@ -36,8 +35,11 @@ requirements:
- libignition-msgs7
- libignition-plugin1
- libsdformat11
- libarchive # [osx]
- ogre {{ ogre }}
run:
- __osx >={{ MACOSX_DEPLOYMENT_TARGET|default("10.9") }} # [osx and x86_64]
- {{ pin_compatible('ogre', max_pin='x.x') }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be needed actually.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is true for the latest version of ogre, but note that here we link a bit old versions such as 1.10 or 1.12, the run_exports are set correctly also there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, let's remove it then.


test:
commands:
Expand Down