Add infrastructure changes to build the API documentation.
doxygen and graphviz are required. It's disabled by default, use the BUILD_API_DOCS make(1) argument to enable it. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100123013719-pkk3a3823cx09v8l
This commit is contained in:
24
doc/Makefile
Normal file
24
doc/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# Makefile to build the libxbps API documentation.
|
||||
#
|
||||
DOXYF ?= xbps_api_doxyfile
|
||||
FORMAT ?= png
|
||||
FILES = xbps_transaction_dictionary.$(FORMAT)
|
||||
FILES += xbps_regpkgdb_dictionary.$(FORMAT)
|
||||
FILES += xbps_pkg_props_dictionary.$(FORMAT)
|
||||
FILES += xbps_pkg_files_dictionary.$(FORMAT)
|
||||
FILES += xbps_binary_pkg_content.$(FORMAT)
|
||||
|
||||
.PHONY: all
|
||||
all: $(FILES) doxygendocs
|
||||
|
||||
$(FILES): %.$(FORMAT): %.dot
|
||||
dot -T$(FORMAT) $< -o images/$@
|
||||
|
||||
doxygendocs: $(FILES)
|
||||
doxygen $(DOXYF)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm -f images/*.$(FORMAT)
|
||||
-rm -rf ../api
|
223
doc/xbps_api_doxyfile
Normal file
223
doc/xbps_api_doxyfile
Normal file
@@ -0,0 +1,223 @@
|
||||
DOXYFILE_ENCODING = UTF-8
|
||||
PROJECT_NAME = "The X Binary Package System Library API"
|
||||
PROJECT_NUMBER = 20100119
|
||||
OUTPUT_DIRECTORY = ../api
|
||||
CREATE_SUBDIRS = YES
|
||||
OUTPUT_LANGUAGE = English
|
||||
BRIEF_MEMBER_DESC = YES
|
||||
REPEAT_BRIEF = NO
|
||||
ABBREVIATE_BRIEF = "The $name class" \
|
||||
"The $name widget" \
|
||||
"The $name file" \
|
||||
is \
|
||||
provides \
|
||||
specifies \
|
||||
contains \
|
||||
represents \
|
||||
a \
|
||||
an \
|
||||
the
|
||||
ALWAYS_DETAILED_SEC = YES
|
||||
INLINE_INHERITED_MEMB = NO
|
||||
FULL_PATH_NAMES = YES
|
||||
STRIP_FROM_PATH =
|
||||
STRIP_FROM_INC_PATH =
|
||||
SHORT_NAMES = NO
|
||||
JAVADOC_AUTOBRIEF = NO
|
||||
QT_AUTOBRIEF = NO
|
||||
MULTILINE_CPP_IS_BRIEF = NO
|
||||
INHERIT_DOCS = YES
|
||||
SEPARATE_MEMBER_PAGES = NO
|
||||
TAB_SIZE = 8
|
||||
ALIASES =
|
||||
OPTIMIZE_OUTPUT_FOR_C = YES
|
||||
OPTIMIZE_OUTPUT_JAVA = NO
|
||||
OPTIMIZE_FOR_FORTRAN = NO
|
||||
OPTIMIZE_OUTPUT_VHDL = NO
|
||||
EXTENSION_MAPPING =
|
||||
BUILTIN_STL_SUPPORT = NO
|
||||
CPP_CLI_SUPPORT = NO
|
||||
SIP_SUPPORT = NO
|
||||
IDL_PROPERTY_SUPPORT = YES
|
||||
DISTRIBUTE_GROUP_DOC = NO
|
||||
SUBGROUPING = YES
|
||||
TYPEDEF_HIDES_STRUCT = YES
|
||||
SYMBOL_CACHE_SIZE = 0
|
||||
EXTRACT_ALL = NO
|
||||
EXTRACT_PRIVATE = NO
|
||||
EXTRACT_STATIC = NO
|
||||
EXTRACT_LOCAL_CLASSES = NO
|
||||
EXTRACT_LOCAL_METHODS = NO
|
||||
EXTRACT_ANON_NSPACES = NO
|
||||
HIDE_UNDOC_MEMBERS = YES
|
||||
HIDE_UNDOC_CLASSES = NO
|
||||
HIDE_FRIEND_COMPOUNDS = NO
|
||||
HIDE_IN_BODY_DOCS = NO
|
||||
INTERNAL_DOCS = NO
|
||||
CASE_SENSE_NAMES = NO
|
||||
HIDE_SCOPE_NAMES = YES
|
||||
SHOW_INCLUDE_FILES = NO
|
||||
FORCE_LOCAL_INCLUDES = NO
|
||||
INLINE_INFO = YES
|
||||
SORT_MEMBER_DOCS = YES
|
||||
SORT_BRIEF_DOCS = YES
|
||||
SORT_MEMBERS_CTORS_1ST = NO
|
||||
SORT_GROUP_NAMES = YES
|
||||
SORT_BY_SCOPE_NAME = NO
|
||||
GENERATE_TODOLIST = YES
|
||||
GENERATE_TESTLIST = YES
|
||||
GENERATE_BUGLIST = YES
|
||||
GENERATE_DEPRECATEDLIST= YES
|
||||
ENABLED_SECTIONS =
|
||||
MAX_INITIALIZER_LINES = 30
|
||||
SHOW_USED_FILES = YES
|
||||
SHOW_DIRECTORIES = NO
|
||||
SHOW_FILES = YES
|
||||
SHOW_NAMESPACES = YES
|
||||
FILE_VERSION_FILTER =
|
||||
LAYOUT_FILE =
|
||||
QUIET = NO
|
||||
WARNINGS = YES
|
||||
WARN_IF_UNDOCUMENTED = YES
|
||||
WARN_IF_DOC_ERROR = YES
|
||||
WARN_NO_PARAMDOC = YES
|
||||
WARN_FORMAT = "$file:$line: $text"
|
||||
WARN_LOGFILE =
|
||||
INPUT = ..
|
||||
INPUT_ENCODING = UTF-8
|
||||
FILE_PATTERNS = *.c *.h
|
||||
RECURSIVE = YES
|
||||
EXCLUDE = ../.bzr ../bin ../lib/fetch \
|
||||
../include/sha256.h ../include/fetch.h
|
||||
EXCLUDE_SYMLINKS = NO
|
||||
EXCLUDE_PATTERNS = .bzr *.mk Makefile
|
||||
EXCLUDE_SYMBOLS =
|
||||
EXAMPLE_PATH =
|
||||
EXAMPLE_PATTERNS = *
|
||||
EXAMPLE_RECURSIVE = NO
|
||||
IMAGE_PATH = images
|
||||
INPUT_FILTER =
|
||||
FILTER_PATTERNS =
|
||||
FILTER_SOURCE_FILES = NO
|
||||
SOURCE_BROWSER = NO
|
||||
INLINE_SOURCES = NO
|
||||
STRIP_CODE_COMMENTS = YES
|
||||
REFERENCED_BY_RELATION = YES
|
||||
REFERENCES_RELATION = YES
|
||||
REFERENCES_LINK_SOURCE = NO
|
||||
USE_HTAGS = NO
|
||||
VERBATIM_HEADERS = NO
|
||||
ALPHABETICAL_INDEX = NO
|
||||
COLS_IN_ALPHA_INDEX = 5
|
||||
IGNORE_PREFIX =
|
||||
GENERATE_HTML = YES
|
||||
HTML_OUTPUT = html
|
||||
HTML_FILE_EXTENSION = .html
|
||||
HTML_HEADER =
|
||||
HTML_FOOTER =
|
||||
HTML_STYLESHEET =
|
||||
HTML_TIMESTAMP = YES
|
||||
HTML_ALIGN_MEMBERS = NO
|
||||
HTML_DYNAMIC_SECTIONS = NO
|
||||
GENERATE_DOCSET = NO
|
||||
DOCSET_FEEDNAME = "Doxygen generated docs"
|
||||
DOCSET_BUNDLE_ID = org.doxygen.Project
|
||||
GENERATE_HTMLHELP = NO
|
||||
CHM_FILE =
|
||||
HHC_LOCATION =
|
||||
GENERATE_CHI = NO
|
||||
CHM_INDEX_ENCODING =
|
||||
BINARY_TOC = NO
|
||||
TOC_EXPAND = NO
|
||||
GENERATE_QHP = NO
|
||||
QCH_FILE =
|
||||
QHP_NAMESPACE = org.doxygen.Project
|
||||
QHP_VIRTUAL_FOLDER = doc
|
||||
QHP_CUST_FILTER_NAME =
|
||||
QHP_CUST_FILTER_ATTRS =
|
||||
QHP_SECT_FILTER_ATTRS =
|
||||
QHG_LOCATION =
|
||||
GENERATE_ECLIPSEHELP = NO
|
||||
ECLIPSE_DOC_ID = org.doxygen.Project
|
||||
DISABLE_INDEX = NO
|
||||
ENUM_VALUES_PER_LINE = 4
|
||||
GENERATE_TREEVIEW = NO
|
||||
USE_INLINE_TREES = NO
|
||||
TREEVIEW_WIDTH = 250
|
||||
FORMULA_FONTSIZE = 10
|
||||
SEARCHENGINE = YES
|
||||
SERVER_BASED_SEARCH = NO
|
||||
GENERATE_LATEX = NO
|
||||
LATEX_OUTPUT = latex
|
||||
LATEX_CMD_NAME = latex
|
||||
MAKEINDEX_CMD_NAME = makeindex
|
||||
COMPACT_LATEX = NO
|
||||
PAPER_TYPE = a4wide
|
||||
EXTRA_PACKAGES =
|
||||
LATEX_HEADER =
|
||||
PDF_HYPERLINKS = YES
|
||||
USE_PDFLATEX = YES
|
||||
LATEX_BATCHMODE = NO
|
||||
LATEX_HIDE_INDICES = NO
|
||||
LATEX_SOURCE_CODE = NO
|
||||
GENERATE_RTF = NO
|
||||
RTF_OUTPUT = rtf
|
||||
COMPACT_RTF = NO
|
||||
RTF_HYPERLINKS = NO
|
||||
RTF_STYLESHEET_FILE =
|
||||
RTF_EXTENSIONS_FILE =
|
||||
GENERATE_MAN = NO
|
||||
MAN_OUTPUT = man
|
||||
MAN_EXTENSION = .3
|
||||
MAN_LINKS = NO
|
||||
GENERATE_XML = NO
|
||||
XML_OUTPUT = xml
|
||||
XML_SCHEMA =
|
||||
XML_DTD =
|
||||
XML_PROGRAMLISTING = YES
|
||||
GENERATE_AUTOGEN_DEF = NO
|
||||
GENERATE_PERLMOD = NO
|
||||
PERLMOD_LATEX = NO
|
||||
PERLMOD_PRETTY = YES
|
||||
PERLMOD_MAKEVAR_PREFIX =
|
||||
ENABLE_PREPROCESSING = YES
|
||||
MACRO_EXPANSION = YES
|
||||
EXPAND_ONLY_PREDEF = YES
|
||||
SEARCH_INCLUDES = YES
|
||||
INCLUDE_PATH =
|
||||
INCLUDE_FILE_PATTERNS =
|
||||
PREDEFINED = SIMPLEQ_ENTRY
|
||||
EXPAND_AS_DEFINED =
|
||||
SKIP_FUNCTION_MACROS = YES
|
||||
TAGFILES =
|
||||
GENERATE_TAGFILE =
|
||||
ALLEXTERNALS = NO
|
||||
EXTERNAL_GROUPS = YES
|
||||
PERL_PATH = /usr/bin/perl
|
||||
CLASS_DIAGRAMS = YES
|
||||
MSCGEN_PATH =
|
||||
HIDE_UNDOC_RELATIONS = YES
|
||||
HAVE_DOT = YES
|
||||
DOT_FONTNAME = DejaVuSansCondensed
|
||||
DOT_FONTSIZE = 6
|
||||
DOT_FONTPATH =
|
||||
CLASS_GRAPH = YES
|
||||
COLLABORATION_GRAPH = YES
|
||||
GROUP_GRAPHS = YES
|
||||
UML_LOOK = YES
|
||||
TEMPLATE_RELATIONS = YES
|
||||
INCLUDE_GRAPH = YES
|
||||
INCLUDED_BY_GRAPH = YES
|
||||
CALL_GRAPH = YES
|
||||
CALLER_GRAPH = YES
|
||||
GRAPHICAL_HIERARCHY = YES
|
||||
DIRECTORY_GRAPH = YES
|
||||
DOT_IMAGE_FORMAT = png
|
||||
DOT_PATH =
|
||||
DOTFILE_DIRS =
|
||||
DOT_GRAPH_MAX_NODES = 50
|
||||
MAX_DOT_GRAPH_DEPTH = 0
|
||||
DOT_TRANSPARENT = YES
|
||||
DOT_MULTI_TARGETS = YES
|
||||
GENERATE_LEGEND = YES
|
||||
DOT_CLEANUP = YES
|
18
doc/xbps_binary_pkg_content.dot
Normal file
18
doc/xbps_binary_pkg_content.dot
Normal file
@@ -0,0 +1,18 @@
|
||||
digraph xbps_binary_pkg_content {
|
||||
graph [ranksep="0"];
|
||||
edge [color=white,arrowhead="none",fontname="DejaVuSansCondensed",fontsize="12"];
|
||||
node [width="4.0",shape=box,fontname="DejaVuSansCondensed",fontsize="12"];
|
||||
install -> remove;
|
||||
remove -> files_plist;
|
||||
files_plist -> props_plist;
|
||||
props_plist -> archive_entry;
|
||||
archive_entry -> archive_entry2;
|
||||
archive_entry2 -> archive_entry3;
|
||||
install [style=filled,label="INSTALL"];
|
||||
remove [style=filled,label="REMOVE"];
|
||||
files_plist [label="files.plist"];
|
||||
props_plist [label="props.plist"];
|
||||
archive_entry [style=filled,label="/etc"];
|
||||
archive_entry2 [style=filled,label="/etc/foo.conf"];
|
||||
archive_entry3 [style=filled,label="..."];
|
||||
}
|
49
doc/xbps_pkg_files_dictionary.dot
Normal file
49
doc/xbps_pkg_files_dictionary.dot
Normal file
@@ -0,0 +1,49 @@
|
||||
digraph pkg_files_dictionary {
|
||||
graph [rankdir=LR,ranksep="0.7"];
|
||||
edge [arrowhead="vee",arrowsize="0.2",fontname="DejaVuSansCondensed",fontsize="8"];
|
||||
node [height=".1",shape=box,fontname="DejaVuSansCondensed",fontsize="8"];
|
||||
files_plist -> main;
|
||||
files_plist [style=filled,fillcolor=darksalmon,label="files.plist"];
|
||||
main [label="Package dictionary"];
|
||||
main -> files [label=array];
|
||||
files -> files_dict;
|
||||
files -> files_dict1;
|
||||
files_dict [style=filled,label="dictionary[0]"];
|
||||
files_dict1 [style=filled,label="dictionary[N+1]"];
|
||||
files_dict -> file [label=string];
|
||||
files_dict -> file_sha256 [label=string];
|
||||
file_sha256 [label=sha256];
|
||||
files_dict1 -> files_dict1_objs [style=filled,label="objects"];
|
||||
files_dict1_objs [style=filled,label="..."];
|
||||
main -> conf_files [label=array];
|
||||
conf_files [style=filled];
|
||||
conf_files -> conf_files_dict;
|
||||
conf_files -> conf_files_dict1;
|
||||
conf_files_dict [style=filled,label="dictionary[0]"];
|
||||
conf_files_dict1 [style=filled,label="dictionary[N+1]"];
|
||||
conf_files_dict -> cf_file [label=string];
|
||||
conf_files_dict -> cf_sha256 [label=string];
|
||||
conf_files_dict1 -> conf_files_dict1_objs [style=filled,label="objects"];
|
||||
conf_files_dict1_objs [style=filled,label="..."];
|
||||
cf_file [label=file];
|
||||
cf_sha256 [label=sha256];
|
||||
conf_files_dict [style=filled];
|
||||
main -> links [label=array];
|
||||
links -> links_dict;
|
||||
links -> links_dict1;
|
||||
links_dict [style=filled,label="dictionary[0]"];
|
||||
links_dict1 [style=filled,label="dictionary[N+1]"];
|
||||
links_dict -> link_file [label=string];
|
||||
link_file [label=file];
|
||||
links_dict1 -> links_dict1_objs [style=filled,label="objects"];
|
||||
links_dict1_objs [style=filled,label="..."];
|
||||
main -> dirs [label=array];
|
||||
dirs -> dirs_dict;
|
||||
dirs -> dirs_dict1;
|
||||
dirs_dict [style=filled,label="dictionary[0]"];
|
||||
dirs_dict1 [style=filled,label="dictionary[N+1]"];
|
||||
dirs_dict -> dirs_file [label=string];
|
||||
dirs_file [label=file];
|
||||
dirs_dict1 -> dirs_dict1_objs [style=filled,label="objects"];
|
||||
dirs_dict1_objs [style=filled,label="..."];
|
||||
}
|
37
doc/xbps_pkg_props_dictionary.dot
Normal file
37
doc/xbps_pkg_props_dictionary.dot
Normal file
@@ -0,0 +1,37 @@
|
||||
digraph pkg_props_dictionary {
|
||||
graph [rankdir=LR,ranksep="0.7"];
|
||||
edge [arrowhead="vee",arrowsize="0.2",fontname="DejaVuSansCondensed",fontsize="8"];
|
||||
node [height=".1",shape=box,fontname="DejaVuSansCondensed",fontsize="8"];
|
||||
props_plist -> main;
|
||||
props_plist [style=filled,fillcolor="darksalmon",label="props.plist"];
|
||||
main [label="Package dictionary"];
|
||||
main -> pkgname [label="string"];
|
||||
main -> version [label="string"];
|
||||
main -> pkgver [label="string"];
|
||||
main -> essential [label="bool"];
|
||||
main -> preserve [label="bool"];
|
||||
main -> run_depends [label="array"];
|
||||
run_depends [style=filled];
|
||||
run_depends -> rundep1_string [label="string"];
|
||||
run_depends -> rundep2_string [label="string"];
|
||||
rundep1_string [label="foo>=1.2"];
|
||||
rundep2_string [style=filled,label="..."];
|
||||
main -> architecture [label="string"];
|
||||
main -> instsize [label="integer"];
|
||||
instsize [label="installed_size"];
|
||||
main -> short_desc [label="string"]
|
||||
main -> long_desc [label="string"];
|
||||
main -> maintainer [label="string"];
|
||||
main -> replaces [label="array"];
|
||||
replaces [style=filled];
|
||||
replaces -> replace1_string [label="string"];
|
||||
replaces -> replace2_string [label="string"];
|
||||
replace1_string [label="blah<=2.0"];
|
||||
replace2_string [style=filled,label="..."];
|
||||
main -> conf_files [label="array"];
|
||||
conf_files [style=filled];
|
||||
conf_files -> cffile1 [style=filled,label="string"];
|
||||
conf_files -> cffile2 [style=filled,label="string"];
|
||||
cffile1 [label="/etc/foo.conf"];
|
||||
cffile2 [style=filled,label="..."];
|
||||
}
|
34
doc/xbps_regpkgdb_dictionary.dot
Normal file
34
doc/xbps_regpkgdb_dictionary.dot
Normal file
@@ -0,0 +1,34 @@
|
||||
digraph regpkgdb_dictionary {
|
||||
graph [rankdir=LR,rank=same,ranksep=".10"];
|
||||
edge [arrowhead="vee",arrowsize="0.2",fontname="DejaVuSansCondensed",fontsize="9"];
|
||||
node [height=".1",shape=box,fontname="DejaVuSansCondensed",fontsize="9"];
|
||||
regpkgdb_plist -> main;
|
||||
regpkgdb_plist [style=filled,fillcolor="darksalmon",label="regpkgdb.plist"];
|
||||
main [label="Main dictionary"];
|
||||
main -> packages [label="array"];
|
||||
packages -> pkgdict [label="dictionary"];
|
||||
packages -> pkgdict2 [label="dictionary"];
|
||||
pkgdict [style=filled,label="Package[0]"];
|
||||
pkgdict2 [style=filled,label="Package[N+1]"];
|
||||
pkgdict2 -> pkgdict2_objs [label="objects"];
|
||||
pkgdict2_objs [style=filled,label="..."];
|
||||
pkgdict -> pkgname [label="string"];
|
||||
pkgdict -> version [label="string"];
|
||||
pkgdict -> pkgver [label="string"];
|
||||
pkgdict -> state [label="string"];
|
||||
state -> state_inst [label="value"];
|
||||
state -> state_cffiles [label="value"];
|
||||
state -> state_unpack [label="value"];
|
||||
state_inst [style=filled,fillcolor="yellowgreen",label="installed"];
|
||||
state_cffiles [style=filled,fillcolor="yellowgreen",label="config-files"];
|
||||
state_unpack [style=filled,fillcolor="yellowgreen",label="unpacked"];
|
||||
pkgdict -> automatic [label="bool"];
|
||||
automatic [label="automatic-install"];
|
||||
pkgdict -> short_desc [label="string"]
|
||||
pkgdict -> requiredby [label="array"];
|
||||
requiredby [style=filled];
|
||||
requiredby -> reqby1 [label="string"];
|
||||
requiredby -> reqby2 [style=filled,label="string"];
|
||||
reqby1 [label="blah-2.0"];
|
||||
reqby2 [style=filled,label="..."];
|
||||
}
|
48
doc/xbps_transaction_dictionary.dot
Normal file
48
doc/xbps_transaction_dictionary.dot
Normal file
@@ -0,0 +1,48 @@
|
||||
digraph transaction_dictionary {
|
||||
graph [rankdir=LR,ranksep=".1"];
|
||||
edge [arrowhead="vee",arrowsize="0.40",fontname="DejaVuSansCondensed",fontsize="8"];
|
||||
node [shape=box,fontname="DejaVuSansCondensed",fontsize="8",height=".1",width=".1"];
|
||||
main -> packages [label="array"];
|
||||
main -> missing_deps [label="array"];
|
||||
missing_deps -> mdep1 [label="string"];
|
||||
missing_deps -> mdep2 [label="string"];
|
||||
mdep1 [style=filled,label="blob>=3.0<4.1"];
|
||||
mdep2 [style=filled,label="..."];
|
||||
main -> totalsize [label="integer"];
|
||||
main -> totaldlsize [label="integer"];
|
||||
main [style=filled,fillcolor="darksalmon",label="Main dictionary"];
|
||||
totalsize [label="total-installed-size"];
|
||||
totaldlsize [label="total-download-size"];
|
||||
packages -> dictionary [label="dictionary"];
|
||||
packages -> dictionary2 [label="dictionary"];
|
||||
dictionary [style=filled,label="Package[0]"];
|
||||
dictionary2 [style=filled,label="Package[N+1]"];
|
||||
dictionary2 -> dict2_objs [label="objects"];
|
||||
dict2_objs [style=filled,label="..."];
|
||||
dictionary -> pkgname [label="string"];
|
||||
dictionary -> version [label="string"];
|
||||
dictionary -> pkgver [label="string"];
|
||||
dictionary -> run_depends [label="array"];
|
||||
run_depends [style=filled];
|
||||
run_depends -> rundep1_string [label="string"];
|
||||
run_depends -> rundep2_string [label="string"];
|
||||
rundep1_string [label="foo>=1.2"];
|
||||
rundep2_string [style=filled,label="..."];
|
||||
dictionary -> architecture [label="string"];
|
||||
dictionary -> filename [label="string"];
|
||||
dictionary -> fnamesha256 [label="string"];
|
||||
fnamesha256 [label="filename-sha256"];
|
||||
dictionary -> fnamesize [label="integer"];
|
||||
fnamesize [label="filename-size"];
|
||||
dictionary -> instsize [label="integer"];
|
||||
instsize [label="installed_size"];
|
||||
dictionary -> short_desc [label="string"]
|
||||
dictionary -> trans_action [label="string"];
|
||||
trans_action [label="trans-action"];
|
||||
trans_action -> tract_inst [label="value"];
|
||||
trans_action -> tract_up [label="value"];
|
||||
trans_action -> tract_cf [label="value"];
|
||||
tract_inst [style=filled,fillcolor="yellowgreen",label="install"];
|
||||
tract_up [style=filled,fillcolor="yellowgreen",label="update"];
|
||||
tract_cf [style=filled,fillcolor="yellowgreen",label="configure"];
|
||||
}
|
Reference in New Issue
Block a user