Skip to content

Commit 9a1ef6e

Browse files
committed
Add recipe for usd package
1 parent 497cb02 commit 9a1ef6e

File tree

3 files changed

+117
-0
lines changed

3 files changed

+117
-0
lines changed

recipes/usd/build.bat

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
mkdir build
2+
cd build
3+
4+
cmake %CMAKE_ARGS% ^
5+
-G "Ninja" ^
6+
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
7+
-DCMAKE_BUILD_TYPE=Release ^
8+
-DBUILD_TESTING:BOOL=ON ^
9+
-DBUILD_SHARED_LIBS:BOOL=ON ^
10+
-DPXR_HEADLESS_TEST_MODE:BOOL=ON ^
11+
-DPXR_BUILD_IMAGING:BOOL=ON ^
12+
-DPXR_BUILD_USD_IMAGING=ON ^
13+
-DPXR_ENABLE_PYTHON_SUPPORT=ON ^
14+
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY:BOOL=ON ^
15+
-DPXR_USE_PYTHON_3:BOOL=ON ^
16+
%SRC_DIR%
17+
if errorlevel 1 exit 1
18+
19+
:: Build.
20+
cmake --build . --config Release
21+
if errorlevel 1 exit 1
22+
23+
:: Install.
24+
cmake --build . --config Release --target install
25+
if errorlevel 1 exit 1
26+
27+
:: Test.
28+
ctest --output-on-failure -C Release
29+
if errorlevel 1 exit 1

recipes/usd/build.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
mkdir build
4+
cd build
5+
6+
cmake ${CMAKE_ARGS} -GNinja .. \
7+
-DCMAKE_BUILD_TYPE=Release \
8+
-DBUILD_TESTING:BOOL=ON \
9+
-DPXR_HEADLESS_TEST_MODE:BOOL=ON \
10+
-DPXR_BUILD_IMAGING:BOOL=ON \
11+
-DPXR_BUILD_USD_IMAGING:BOOL=ON \
12+
-DPXR_ENABLE_PYTHON_SUPPORT:BOOL=OFF \
13+
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY:BOOL=ON \
14+
-DPXR_USE_PYTHON_3:BOOL=ON
15+
16+
cmake --build . --config Release
17+
cmake --build . --config Release --target install
18+
ctest --output-on-failure -C Release

recipes/usd/recipe.yaml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
schema_version: 1
2+
3+
context:
4+
name: usd
5+
version: 25.02
6+
7+
package:
8+
name: ${{ name }}
9+
version: ${{ version }}
10+
11+
source:
12+
- url: https://github.com/PixarAnimationStudios/OpenUSD/archive/refs/tags/v${{ version }}.tar.gz
13+
sha256: 2979c0f09b766fd6470bdf06c8500c90ed51327aae1c22af132641a44178b722
14+
15+
build:
16+
number: 0
17+
18+
requirements:
19+
build:
20+
- ${{ compiler('c') }}
21+
- ${{ stdlib('c') }}
22+
- ${{ compiler('cxx') }}
23+
- ninja
24+
- cmake
25+
host:
26+
- if: linux
27+
then:
28+
- libgl-devel
29+
- libglx-devel
30+
- xorg-libxrandr
31+
- glfw
32+
- tbb-devel
33+
- libboost-devel
34+
- libboost-python-devel
35+
- libopensubdiv
36+
- python
37+
- jinja2
38+
- pyside6
39+
- pyopengl
40+
run_exports:
41+
- ${{ pin_subpackage(name, upper_bound='x.x') }}
42+
43+
tests:
44+
- package_contents:
45+
include:
46+
- pxr/pxr.h
47+
lib:
48+
- usd_ms
49+
- requirements:
50+
run:
51+
- cmake-package-check
52+
- ${{ compiler('c') }}
53+
- ${{ compiler('cxx') }}
54+
script:
55+
- cmake-package-check pxr
56+
- python:
57+
imports:
58+
- pxr
59+
- pxr.Usd
60+
- pxr.UsdGeom
61+
62+
about:
63+
license: Apache-2.0
64+
license_file: LICENSE.txt
65+
summary: Library to read and write Universal Scene Description (USD) files.
66+
homepage: https://github.com/PixarAnimationStudios/OpenUSD
67+
68+
extra:
69+
recipe-maintainers:
70+
- traversaro

0 commit comments

Comments
 (0)