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

Add ign-rendering to feedstock #13677

Merged
merged 11 commits into from
Jan 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
22 changes: 22 additions & 0 deletions recipes/libignition-rendering/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
mkdir build
cd build

cmake ^
-G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True ^
%SRC_DIR%
if errorlevel 1 exit 1

:: Build.
cmake --build . --config Release
if errorlevel 1 exit 1

:: Install.
cmake --build . --config Release --target install
if errorlevel 1 exit 1

:: Test.
ctest -C Release -E "INTEGRATION|PERFORMANCE|REGRESSION|UNIT_RenderingIface_TEST"
if errorlevel 1 exit 1
17 changes: 17 additions & 0 deletions recipes/libignition-rendering/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

mkdir build
cd build

export CFLAGS="${CFLAGS} -DGLX_GLXEXT_LEGACY"
export CXXFLAGS="${CXXFLAGS} -DGLX_GLXEXT_LEGACY"

cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True

cmake --build . --config Release
cmake --build . --config Release --target install
ctest -C Release -E "INTEGRATION|PERFORMANCE|REGRESSION|UNIT_RenderingIface_TEST|check_UNIT_RenderingIface_TEST"
4 changes: 4 additions & 0 deletions recipes/libignition-rendering/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
macos_min_version: # [osx]
Copy link
Member

Choose a reason for hiding this comment

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

I am going to ask on the conda-forge gitter if we can merge with the failing build or if we need to skip OS X first.

- 10.14 # [osx]
MACOSX_DEPLOYMENT_TARGET: # [osx]
- 10.14 # [osx]
74 changes: 74 additions & 0 deletions recipes/libignition-rendering/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{% set base_name = "libignition-rendering" %}
{% set version = "4.1.0" %}
{% set name = base_name + version.split('.')[0] %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/ignitionrobotics/ign-rendering/archive/ignition-rendering{{ version.split('.')[0] }}_{{ version }}.tar.gz
sha256: 465e858332d5b0e608888e9d62d08f779c7d99d0a51f2de7ba23ba640cdd4be4

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

requirements:
build:
- {{ compiler('cxx') }}
- {{ compiler('c') }}
- cmake
- make # [not win]
- pkg-config # [not win]

# x11
- {{ cdt('mesa-libgl-devel') }} # [unix]
- {{ cdt('mesa-dri-drivers') }} # [unix]
- {{ cdt('libselinux') }} # [linux]
- {{ cdt('libxdamage') }} # [linux]
- {{ cdt('libxxf86vm') }} # [linux]
- {{ cdt('libxfixes') }} # [linux]
- {{ cdt('libxext') }} # [linux]
- {{ cdt('libxau') }} # [linux]
host:
- xorg-libx11 # [unix]
- xorg-libxext # [unix]
- libglu # [linux]
- libignition-math6 >=6.6
- libignition-common3
- libignition-plugin1
- ogre
run:
- xorg-libx11 # [unix]
- xorg-libxext # [unix]
- libglu # [linux]
- libignition-math6 >=6.6
- libignition-common3
- libignition-plugin1
- ogre
- __osx >={{ MACOSX_DEPLOYMENT_TARGET|default("10.9") }} # [osx and x86_64]

test:
commands:
- test -f ${PREFIX}/include/ignition/rendering{{ version.split('.')[0] }}/ignition/rendering.hh # [not win]
- test -f ${PREFIX}/lib/libignition-rendering{{ version.split('.')[0] }}.so # [linux]
- test -f ${PREFIX}/lib/libignition-rendering{{ version.split('.')[0] }}.dylib # [osx]
- test -f ${PREFIX}/lib/cmake/ignition-rendering{{ version.split('.')[0] }}/ignition-rendering{{ version.split('.')[0] }}-config.cmake # [not win]
- if exist %PREFIX%\\Library\\include\\ignition\\rendering{{ version.split('.')[0] }}\\ignition\\rendering.hh (exit 0) else (exit 1) # [win]
- if exist $PREFIX$\\Library\\lib\\ignition-rendering{{ version.split('.')[0] }}.lib (exit 0) else (exit 1) # [win]
- if exist $PREFIX$\\Library\\bin\\ignition-rendering{{ version.split('.')[0] }}.dll (exit 0) else (exit 1) # [win]
- if exist %PREFIX%\\Library\\lib\\cmake\\ignition-rendering{{ version.split('.')[0] }}\\ignition-rendering{{ version.split('.')[0] }}-config.cmake (exit 0) else (exit 1) # [win]

about:
home: https://github.com/ignitionrobotics/ign-rendering
license: Apache-2.0
license_file: LICENSE
summary: Ignition Rendering

extra:
recipe-maintainers:
- JShep1
JShep1 marked this conversation as resolved.
Show resolved Hide resolved
- wolfv
- traversaro