-
Notifications
You must be signed in to change notification settings - Fork 202
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
Split Maya module file into separate plugins #731
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,14 +133,23 @@ finally: | |
# ----------------- | ||
|
||
set(ALL_PATH_VARS | ||
PATH | ||
PYTHONPATH | ||
MAYA_PLUG_IN_PATH | ||
MAYA_SCRIPT_PATH | ||
PXR_PLUGINPATH_NAME | ||
LD_LIBRARY_PATH | ||
) | ||
|
||
if(IS_WINDOWS) | ||
# Put path at the front of the list of env vars. | ||
list(INSERT ALL_PATH_VARS 0 | ||
PATH | ||
) | ||
else() | ||
list(APPEND ALL_PATH_VARS | ||
LD_LIBRARY_PATH | ||
) | ||
endif() | ||
Comment on lines
+142
to
+151
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. env var PATH is only needed and Windows. And on Windows we don't need LD_LIBRARY_PATH. |
||
|
||
# Set initial empty values for all path vars | ||
foreach(pathvar ${ALL_PATH_VARS}) | ||
set(MAYAUSD_VARNAME_${pathvar}) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
+ AL_USDMaya ${AL_USDMAYA_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/al | ||
plug-ins: plugin | ||
PYTHONPATH+:=lib/python | ||
PXR_PLUGINPATH_NAME+:=lib/usd | ||
PXR_PLUGINPATH_NAME+:=plugin | ||
Comment on lines
+1
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved here as-is from the mayaUsd.mod.template. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
+ AL_USDMaya ${AL_USDMAYA_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/al | ||
plug-ins: plugin | ||
PYTHONPATH+:=lib/python | ||
PATH+:=lib | ||
PXR_PLUGINPATH_NAME+:=lib/usd | ||
PXR_PLUGINPATH_NAME+:=plugin |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,7 @@ presets: | |
scripts: | ||
resources: | ||
PYTHONPATH+:=lib/python | ||
|
||
+ PXR_USDMAYA ${USD_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/pxr | ||
icons: maya/lib/usd/usdMaya/resources | ||
plug-ins: maya/plugin | ||
scripts: maya/lib/usd/usdMaya/resources | ||
PYTHONPATH+:=lib/python | ||
PXR_PLUGINPATH_NAME+:=lib/usd | ||
USD_LOCATION:= | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Helper env variable which will be set to the location where USD is (when running Maya). Inside Maya can then query and use that var. |
||
|
||
+ MayaUSD_LIB ${MAYAUSD_VERSION} ${CMAKE_INSTALL_PREFIX} | ||
icons: | ||
|
@@ -27,11 +21,9 @@ ${MAYAUSD_GTEST_PATH} | |
+ MayaUSD ${MAYAUSD_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/adsk | ||
plug-ins: plugin | ||
|
||
+ AL_USDMaya ${AL_USDMAYA_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/al | ||
plug-ins: plugin | ||
PYTHONPATH+:=lib/python | ||
PXR_PLUGINPATH_NAME+:=lib/usd | ||
PXR_PLUGINPATH_NAME+:=plugin | ||
|
||
+ MTOH ${MAYAUSD_VERSION} ${CMAKE_INSTALL_PREFIX}/lib | ||
icons: | ||
plug-ins: maya | ||
presets: | ||
scripts: | ||
resources: |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,7 @@ resources: | |
PYTHONPATH+:=lib/python | ||
PATH+:=bin | ||
PATH+:=lib | ||
|
||
+ PXR_USDMAYA ${USD_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/pxr | ||
icons: maya/lib/usd/usdMaya/resources | ||
plug-ins: maya/plugin | ||
scripts: maya/lib/usd/usdMaya/resources | ||
PYTHONPATH+:=lib/python | ||
PATH+:=maya/lib | ||
PXR_PLUGINPATH_NAME+:=lib/usd | ||
USD_LOCATION:= | ||
|
||
+ MayaUSD_LIB ${MAYAUSD_VERSION} ${CMAKE_INSTALL_PREFIX} | ||
icons: | ||
|
@@ -31,12 +24,9 @@ ${MAYAUSD_GTEST_PATH} | |
+ MayaUSD ${MAYAUSD_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/adsk | ||
plug-ins: plugin | ||
|
||
+ AL_USDMaya ${AL_USDMAYA_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/al | ||
plug-ins: plugin | ||
PYTHONPATH+:=lib/python | ||
PATH+:=lib | ||
PXR_PLUGINPATH_NAME+:=lib/usd | ||
PXR_PLUGINPATH_NAME+:=plugin | ||
|
||
+ MTOH ${MAYAUSD_VERSION} ${CMAKE_INSTALL_PREFIX}/lib | ||
icons: | ||
plug-ins: maya | ||
presets: | ||
scripts: | ||
resources: | ||
Comment on lines
27
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mtoh doesn't need all these extra vars. This is the syntax to remove them. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
+ PXR_USDMAYA ${USD_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/pxr | ||
icons: maya/lib/usd/usdMaya/resources | ||
plug-ins: maya/plugin | ||
scripts: maya/lib/usd/usdMaya/resources | ||
PYTHONPATH+:=lib/python | ||
PXR_PLUGINPATH_NAME+:=lib/usd |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
+ PXR_USDMAYA ${USD_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/pxr | ||
icons: maya/lib/usd/usdMaya/resources | ||
plug-ins: maya/plugin | ||
scripts: maya/lib/usd/usdMaya/resources | ||
PYTHONPATH+:=lib/python | ||
PATH+:=maya/lib | ||
PXR_PLUGINPATH_NAME+:=lib/usd |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,17 @@ set(TARGET_NAME MAYAUSD_NODES_TEST) | |
# Unit test scripts. | ||
set(TEST_SCRIPT_FILES | ||
testPxrUsdPreviewSurfaceDraw.py | ||
testPxrUsdPreviewSurfaceExport.py | ||
) | ||
|
||
if(BUILD_PXR_PLUGIN) | ||
# This test uses the file "PxrUsdPreviewSurfaceExportTest.ma" which | ||
# requires the plugin "pxrUsdPreviewSurface" that is built by the | ||
# Pixar plugin. | ||
list(APPEND TEST_SCRIPT_FILES | ||
testPxrUsdPreviewSurfaceExport.py | ||
) | ||
endif() | ||
Comment on lines
+8
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I discovered this while building only the MayaUsd plugin (I turned off Pixar and AL). When running the tests this one failed because it need the pxrUsdPreviewSurface plugin built only when building Pixar plugin. |
||
|
||
# copy tests to ${CMAKE_CURRENT_BINARY_DIR} and run them from there | ||
add_custom_target(${TARGET_NAME} ALL) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each plugin now has its own module file. So configure each one separately.