forked from osmocom/wireshark
531 lines
16 KiB
CMake
531 lines
16 KiB
CMake
# CMakeLists.txt
|
|
#
|
|
# Wireshark - Network traffic analyzer
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
# Copyright 1998 Gerald Combs
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
|
|
# To do:
|
|
# - Make the build targets top-level on Windows, similar to the NSIS,
|
|
# WiX, and PortableApps targets?
|
|
|
|
find_package( Asciidoctor 1.5 )
|
|
find_package( XSLTPROC )
|
|
|
|
function(set_docbook_target_properties _target)
|
|
set_target_properties(${_target} PROPERTIES
|
|
FOLDER "Documentation"
|
|
EXCLUDE_FROM_DEFAULT_BUILD True
|
|
)
|
|
endfunction(set_docbook_target_properties)
|
|
|
|
set(COMMON_FILES
|
|
common_src/GPL_appendix.adoc
|
|
common_src/typographic_conventions.adoc
|
|
)
|
|
|
|
set(COMMON_GRAPHICS
|
|
common_graphics/caution.svg
|
|
common_graphics/important.svg
|
|
common_graphics/note.svg
|
|
common_graphics/tip.svg
|
|
common_graphics/warning.svg
|
|
)
|
|
|
|
set(GUIDE_INSTALL_DIRS)
|
|
|
|
set(WSUG_TITLE "Wireshark User's Guide")
|
|
|
|
set(WSUG_FILES
|
|
wsug_src/WSUG_app_files.adoc
|
|
wsug_src/WSUG_app_howitworks.adoc
|
|
wsug_src/WSUG_app_protocols.adoc
|
|
wsug_src/WSUG_app_messages.adoc
|
|
wsug_src/WSUG_app_tools.adoc
|
|
wsug_src/WSUG_chapter_advanced.adoc
|
|
wsug_src/WSUG_chapter_build_install.adoc
|
|
wsug_src/WSUG_chapter_capture.adoc
|
|
wsug_src/WSUG_chapter_customize.adoc
|
|
wsug_src/WSUG_chapter_introduction.adoc
|
|
wsug_src/WSUG_chapter_io.adoc
|
|
wsug_src/WSUG_chapter_mate.adoc
|
|
wsug_src/WSUG_chapter_statistics.adoc
|
|
wsug_src/WSUG_chapter_telephony.adoc
|
|
wsug_src/WSUG_chapter_troubleshoot.adoc
|
|
wsug_src/WSUG_chapter_use.adoc
|
|
wsug_src/WSUG_chapter_work.adoc
|
|
wsug_src/WSUG_preface.adoc
|
|
wsug_src/capinfos-h.txt
|
|
wsug_src/dumpcap-h.txt
|
|
wsug_src/editcap-F.txt
|
|
wsug_src/editcap-T.txt
|
|
wsug_src/editcap-h.txt
|
|
wsug_src/mergecap-h.txt
|
|
wsug_src/rawshark-h.txt
|
|
wsug_src/reordercap-h.txt
|
|
wsug_src/text2pcap-h.txt
|
|
wsug_src/tshark-h.txt
|
|
wsug_src/wireshark-h.txt
|
|
${COMMON_FILES}
|
|
)
|
|
|
|
# Note: Images should be minimized using tools/compress-pngs.py.
|
|
set(WSUG_GRAPHICS
|
|
wsug_graphics/related-ack.png
|
|
wsug_graphics/related-current.png
|
|
wsug_graphics/related-dup-ack.png
|
|
wsug_graphics/related-first.png
|
|
wsug_graphics/related-last.png
|
|
wsug_graphics/related-other.png
|
|
wsug_graphics/related-request.png
|
|
wsug_graphics/related-response.png
|
|
wsug_graphics/related-segment.png
|
|
wsug_graphics/ws-about-codecs.png
|
|
wsug_graphics/ws-analyze-menu.png
|
|
wsug_graphics/ws-bytes-pane-popup-menu.png
|
|
wsug_graphics/ws-bytes-pane-tabs.png
|
|
wsug_graphics/ws-bytes-pane.png
|
|
wsug_graphics/ws-capture-file-properties.png
|
|
wsug_graphics/ws-capture-info.png
|
|
wsug_graphics/ws-capture-interfaces-main-macos.png
|
|
wsug_graphics/ws-capture-interfaces-main-win32.png
|
|
wsug_graphics/ws-capture-menu.png
|
|
wsug_graphics/ws-capture-options.png
|
|
wsug_graphics/ws-capture-options-output.png
|
|
wsug_graphics/ws-capture-options-options.png
|
|
wsug_graphics/ws-capture-options-compile-selected-bpfs.png
|
|
wsug_graphics/ws-capture-options-output.png
|
|
wsug_graphics/ws-choose-color-rule.png
|
|
wsug_graphics/ws-coloring-fields.png
|
|
wsug_graphics/ws-coloring-rules-dialog.png
|
|
wsug_graphics/ws-column-header-popup-menu.png
|
|
wsug_graphics/ws-decode-as.png
|
|
wsug_graphics/ws-details-pane-popup-menu.png
|
|
wsug_graphics/ws-details-pane.png
|
|
wsug_graphics/ws-diagram-pane.png
|
|
wsug_graphics/ws-diagram-pane-popup-menu.png
|
|
wsug_graphics/ws-display-filter-tcp.png # GTK+
|
|
wsug_graphics/ws-edit-menu.png
|
|
wsug_graphics/ws-enabled-protocols.png
|
|
wsug_graphics/ws-expert-colored-tree.png
|
|
wsug_graphics/ws-expert-column.png
|
|
wsug_graphics/ws-expert-information.png
|
|
wsug_graphics/ws-export-objects.png
|
|
wsug_graphics/ws-export-packet-dissections.png
|
|
wsug_graphics/ws-export-specified-packets.png
|
|
wsug_graphics/ws-export-selected.png
|
|
wsug_graphics/ws-file-import.png
|
|
wsug_graphics/ws-file-menu.png
|
|
wsug_graphics/ws-file-set-dialog.png # GTK+
|
|
wsug_graphics/ws-filter-add-expression.png # GTK+
|
|
wsug_graphics/ws-filter-toolbar.png
|
|
wsug_graphics/ws-filters.png # GTK+
|
|
wsug_graphics/ws-find-packet.png
|
|
wsug_graphics/ws-follow-sip-stream.png
|
|
wsug_graphics/ws-follow-stream.png
|
|
wsug_graphics/ws-follow-http2-stream.png
|
|
wsug_graphics/ws-go-menu.png
|
|
wsug_graphics/ws-goto-packet.png
|
|
wsug_graphics/ws-gui-preferences.png
|
|
wsug_graphics/ws-gui-preferences-advanced.png
|
|
wsug_graphics/ws-help-menu.png
|
|
wsug_graphics/ws-list-pane.png # Outdated
|
|
wsug_graphics/ws-main-toolbar.png
|
|
wsug_graphics/ws-main.png
|
|
wsug_graphics/ws-manage-interfaces.png
|
|
wsug_graphics/ws-mate-analysis.png
|
|
wsug_graphics/ws-mate-dns_pane.png
|
|
wsug_graphics/ws-mate-dns_pdu.png
|
|
wsug_graphics/ws-mate-ftp_over_gre.png
|
|
wsug_graphics/ws-mate-gop_analysis.png
|
|
wsug_graphics/ws-mate-isup_over_mtp3_over_ip.png
|
|
wsug_graphics/ws-mate-mmse_over_http.png
|
|
wsug_graphics/ws-mate-pdu_analysis.png
|
|
wsug_graphics/ws-mate-tcp-output.png
|
|
wsug_graphics/ws-mate-transform.png
|
|
wsug_graphics/ws-menu.png
|
|
wsug_graphics/ws-merge-qt5.png
|
|
wsug_graphics/ws-merge-win32.png
|
|
wsug_graphics/ws-open-qt5.png
|
|
wsug_graphics/ws-open-win32.png
|
|
wsug_graphics/ws-packet-format.png
|
|
wsug_graphics/ws-packet-pane-popup-menu.png
|
|
wsug_graphics/ws-packet-range.png
|
|
wsug_graphics/ws-packet-selected.png
|
|
wsug_graphics/ws-packet-sep-win.png
|
|
wsug_graphics/ws-print.png
|
|
wsug_graphics/ws-save-as-qt5.png
|
|
wsug_graphics/ws-save-as-win32.png
|
|
wsug_graphics/ws-statistics-menu.png
|
|
wsug_graphics/ws-stats-conversations.png
|
|
wsug_graphics/ws-stats-endpoints.png
|
|
wsug_graphics/ws-stats-hierarchy.png
|
|
wsug_graphics/ws-stats-iographs.png
|
|
wsug_graphics/ws-stats-packet-lengths.png
|
|
wsug_graphics/ws-stats-srt-smb2.png
|
|
wsug_graphics/ws-stats-lte-mac-traffic.png
|
|
wsug_graphics/ws-stats-lte-rlc-traffic.png
|
|
wsug_graphics/ws-stats-wlan-traffic.png # GTK+
|
|
wsug_graphics/ws-statusbar-empty.png
|
|
wsug_graphics/ws-statusbar-filter.png
|
|
wsug_graphics/ws-statusbar-loaded.png
|
|
wsug_graphics/ws-statusbar-profile.png
|
|
wsug_graphics/ws-statusbar-selected.png
|
|
wsug_graphics/ws-tcp-analysis.png
|
|
wsug_graphics/ws-tel-playlist.png
|
|
wsug_graphics/ws-tel-rtp-player_1.png
|
|
wsug_graphics/ws-tel-rtp-player_2.png
|
|
wsug_graphics/ws-tel-rtp-player_3.png
|
|
wsug_graphics/ws-tel-rtp-player_button.png
|
|
wsug_graphics/ws-tel-rtp-streams.png
|
|
wsug_graphics/ws-tel-rtpstream-analysis_1.png
|
|
wsug_graphics/ws-tel-rtpstream-analysis_2.png
|
|
wsug_graphics/ws-tel-rtpstream-analysis_3.png
|
|
wsug_graphics/ws-tel-seq-dialog.png
|
|
wsug_graphics/ws-tel-voip-calls.png
|
|
wsug_graphics/ws-telephony-menu.png
|
|
wsug_graphics/ws-time-reference.png # GTK+
|
|
wsug_graphics/ws-tools-menu.png
|
|
wsug_graphics/ws-view-menu.png
|
|
wsug_graphics/toolbar/document-open.png
|
|
wsug_graphics/toolbar/edit-find.png
|
|
wsug_graphics/toolbar/filter-toolbar-add.png
|
|
wsug_graphics/toolbar/filter-toolbar-apply.png
|
|
wsug_graphics/toolbar/filter-toolbar-bookmark.png
|
|
wsug_graphics/toolbar/filter-toolbar-clear.png
|
|
wsug_graphics/toolbar/filter-toolbar-input.png
|
|
wsug_graphics/toolbar/filter-toolbar-recent.png
|
|
wsug_graphics/toolbar/go-first.png
|
|
wsug_graphics/toolbar/go-jump.png
|
|
wsug_graphics/toolbar/go-last.png
|
|
wsug_graphics/toolbar/go-next.png
|
|
wsug_graphics/toolbar/go-previous.png
|
|
wsug_graphics/toolbar/x-capture-file-close.png
|
|
wsug_graphics/toolbar/x-capture-file-reload.png
|
|
wsug_graphics/toolbar/x-capture-file-save.png
|
|
wsug_graphics/toolbar/x-capture-options.png
|
|
wsug_graphics/toolbar/x-capture-restart.png
|
|
wsug_graphics/toolbar/x-capture-start.png
|
|
wsug_graphics/toolbar/x-capture-stop.png
|
|
wsug_graphics/toolbar/x-colorize-packets.png
|
|
wsug_graphics/toolbar/x-resize-columns.png
|
|
wsug_graphics/toolbar/x-stay-last.png
|
|
wsug_graphics/toolbar/zoom-in.png
|
|
wsug_graphics/toolbar/zoom-original.png
|
|
wsug_graphics/toolbar/zoom-out.png
|
|
${COMMON_GRAPHICS}
|
|
)
|
|
|
|
set(WSDG_TITLE "Wireshark Developer's Guide")
|
|
|
|
set(WSDG_FILES
|
|
wsdg_src/WSDG_chapter_asn2wrs.adoc
|
|
wsdg_src/WSDG_chapter_build_intro.adoc
|
|
wsdg_src/WSDG_chapter_capture.adoc
|
|
wsdg_src/WSDG_chapter_dissection.adoc
|
|
wsdg_src/WSDG_chapter_env_intro.adoc
|
|
wsdg_src/WSDG_chapter_libraries.adoc
|
|
wsdg_src/WSDG_chapter_quick_setup.adoc
|
|
wsdg_src/WSDG_chapter_sources.adoc
|
|
wsdg_src/WSDG_chapter_tests.adoc
|
|
wsdg_src/WSDG_chapter_tools.adoc
|
|
wsdg_src/WSDG_chapter_userinterface.adoc
|
|
wsdg_src/WSDG_chapter_works.adoc
|
|
wsdg_src/WSDG_preface.adoc
|
|
wsluarm.adoc
|
|
${COMMON_FILES}
|
|
)
|
|
|
|
set(WSDG_GRAPHICS
|
|
wsdg_graphics/git-triangular-workflow.gv
|
|
wsdg_graphics/git-triangular-workflow.svg
|
|
wsdg_graphics/ws-capture-sync.png
|
|
wsdg_graphics/ws-capture-sync.dia
|
|
wsdg_graphics/ws-capture-sync.png
|
|
wsdg_graphics/ws-capture_internals.dia
|
|
wsdg_graphics/ws-capture_internals.png
|
|
wsdg_graphics/ws-function-blocks.dia
|
|
wsdg_graphics/ws-function-blocks.png
|
|
wsdg_graphics/ws-logo.png
|
|
${COMMON_GRAPHICS}
|
|
)
|
|
|
|
set(WSUG_SOURCE
|
|
${WSUG_FILES}
|
|
${WSUG_GRAPHICS}
|
|
)
|
|
|
|
# Ensure ws.css is available when the user tries to open generated .html files.
|
|
if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
|
|
add_custom_command(
|
|
OUTPUT ws.css
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ws.css
|
|
${CMAKE_CURRENT_BINARY_DIR}/ws.css
|
|
DEPENDS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ws.css
|
|
)
|
|
add_custom_target(copy_ws.css DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ws.css)
|
|
else()
|
|
add_custom_target(copy_ws.css)
|
|
endif()
|
|
|
|
set( WSUG_BUILT_DEPS copy_ws.css)
|
|
|
|
set(WSDG_SOURCE
|
|
${WSDG_FILES}
|
|
${WSDG_GRAPHICS}
|
|
)
|
|
|
|
# Note: file order here MATTERS!
|
|
# new WSLUA_MODULE files must come right before any WSLUA_CONTINUE_MODULE
|
|
# files for the same module
|
|
set(WSLUA_MODULES
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_dumper.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_field.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_gui.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_int64.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_listener.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_pinfo.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_address.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_column.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_nstime.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_proto.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_dissector.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_pref.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_proto_expert.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_proto_field.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_tree.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_tvb.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_byte_array.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_file.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_file_handler.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_frame_info.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_capture_info.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_dir.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_wtap.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_util.c
|
|
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_struct.c
|
|
)
|
|
|
|
# Empty file to trigger wsluarm generation.
|
|
ADD_CUSTOM_COMMAND(
|
|
OUTPUT
|
|
wsluarm
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory wsluarm_src
|
|
COMMAND ${PERL_EXECUTABLE}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/make-wsluarm.pl
|
|
${WSLUA_MODULES}
|
|
COMMAND ${CMAKE_COMMAND} -E touch
|
|
wsluarm
|
|
DEPENDS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/make-wsluarm.pl
|
|
${WSLUA_MODULES}
|
|
)
|
|
|
|
set( WSDG_BUILT_DEPS copy_ws.css wsluarm )
|
|
|
|
set( ASCIIDOC_CONF_FILES
|
|
attributes.adoc
|
|
# XXX Add macros
|
|
)
|
|
|
|
if(ASCIIDOCTOR_FOUND)
|
|
# Generate the DocBook sources of user and developer guides
|
|
|
|
ASCIIDOCTOR2DOCBOOK(user-guide.adoc ${ASCIIDOC_CONF_FILES} ${WSUG_SOURCE} ${WSUG_BUILT_DEPS})
|
|
add_custom_target(user_guide_docbook DEPENDS generate_user-guide.xml)
|
|
set_docbook_target_properties(user_guide_docbook)
|
|
|
|
ASCIIDOCTOR2DOCBOOK(developer-guide.adoc ${ASCIIDOC_CONF_FILES} ${WSDG_SOURCE} ${WSDG_BUILT_DEPS})
|
|
add_custom_target(developer_guide_docbook DEPENDS generate_developer-guide.xml)
|
|
set_docbook_target_properties(developer_guide_docbook)
|
|
|
|
# Top-level guide targets.
|
|
|
|
add_custom_target(user_guides DEPENDS user_guide_docbook)
|
|
set_docbook_target_properties(user_guides)
|
|
|
|
add_custom_target(developer_guides DEPENDS developer_guide_docbook)
|
|
set_docbook_target_properties(developer_guides)
|
|
|
|
add_custom_target(all_guides DEPENDS user_guides developer_guides )
|
|
set_docbook_target_properties(all_guides)
|
|
endif()
|
|
|
|
# User's Guide chain.
|
|
if(ASCIIDOCTOR_FOUND AND XSLTPROC_EXECUTABLE)
|
|
XML2HTML(
|
|
user_guide
|
|
wsug
|
|
single-page
|
|
user-guide.xml
|
|
WSUG_GRAPHICS
|
|
)
|
|
|
|
XML2HTML(
|
|
user_guide
|
|
wsug
|
|
chunked
|
|
user-guide.xml
|
|
WSUG_GRAPHICS
|
|
)
|
|
add_custom_target(
|
|
user_guide_html
|
|
DEPENDS
|
|
wsug_html/index.html
|
|
wsug_html_chunked/index.html
|
|
)
|
|
set_docbook_target_properties(user_guide_html)
|
|
add_dependencies(user_guides user_guide_html)
|
|
list(APPEND GUIDE_INSTALL_DIRS ${CMAKE_CURRENT_BINARY_DIR}/wsug_html_chunked)
|
|
endif()
|
|
|
|
if(ASCIIDOCTOR_FOUND AND ASCIIDOCTOR_PDF_EXECUTABLE)
|
|
ASCIIDOCTOR2PDF(${WSUG_TITLE} user-guide.adoc ${WSUG_SOURCE} ${WSUG_BUILT_DEPS})
|
|
|
|
add_custom_target(
|
|
user_guide_pdf
|
|
DEPENDS
|
|
"${WSUG_TITLE}.pdf"
|
|
)
|
|
set_docbook_target_properties(user_guide_pdf)
|
|
add_dependencies(user_guides user_guide_pdf)
|
|
endif()
|
|
|
|
if(ASCIIDOCTOR_FOUND AND ASCIIDOCTOR_EPUB_EXECUTABLE)
|
|
ASCIIDOCTOR2EPUB(${WSUG_TITLE} user-guide.adoc ${WSUG_SOURCE} ${WSUG_BUILT_DEPS})
|
|
|
|
add_custom_target(
|
|
user_guide_epub
|
|
DEPENDS
|
|
"${WSUG_TITLE}.epub"
|
|
)
|
|
set_docbook_target_properties(user_guide_epub)
|
|
add_dependencies(user_guides user_guide_epub)
|
|
endif()
|
|
|
|
# Developer's Guide chain.
|
|
if(ASCIIDOCTOR_FOUND AND XSLTPROC_EXECUTABLE)
|
|
XML2HTML(
|
|
developer_guide
|
|
wsdg
|
|
single-page
|
|
developer-guide.xml
|
|
WSDG_GRAPHICS
|
|
)
|
|
|
|
XML2HTML(
|
|
developer_guide
|
|
wsdg
|
|
chunked
|
|
developer-guide.xml
|
|
WSDG_GRAPHICS
|
|
)
|
|
add_custom_target(
|
|
developer_guide_html
|
|
DEPENDS
|
|
wsdg_html/index.html
|
|
wsdg_html_chunked/index.html
|
|
)
|
|
set_docbook_target_properties(developer_guide_html)
|
|
add_dependencies(developer_guides developer_guide_html)
|
|
list(APPEND GUIDE_INSTALL_DIRS ${CMAKE_CURRENT_BINARY_DIR}/wsdg_html_chunked)
|
|
endif()
|
|
|
|
if(ASCIIDOCTOR_FOUND AND ASCIIDOCTOR_PDF_EXECUTABLE)
|
|
ASCIIDOCTOR2PDF(${WSDG_TITLE} developer-guide.adoc ${WSDG_SOURCE} ${WSDG_BUILT_DEPS})
|
|
|
|
add_custom_target(
|
|
developer_guide_pdf
|
|
DEPENDS
|
|
"${WSDG_TITLE}.pdf"
|
|
)
|
|
set_docbook_target_properties(developer_guide_pdf)
|
|
add_dependencies(developer_guides developer_guide_pdf)
|
|
endif()
|
|
|
|
if(ASCIIDOCTOR_FOUND AND ASCIIDOCTOR_EPUB_EXECUTABLE)
|
|
ASCIIDOCTOR2EPUB(${WSDG_TITLE} developer-guide.adoc ${WSDG_SOURCE} ${WSDG_BUILT_DEPS})
|
|
|
|
add_custom_target(
|
|
developer_guide_epub
|
|
DEPENDS
|
|
"${WSDG_TITLE}.epub"
|
|
)
|
|
set_docbook_target_properties(developer_guide_epub)
|
|
add_dependencies(developer_guides developer_guide_epub)
|
|
endif()
|
|
|
|
if (GUIDE_INSTALL_DIRS)
|
|
# The installation location and DOC_DIR in ui/help_url.c must
|
|
# match.
|
|
add_custom_target(install_guides
|
|
COMMAND ${CMAKE_COMMAND} -P
|
|
${CMAKE_SOURCE_DIR}/cmake/modules/FileInstall.cmake
|
|
${GUIDE_INSTALL_DIRS}
|
|
${CMAKE_INSTALL_FULL_DOCDIR}
|
|
DEPENDS
|
|
user_guide_html developer_guide_html
|
|
)
|
|
set_docbook_target_properties(install_guides)
|
|
endif()
|
|
|
|
# release_notes: release-notes.html release-notes.txt
|
|
|
|
add_custom_target( release_notes_html DEPENDS release-notes.html )
|
|
set_docbook_target_properties(release_notes_html)
|
|
add_custom_target( release_notes_txt DEPENDS release-notes.txt )
|
|
set_docbook_target_properties(release_notes_txt)
|
|
|
|
# Force serial execution so that separate asciidoctor instances don't
|
|
# trip on each other
|
|
# add_dependencies ( release_notes_txt release_notes_html )
|
|
|
|
add_custom_target( release_notes )
|
|
set_docbook_target_properties(release_notes)
|
|
add_dependencies ( release_notes release_notes_txt release_notes_html )
|
|
|
|
add_custom_target(
|
|
news
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
${CMAKE_CURRENT_BINARY_DIR}/release-notes.txt
|
|
${CMAKE_SOURCE_DIR}/NEWS
|
|
DEPENDS
|
|
${CMAKE_CURRENT_BINARY_DIR}/release-notes.txt
|
|
)
|
|
set_docbook_target_properties(news)
|
|
|
|
if( ASCIIDOCTOR_FOUND )
|
|
ASCIIDOCTOR2HTML( release-notes.adoc )
|
|
ASCIIDOCTOR2TXT( release-notes.adoc )
|
|
endif()
|
|
|
|
# FAQ
|
|
|
|
add_custom_target( faq_html DEPENDS faq.html )
|
|
set_docbook_target_properties(faq_html)
|
|
|
|
add_custom_target( faq )
|
|
set_docbook_target_properties(faq)
|
|
add_dependencies ( faq faq_html )
|
|
|
|
if( ASCIIDOCTOR_FOUND )
|
|
ASCIIDOCTOR2HTML( faq.adoc )
|
|
endif()
|
|
|
|
#
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
|
#
|
|
# Local variables:
|
|
# c-basic-offset: 8
|
|
# tab-width: 8
|
|
# indent-tabs-mode: t
|
|
# End:
|
|
#
|
|
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
# :indentSize=8:tabSize=8:noTabs=false:
|
|
#
|