-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev_1.39' into validation_updates
- Loading branch information
Showing
103 changed files
with
954 additions
and
915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,45 @@ | ||
set(DOXYGEN_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}) | ||
set(DOXYGEN_HTML_OUTPUT_DIR ${DOXYGEN_OUTPUT_DIR}/html) | ||
set(DOXYGEN_INPUT_LIST ${CMAKE_SOURCE_DIR}/documents/DeveloperGuide/MainPage.md | ||
${CMAKE_SOURCE_DIR}/source/MaterialXCore | ||
${CMAKE_SOURCE_DIR}/source/MaterialXFormat | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenShader | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenShader/Nodes | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenGlsl | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenGlsl/Nodes | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenOsl | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenMdl | ||
${CMAKE_SOURCE_DIR}/source/MaterialXRender | ||
${CMAKE_SOURCE_DIR}/source/MaterialXRenderHw | ||
${CMAKE_SOURCE_DIR}/source/MaterialXRenderGlsl | ||
${CMAKE_SOURCE_DIR}/source/MaterialXRenderOsl | ||
) | ||
set(DOXYGEN_INPUT_LIST ${CMAKE_CURRENT_BINARY_DIR}/MainPage.md) | ||
|
||
set(MATERIALX_DOXYGEN_SOURCE_FOLDERS | ||
${CMAKE_SOURCE_DIR}/source/MaterialXCore | ||
${CMAKE_SOURCE_DIR}/source/MaterialXFormat | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenShader | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenShader/Nodes | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenGlsl | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenGlsl/Nodes | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenOsl | ||
${CMAKE_SOURCE_DIR}/source/MaterialXGenMdl | ||
${CMAKE_SOURCE_DIR}/source/MaterialXRender | ||
${CMAKE_SOURCE_DIR}/source/MaterialXRenderHw | ||
${CMAKE_SOURCE_DIR}/source/MaterialXRenderGlsl | ||
${CMAKE_SOURCE_DIR}/source/MaterialXRenderOsl) | ||
|
||
find_package(Doxygen REQUIRED) | ||
|
||
foreach(FOLDER ${MATERIALX_DOXYGEN_SOURCE_FOLDERS}) | ||
file(GLOB FOLDER_HEADERS ${FOLDER}/*.h) | ||
list(APPEND DOXYGEN_INPUT_LIST ${FOLDER_HEADERS}) | ||
endforeach() | ||
|
||
string (REPLACE ";" " " DOXYGEN_INPUT_STR "${DOXYGEN_INPUT_LIST}") | ||
|
||
find_package(Doxygen) | ||
|
||
if(DOXYGEN_FOUND) | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) | ||
add_custom_target(MaterialXDocs ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
COMMENT "Generating HTML documentation: ${DOXYGEN_HTML_OUTPUT_DIR}/index.html") | ||
add_custom_command(TARGET MaterialXDocs PRE_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_directory | ||
${CMAKE_SOURCE_DIR}/documents/DoxygenAwesome ${CMAKE_CURRENT_BINARY_DIR}) | ||
add_custom_command(TARGET MaterialXDocs PRE_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_directory | ||
${CMAKE_SOURCE_DIR}/documents/Images ${CMAKE_CURRENT_BINARY_DIR}) | ||
install(DIRECTORY ${DOXYGEN_HTML_OUTPUT_DIR} | ||
DESTINATION "documents" MESSAGE_NEVER) | ||
endif(DOXYGEN_FOUND) | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) | ||
|
||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/MainPage.md | ||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/DeveloperGuide/MainPage.md ${CMAKE_CURRENT_BINARY_DIR} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/DeveloperGuide/MainPage.md) | ||
|
||
add_custom_command(OUTPUT ${DOXYGEN_HTML_OUTPUT_DIR}/index.html | ||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/DoxygenAwesome ${CMAKE_CURRENT_BINARY_DIR} | ||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/Images ${CMAKE_CURRENT_BINARY_DIR} | ||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
DEPENDS ${DOXYGEN_INPUT_LIST} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile | ||
COMMENT "Generating HTML documentation: ${DOXYGEN_HTML_OUTPUT_DIR}/index.html") | ||
add_custom_target(MaterialXDocs ALL DEPENDS ${DOXYGEN_HTML_OUTPUT_DIR}/index.html) | ||
|
||
install(DIRECTORY ${DOXYGEN_HTML_OUTPUT_DIR} | ||
DESTINATION "documents" MESSAGE_NEVER) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.