Verified Commit 4a4f4848 authored by SZPYRKA Jean-Luc's avatar SZPYRKA Jean-Luc
Browse files

added tag files for qt and vtk

parent 0ef68732
Pipeline #130696 passed with stage
in 3 minutes and 28 seconds
......@@ -43,9 +43,12 @@ set(${PROJECT_NAME}_VERSION
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
include(git_clone)
git_clone(dtk-core)
git_clone(dtk-log)
git_clone(dtk-widgets)
dtk_clone(dtk-core)
dtk_clone(dtk-log)
dtk_clone(dtk-widgets)
tag_clone("qt.tag" "https://raw.githubusercontent.com/mpaperno/maxLibQt/master/doc/tagfiles/qt.tags")
tag_clone("vtk.tag" "http://www.vtk.org/doc/nightly/vtkNightlyDoc.tag.gz")
add_subdirectory(doc)
......
......@@ -4,7 +4,7 @@
include(ExternalProject)
macro(git_clone module)
macro(dtk_clone module)
ExternalProject_Add(${module}
GIT_REPOSITORY https://gitlab.inria.fr/dtk/${module}.git
BUILD_COMMAND ""
......@@ -15,3 +15,72 @@ macro(git_clone module)
PATCH_COMMAND ""
)
endmacro()
function(tag_clone module url)
# ExternalProject_Add(${module}
# URL ${url}
# BUILD_COMMAND ""
# CMAKE_COMMAND ""
# CONFIGURE_COMMAND ""
# INSTALL_COMMAND ""
# UPDATE_COMMAND ""
# PATCH_COMMAND ""
# #
# DOWNLOAD_NO_PROGRESS TRUE
# DOWNLOAD_NO_EXTRACT TRUE
# )
# get all intermediate variables
set(output_directory ${CMAKE_BINARY_DIR}/${module}-prefix)
get_filename_component(output_filename ${url} NAME)
get_filename_component(output_extension ${url} EXT)
# final destination of tag files
set(final_directory ${CMAKE_BINARY_DIR}/doc/_build)
get_filename_component(final__filename ${module} NAME_WE)
set(final__filename ${final__filename}.tag)
# store here
if(NOT EXISTS "${output_directory}")
message("Creating output directory: ${output_directory}")
file(MAKE_DIRECTORY ${output_directory})
endif()
if(NOT EXISTS "${final_directory}")
message("Creating output directory: ${final_directory}")
file(MAKE_DIRECTORY ${final_directory})
endif()
# if tag file already exists -> do nothing
if(EXISTS "${final_directory}/${final__filename}")
message("Tag file (${final__filename}) already present: skipping")
return()
endif()
# download if necessary
if(EXISTS "${output_directory}/${output_filename}")
message("File already downloaded: ${url}")
else()
message("Downloading: ${url} (may take a while)")
file(DOWNLOAD ${url} ${output_directory}/${output_filename})
endif()
# decompress if necessary
string(REGEX MATCH ".gz$" is_compressed ${output_extension})
string(COMPARE EQUAL "${is_compressed}" ".gz" result)
if ( ${result} )
message("Decompressing: ${output_filename}")
execute_process(COMMAND
gunzip -k -f ${output_filename}
WORKING_DIRECTORY ${output_directory}
)
endif()
# standard name for tag files
message("Renaming to: ${final_directory}/${final__filename}")
file(RENAME
"${output_directory}/${output_filename}"
"${final_directory}/${final__filename}"
)
endfunction()
......@@ -928,7 +928,7 @@ EXCLUDE_PATTERNS = */tst/* */doc/*
# Note that the wildcards are matched against the file with absolute path, so to
# exclude all test directories use the pattern */test/*
EXCLUDE_SYMBOLS = dtk::detail::is_*
EXCLUDE_SYMBOLS = dtk::detail
# The EXAMPLE_PATH tag can be used to specify one or more files or directories
# that contain example code fragments that are included (see the \include
......@@ -2185,13 +2185,16 @@ SKIP_FUNCTION_MACROS = YES
# the path). If a tag file is not located in the directory in which doxygen is
# run, you must also specify the path to the tagfile here.
TAGFILES =
TAGFILES =\
qt.tag=http://doc.qt.io/qt-5/ \
vtk.tag=http://www.vtk.org/doc/nightly/html/
# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
# tag file that is based on the input files it reads. See section "Linking to
# external documentation" for more information about the usage of tag files.
GENERATE_TAGFILE =
GENERATE_TAGFILE = ${PROJECT_NAME}.tag
# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
# the class index. If set to NO, only the inherited external classes will be
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment