Skip to content

Commit

Permalink
Restore the organization of the schema installed files (#1653)
Browse files Browse the repository at this point in the history
* restore the organization schema installed file

* update changelog

* remove empty line

* also add generatedSchema.usda in usdArnold/resources/usdArnold in the cmake build
  • Loading branch information
cpichard authored Sep 6, 2023
1 parent 4848d6a commit 0f42095
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- [usd#1613](https://github.com/Autodesk/arnold-usd/issues/1613) - Invisible Hydra primitives should ignore arnold visibility
- [usd#1641](https://github.com/Autodesk/arnold-usd/issues/1641) - Ensure nodes created by the render delegate have the correct parent procedural.
- [usd#1648](https://github.com/Autodesk/arnold-usd/issues/1648) - Fix an issue where the schemas were generated only once every 2 attempts.
- [usd#1652](https://github.com/Autodesk/arnold-usd/issues/1652) - Restore the schema installed files organisation.

## [7.2.3.2] - 2023-08-30

Expand Down
3 changes: 2 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,8 @@ if SCENEDELEGATE:
# This follows the standard layout of USD plugins / libraries.
if SCHEMAS:
INSTALL_SCHEMAS = env.Install(os.path.join(PREFIX_SCHEMAS), ['plugInfo.json'])
INSTALL_SCHEMAS += env.Install(os.path.join(PREFIX_SCHEMAS, 'usdArnold', 'resources', 'usdArnold'), [SCHEMAS[0]])
INSTALL_SCHEMAS += env.Install(os.path.join(PREFIX_SCHEMAS, 'usdArnold', 'resources' ), [SCHEMAS[0], SCHEMAS[1]])
INSTALL_SCHEMAS += env.Install(os.path.join(PREFIX_SCHEMAS, 'usdArnold', 'resources', 'usdArnold'), [SCHEMAS[0], SCHEMAS[2]])
env.Alias('schemas-install', INSTALL_SCHEMAS)

if DOCS:
Expand Down
3 changes: 3 additions & 0 deletions schemas/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ add_custom_target(schemas ALL
install(FILES "${SCHEMAS_SOURCE_OUT}/generatedSchema.usda"
DESTINATION "${PREFIX_SCHEMA}/usdArnold/resources")

install(FILES "${SCHEMAS_SOURCE_OUT}/generatedSchema.usda"
DESTINATION "${PREFIX_SCHEMA}/usdArnold/resources/usdArnold")

install(FILES "${SCHEMAS_USDA}"
DESTINATION "${PREFIX_SCHEMA}/usdArnold/resources/usdArnold")

Expand Down
4 changes: 3 additions & 1 deletion schemas/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,7 @@ myenv.Append(BUILDERS = {'GenerateSchema' : builder})

plugInfo = os.path.join(schemasBuildFolder, 'plugInfo.json')

myenv.Depends(plugInfo, generatedSchema)

GENERATE_SCHEMA = myenv.GenerateSchema(generatedSchema, schemaFile)
Return(['GENERATE_SCHEMA', 'plugInfo'])
Return(['GENERATE_SCHEMA', 'plugInfo', 'schemaFile'])

0 comments on commit 0f42095

Please sign in to comment.