summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-03-31 12:05:44 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-03-31 12:05:44 +0200
commit0800ee840dc866cdb494458468249b7d9caab50e (patch)
tree8a7f547658f9d3e0f182b5448f33443cfb361962
parent1217923dbc0b907410642f611fdb5b13236cf850 (diff)
downloaduca-0800ee840dc866cdb494458468249b7d9caab50e.tar.gz
uca-0800ee840dc866cdb494458468249b7d9caab50e.tar.bz2
uca-0800ee840dc866cdb494458468249b7d9caab50e.tar.xz
uca-0800ee840dc866cdb494458468249b7d9caab50e.zip
Remove old GtkDoc-based docs
-rw-r--r--src/CMakeLists.txt78
-rw-r--r--src/scangobj.sh.in1
-rw-r--r--src/uca-docs.xml.in30
-rw-r--r--src/uca.types.in5
4 files changed, 0 insertions, 114 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 762b308..d8af907 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -111,84 +111,6 @@ if (GOBJECT_INTROSPECTION_FOUND)
endif()
endif()
#}}}
-#{{{ Documentation
-pkg_check_modules(GTK_DOC gtk-doc)
-
-if(GTK_DOC_FOUND)
- option(WITH_GTK_DOC "Build documentation" ON)
-
- if (WITH_GTK_DOC)
- set(docs_dir "${CMAKE_CURRENT_BINARY_DIR}")
- set(docs_out "${docs_dir}/reference")
- file(MAKE_DIRECTORY ${docs_out})
-
- set(reference_files
- "${docs_out}/index.html"
- "${docs_out}/api-index-full.html"
- "${docs_out}/ch01.html"
- "${docs_out}/UcaCamera.html"
- "${docs_out}/UcaPluginManager.html"
- "${docs_out}/style.css"
- "${docs_out}/uca.devhelp2"
- "${docs_out}/home.png"
- "${docs_out}/left.png"
- "${docs_out}/right.png"
- "${docs_out}/up.png")
-
- configure_file(${CMAKE_CURRENT_SOURCE_DIR}/uca-docs.xml.in
- ${docs_out}/uca-docs.xml)
-
- configure_file(${CMAKE_CURRENT_SOURCE_DIR}/uca.types.in
- ${docs_out}/uca.types)
-
- # Create scangobj.sh from scangobj.sh.in
- get_directory_property(_current_include_dirs INCLUDE_DIRECTORIES)
- set(GTK_DOC_CFLAGS)
- foreach(_incl ${_current_include_dirs})
- set(GTK_DOC_CFLAGS "-I${_incl} ${GTK_DOC_CFLAGS}")
- endforeach()
-
- configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scangobj.sh.in" "${docs_out}/scangobj.sh")
-
- find_program(GTK_DOC_SCAN gtkdoc-scan REQUIRED)
- find_program(GTK_DOC_SCANGOBJ gtkdoc-scangobj REQUIRED)
- find_program(GTK_DOC_MKDB gtkdoc-mkdb REQUIRED)
- find_program(GTK_DOC_MKHTML gtkdoc-mkhtml REQUIRED)
-
- add_custom_command(OUTPUT ${docs_out}/uca-decl.txt
- COMMAND ${GTK_DOC_SCAN}
- --module=uca
- --source-dir=${CMAKE_CURRENT_SOURCE_DIR}
- DEPENDS uca
- WORKING_DIRECTORY ${docs_out})
-
- add_custom_command(OUTPUT ${docs_out}/uca.args
- COMMAND sh scangobj.sh
- DEPENDS uca ${docs_out}/uca-decl.txt
- WORKING_DIRECTORY ${docs_out})
-
- add_custom_command(OUTPUT ${docs_out}/sgml.stamp
- COMMAND ${GTK_DOC_MKDB}
- --module=uca
- --source-dir=${CMAKE_CURRENT_SOURCE_DIR}
- --output-format=xml
- DEPENDS ${docs_out}/uca.args
- WORKING_DIRECTORY ${docs_out})
-
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html.stamp
- COMMAND ${GTK_DOC_MKHTML}
- uca
- ${docs_out}/uca-docs.xml
- DEPENDS ${docs_out}/sgml.stamp ${docs_out}/uca-docs.xml
- WORKING_DIRECTORY ${docs_out})
-
- add_custom_target(reference ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html.stamp)
-
- install(FILES ${reference_files}
- DESTINATION ${UCA_DATADIR}/gtk-doc/html/uca)
- endif()
-endif()
-#}}}
#{{{ Installation
install(TARGETS uca
LIBRARY DESTINATION ${UCA_LIBDIR}
diff --git a/src/scangobj.sh.in b/src/scangobj.sh.in
deleted file mode 100644
index 088d67e..0000000
--- a/src/scangobj.sh.in
+++ /dev/null
@@ -1 +0,0 @@
-LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}:/opt/pylon/lib64:/opt/pylon/genicam/bin/Linux64_x64 CC=gcc CFLAGS="${GTK_DOC_CFLAGS}" LDFLAGS="${GTK_DOC_LDFLAGS} -L${CMAKE_CURRENT_BINARY_DIR} -luca `pkg-config --libs gtk+-2.0`" gtkdoc-scangobj --module=uca
diff --git a/src/uca-docs.xml.in b/src/uca-docs.xml.in
deleted file mode 100644
index b8ebc60..0000000
--- a/src/uca-docs.xml.in
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
- "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
-[
- <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
-]>
-<book id="index">
- <bookinfo>
- <title>libuca Reference Manual</title>
- <releaseinfo>
- for libuca ${UCA_VERSION_STRING}. The latest version of this documentation can be found on-line at
- <ulink role="online-location"
- url="http://ufo.kit.edu/extra/libuca">http://ufo.kit.edu/extra/libuca</ulink>.
- </releaseinfo>
- </bookinfo>
-
- <chapter>
- <title>Unified Camera Access</title>
- <xi:include href="xml/uca-camera.xml"/>
- <xi:include href="xml/uca-plugin-manager.xml"/>
- </chapter>
-
- <index id="api-index-full">
- <title>API Index</title>
- <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
- </index>
-
- <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
-
-</book>
diff --git a/src/uca.types.in b/src/uca.types.in
deleted file mode 100644
index 76acc2b..0000000
--- a/src/uca.types.in
+++ /dev/null
@@ -1,5 +0,0 @@
-uca_camera_get_type
-uca_camera_error_get_type
-uca_camera_trigger_get_type
-uca_plugin_manager_get_type
-uca_unit_get_type