blob: a9935385b9a7bb579c3add791eeccfdaec820d90 [file] [log] [blame]
Behdad Esfahbod5783e052015-08-31 19:18:10 +01001# Process this file with automake to produce Makefile.in
2
3# We require automake 1.6 at least.
4AUTOMAKE_OPTIONS = 1.6
5
6# This is a blank Makefile.am for using gtk-doc.
7# Copy this to your project's API docs directory and modify the variables to
8# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples
9# of using the various options.
10
11# The name of the module, e.g. 'glib'.
12DOC_MODULE=harfbuzz
13
14# Uncomment for versioned docs and specify the version of the module, e.g. '2'.
15#DOC_MODULE_VERSION=$(HB_VERSION_MAJOR)
16
17# The top-level SGML file. You can change this if you want to.
18DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
19
20# Directories containing the source code.
21# gtk-doc will search all .c and .h files beneath these paths
22# for inline comments documenting functions and macros.
23# e.g. DOC_SOURCE_DIR=$(top_srcdir)/gtk $(top_srcdir)/gdk
24DOC_SOURCE_DIR=$(top_srcdir)/src $(top_builddir)/src
25
26# Extra options to pass to gtkdoc-scangobj. Not normally needed.
27SCANGOBJ_OPTIONS=
28
29# Extra options to supply to gtkdoc-scan.
30# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
Khaled Hosny1f555922015-12-29 02:15:21 +040031SCAN_OPTIONS=--rebuild-types --deprecated-guards="HB_DISABLE_DEPRECATED" \
32 --ignore-decorators="HB_EXTERN"
Behdad Esfahbod5783e052015-08-31 19:18:10 +010033
34# Header files or dirs to ignore when scanning. Use base file/dir names
35# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code
36IGNORE_HFILES=`cd $(top_srcdir)/src; find . -path './hb-*/*.h' | sed 's@^.*/@@'`
37if HAVE_GOBJECT
38else
39IGNORE_HFILES+=hb-gobject.h hb-gobject-enums.h hb-gobject-structs.h
40endif
41
42# Extra options to supply to gtkdoc-mkdb.
43# e.g. MKDB_OPTIONS=--xml-mode --output-format=xml
44MKDB_OPTIONS=--source-suffixes=h,cc --xml-mode --output-format=xml --ignore-files="$(IGNORE_HFILES)"
45
46# Extra options to supply to gtkdoc-mktmpl
47# e.g. MKTMPL_OPTIONS=--only-section-tmpl
48MKTMPL_OPTIONS=
49
50# Extra options to supply to gtkdoc-mkhtml
51MKHTML_OPTIONS=
52
53# Extra options to supply to gtkdoc-fixref. Not normally needed.
54# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
55FIXXREF_OPTIONS=
56
57# Used for dependencies. The docs will be rebuilt if any of these change.
58# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
59# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
60HFILE_GLOB=$(top_srcdir)/src/hb.h $(top_srcdir)/src/hb-*.h
61CFILE_GLOB=$(top_srcdir)/src/hb-*.cc
62
63# Extra header to include when scanning, which are not under DOC_SOURCE_DIR
64# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h
65EXTRA_HFILES=$(top_builddir)/src/hb-version.h
66
67# Images to copy into HTML directory.
68# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
Khaled Hosny4dc22652015-12-23 00:26:20 +040069HTML_IMAGES= \
Behdad Esfahbodd672bcf2017-11-28 22:20:57 -080070 HarfBuzz.png \
71 HarfBuzz.svg
Behdad Esfahbod5783e052015-08-31 19:18:10 +010072
73# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
74# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
75content_files= \
Khaled Hosny493a9222015-12-23 00:33:41 +040076 usermanual-buffers-language-script-and-direction.xml \
n8willis498574e2016-01-28 12:21:32 -060077 usermanual-clusters.xml \
Khaled Hosny493a9222015-12-23 00:33:41 +040078 usermanual-fonts-and-faces.xml \
79 usermanual-glyph-information.xml \
80 usermanual-hello-harfbuzz.xml \
Khaled Hosnyd25317f2015-12-23 01:29:48 +040081 usermanual-install-harfbuzz.xml \
Khaled Hosny493a9222015-12-23 00:33:41 +040082 usermanual-opentype-features.xml \
83 usermanual-what-is-harfbuzz.xml \
Behdad Esfahbod5783e052015-08-31 19:18:10 +010084 version.xml
85
86# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
87# These files must be listed here *and* in content_files
88# e.g. expand_content_files=running.sgml
89expand_content_files=
90
91# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
92# Only needed if you are using gtkdoc-scangobj to dynamically query widget
93# signals and properties.
94# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
95# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
96GTKDOC_CFLAGS=
97GTKDOC_LIBS=$(top_builddir)/src/libharfbuzz.la
98if HAVE_GOBJECT
99GTKDOC_LIBS+=$(top_builddir)/src/libharfbuzz-gobject.la
100endif
101
102# This includes the standard gtk-doc make rules, copied by gtkdocize.
103include $(top_srcdir)/gtk-doc.make
104
105# Other files to distribute
106# e.g. EXTRA_DIST += version.xml.in
107EXTRA_DIST += version.xml.in
108
109# Files not to distribute
110# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
111# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
112#DISTCLEANFILES +=
113
Behdad Esfahbod369dfab2018-01-12 11:37:01 +0100114# Comment this out if you don't want 'make check' to test you doc status
Behdad Esfahbod5783e052015-08-31 19:18:10 +0100115# and run some sanity checks
116if ENABLE_GTK_DOC
117TESTS_ENVIRONMENT = cd $(srcdir) && \
118 DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
119 SRCDIR=$(abs_srcdir) BUILDDIR=$(abs_builddir)
120#TESTS = $(GTKDOC_CHECK)
121endif
Behdad Esfahbod5ec58752015-02-26 13:53:05 -0800122
123-include $(top_srcdir)/git.mk