-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13677 from JShep1/libignition-rendering-feedstock
- Loading branch information
Showing
4 changed files
with
117 additions
and
0 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
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 |
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,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" |
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,4 @@ | ||
macos_min_version: # [osx] | ||
- 10.14 # [osx] | ||
MACOSX_DEPLOYMENT_TARGET: # [osx] | ||
- 10.14 # [osx] |
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,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 | ||
- wolfv | ||
- traversaro |