-
Notifications
You must be signed in to change notification settings - Fork 4
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
Report build and version information from the mayaHydra plugin #10
Report build and version information from the mayaHydra plugin #10
Conversation
@@ -146,6 +147,10 @@ set(SRCFILE ${CMAKE_CURRENT_SOURCE_DIR}/mayaHydra.h.src) | |||
set(DSTFILE ${CMAKE_BINARY_DIR}/include/mayaHydraLib/mayaHydra.h) | |||
configure_file(${SRCFILE} ${DSTFILE}) | |||
|
|||
set(SRCFILE ${CMAKE_CURRENT_SOURCE_DIR}/mhBuildInfo.h.src) |
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.
Configure the build information file so that it gets build and version information.
@@ -47,20 +47,16 @@ | |||
#error Maya API version 2024+ required |
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.
Fixed namespacing.
constexpr auto _pluginInfoCutId = "-cid"; | ||
constexpr auto _pluginInfoCutIdLong = "-pluginInfoCut"; | ||
// Versioning and build information. | ||
constexpr auto _majorVersion = "-mjv"; |
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.
Core file in the review: add flags to the mayaHydra command to get version and build information.
To properly understand and test a given version of the mayaHydra plugin, it must be possible to report its build and version information from a command in the plugin.