Skip to content

Commit

Permalink
Update usdRiPxr CMakeLists to install bundled schemas from renderman …
Browse files Browse the repository at this point in the history
…itself

Starting with rman26.2 usdRiPxr schemas are bundled with renderman itself,
usdRiPxr installation will need to copy these from the bundled location,
which are published under the known location:
${RENDERMAN_LOCATION}/lib/usd_plugins/usdRiPxr/Resources

(Internal change: 2332562)
  • Loading branch information
tallytalwar authored and pixar-oss committed Jun 28, 2024
1 parent ee337ef commit da68b0e
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions third_party/renderman-26/plugin/usdRiPxr/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
set(PXR_PREFIX pxr/imaging)
set(PXR_PACKAGE usdRiPxr)

pxr_library(usdRiPxr
RESOURCE_FILES
plugInfo.json
generatedSchema.usda
schema.usda:usdRiPxr/schema.usda
)
# Conditional logic based on RenderMan version
if (RENDERMAN_VERSION VERSION_LESS "26.2")
pxr_library(usdRiPxr
RESOURCE_FILES
plugInfo.json
generatedSchema.usda
schema.usda:usdRiPxr/schema.usda
)
else()
# Get the usdRiPxr plugin files from renderman itself
# usdRiPxr schemas are known to be installed under the following path:
# ${RENDERMAN_LOCATION}/lib/usd_plugins/usdRiPxr/Resources
pxr_library(usdRiPxr
RESOURCE_FILES
${RENDERMAN_LOCATION}/lib/usd_plugins/usdRiPxr/Resources/plugInfo.json:plugInfo.json
${RENDERMAN_LOCATION}/lib/usd_plugins/usdRiPxr/Resources/generatedSchema.usda:generatedSchema.usda
${RENDERMAN_LOCATION}/lib/usd_plugins/usdRiPxr/Resources/usdRiPxr/schema.usda:usdRiPxr/schema.usda
)
endif()

0 comments on commit da68b0e

Please sign in to comment.