hip_doc packaging script updates

- Gracefully handle missing doxygen and grip tools

Change-Id: I1a4a653d687c136c6d9237062ab4d02bc6cb3db1


[ROCm/hip commit: 958af4dae1]
This commit is contained in:
Maneesh Gupta
2017-04-04 08:06:09 +05:30
parent b203f9f593
commit 564a90cb31
+11 -4
View File
@@ -1,12 +1,19 @@
cmake_minimum_required(VERSION 2.8.3)
project(hip_doc)
add_custom_target(build_doxygen ALL
find_program(DOXYGEN_EXE doxygen)
if(DOXYGEN_EXE)
add_custom_target(build_doxygen ALL
COMMAND HIP_PATH=@hip_SOURCE_DIR@ doxygen @hip_SOURCE_DIR@/docs/doxygen-input/doxy.cfg)
add_custom_target(convert_md_to_html ALL
install(DIRECTORY RuntimeAPI/html DESTINATION docs/docs/RuntimeAPI)
endif()
find_program(GRIP_EXE grip)
if(GRIP_EXE)
add_custom_target(convert_md_to_html ALL
COMMAND @hip_SOURCE_DIR@/packaging/convert_md_to_html.sh @hip_SOURCE_DIR@ ${PROJECT_BINARY_DIR}/md2html)
install(DIRECTORY RuntimeAPI/html DESTINATION docs/docs/RuntimeAPI)
install(DIRECTORY md2html/ DESTINATION docs)
install(DIRECTORY md2html/ DESTINATION docs)
endif()
#############################
# Packaging steps