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

Build for ogre 1.10 and 1.12 #8

Merged
merged 6 commits into from
Mar 23, 2021
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
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.

7 changes: 5 additions & 2 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 @@ -14,6 +14,8 @@ cxx_compiler_version:
- '9'
docker_image:
- quay.io/condaforge/linux-anvil-comp7
ogre:
- '1.10'
target_platform:
- linux-64
zip_keys:
Expand Down
25 changes: 25 additions & 0 deletions .ci_support/linux_64_ogre1.12.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
c_compiler:
- gcc
c_compiler_version:
- '9'
cdt_name:
- cos6
channel_sources:
- conda-forge,defaults
channel_targets:
- conda-forge main
cxx_compiler:
- gxx
cxx_compiler_version:
- '9'
docker_image:
- quay.io/condaforge/linux-anvil-comp7
ogre:
- '1.12'
target_platform:
- linux-64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - cdt_name
- docker_image
2 changes: 2 additions & 0 deletions .ci_support/osx_64_.yaml → .ci_support/osx_64_ogre1.10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ macos_machine:
- x86_64-apple-darwin13.4.0
macos_min_version:
- '10.14'
ogre:
- '1.10'
target_platform:
- osx-64
zip_keys:
Expand Down
25 changes: 25 additions & 0 deletions .ci_support/osx_64_ogre1.12.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.14'
c_compiler:
- clang
c_compiler_version:
- '11'
channel_sources:
- conda-forge,defaults
channel_targets:
- conda-forge main
cxx_compiler:
- clangxx
cxx_compiler_version:
- '11'
macos_machine:
- x86_64-apple-darwin13.4.0
macos_min_version:
- '10.14'
ogre:
- '1.12'
target_platform:
- osx-64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
2 changes: 2 additions & 0 deletions .ci_support/win_64_.yaml → .ci_support/win_64_ogre1.10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ channel_targets:
- conda-forge main
cxx_compiler:
- vs2017
ogre:
- '1.10'
target_platform:
- win-64
12 changes: 12 additions & 0 deletions .ci_support/win_64_ogre1.12.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
c_compiler:
- vs2017
channel_sources:
- conda-forge,defaults
channel_targets:
- conda-forge main
cxx_compiler:
- vs2017
ogre:
- '1.12'
target_platform:
- win-64
33 changes: 27 additions & 6 deletions README.md

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

4 changes: 4 additions & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ macos_min_version: # [osx]
- 10.14 # [osx]
MACOSX_DEPLOYMENT_TARGET: # [osx]
- 10.14 # [osx]

ogre:
- 1.10
- 1.12
8 changes: 5 additions & 3 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ package:
source:
url: https://github.com/ignitionrobotics/ign-rendering/archive/ignition-rendering{{ version.split('.')[0] }}_{{ version }}.tar.gz
sha256: f9c23e604e785b7a2352686f044964899b87146dc2000a9f1ddfa04fd09560c9
patches:
- ogre-version.patch

build:
number: 0
number: 1
run_exports:
- {{ pin_subpackage(name, max_pin='x') }}

Expand Down Expand Up @@ -39,15 +41,15 @@ requirements:
- libignition-math6 >=6.6
- libignition-common3
- libignition-plugin1
- ogre
- ogre {{ ogre }}
run:
- xorg-libx11 # [unix]
- xorg-libxext # [unix]
- libglu # [linux]
- libignition-math6 >=6.6
- libignition-common3
- libignition-plugin1
- ogre
- {{ pin_compatible('ogre', max_pin='x.x') }}
- __osx >={{ MACOSX_DEPLOYMENT_TARGET|default("10.9") }} # [osx and x86_64]

test:
Expand Down
17 changes: 17 additions & 0 deletions recipe/ogre-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/ogre/src/CMakeLists.txt b/ogre/src/CMakeLists.txt
index bb38fd8b..b214b02d 100644
--- a/ogre/src/CMakeLists.txt
+++ b/ogre/src/CMakeLists.txt
@@ -15,10 +15,10 @@ set(engine_name "ogre")

ign_add_component(${engine_name} SOURCES ${sources} GET_TARGET_NAME ogre_target)

-if(OGRE_VERSION VERSION_LESS 1.10.3)
+if(OGRE_VERSION VERSION_LESS 1.11.0)
add_definitions(-DOGRE_VERSION_LT_1_10_3)
endif()
-if(OGRE_VERSION VERSION_LESS 1.10.1)
+if(OGRE_VERSION VERSION_LESS 1.11.0)
add_definitions(-DOGRE_VERSION_LT_1_10_1)
endif()
if(OGRE_VERSION VERSION_LESS 1.12.0)