Skip to content

Commit

Permalink
Attempt in fixing Linux and OSX shaders library not found
Browse files Browse the repository at this point in the history
  • Loading branch information
lanierd-adsk committed Jul 8, 2024
1 parent aca3725 commit 5e98dbc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ set(PLUG_INFO_PATH "plugInfo.json")

configure_file(${PLUG_INFO_PATH} ${CMAKE_CURRENT_BINARY_DIR}/${PLUG_INFO_PATH})

install(FILES ${PLUG_INFO_PATH}
if(IS_WINDOWS)
install(FILES Windows/${PLUG_INFO_PATH}
DESTINATION
${CMAKE_INSTALL_PREFIX}/lib/usd/flowViewportShadersDiscoveryPlugin/resources
)
${CMAKE_INSTALL_PREFIX}/lib/usd/flowViewportShadersDiscoveryPlugin/resources)
endif()
if(IS_MACOSX OR IS_LINUX)
install(FILES Linux-OSX/${PLUG_INFO_PATH}
DESTINATION
${CMAKE_INSTALL_PREFIX}/lib/usd/flowViewportShadersDiscoveryPlugin/resources)
endif()

install(TARGETS ${TARGET_NAME}
LIBRARY
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"Plugins":[
{
"Info": {
"Types": {
"FlowViewportShadersDiscoveryPlugin": {
"bases": [ "NdrDiscoveryPlugin" ],
"displayName": "Flow viewport custom shaders discovery plugin."
}
},
"ShaderResources": "shaders"
},
"LibraryPath": "flowViewportShadersDiscoveryPlugin.so",
"Name": "flowViewportShadersDiscoveryPlugin",
"ResourcePath": "shaders",
"Root": "..",
"Type": "library"
}
]
}

0 comments on commit 5e98dbc

Please sign in to comment.