1## 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=cogl
13
14# The top-level SGML file. You can change this if you want to.
15DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
16
17# The directory containing the source code. Relative to $(srcdir).
18# gtk-doc will search all .c & .h files beneath here for inline comments
19# documenting the functions and macros.
20# e.g. DOC_SOURCE_DIR=../../../gtk
21DOC_SOURCE_DIR=../../../cogl
22
23# Extra options to pass to gtkdoc-scangobj. Not normally needed.
24SCANGOBJ_OPTIONS=--type-init-func="g_type_init()"
25
26# Extra options to supply to gtkdoc-scan.
27# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
28SCAN_OPTIONS=--deprecated-guards="COGL_DISABLE_DEPRECATED"
29
30# Extra options to supply to gtkdoc-mkdb.
31# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
32MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=muffin-cogl
33
34# Extra options to supply to gtkdoc-mktmpl
35# e.g. MKTMPL_OPTIONS=--only-section-tmpl
36MKTMPL_OPTIONS=
37
38# Extra options to supply to gtkdoc-fixref. Not normally needed.
39# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
40FIXXREF_OPTIONS=\
41	--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib \
42	--extra-dir=$(GDKPIXBUF_PREFIX)/share/gtk-doc/html/gdk-pixbuf
43
44# Used for dependencies. The docs will be rebuilt if any of these change.
45# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
46# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
47HFILE_GLOB=\
48	$(top_srcdir)/cogl/cogl/*.h \
49	$(top_builddir)/cogl/cogl/*.h \
50	$(top_srcdir)/cogl/cogl/winsys/*.h
51CFILE_GLOB=$(top_srcdir)/cogl/cogl/*.c
52
53# Header files to ignore when scanning.
54# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
55cogl_private_headers := \
56	$(shell cd $(top_srcdir)/cogl && echo *-private.h && cd - && \
57	cd $(top_srcdir)/cogl/cogl/winsys && echo *-private.h && cd -)
58
59IGNORE_HFILES=\
60	driver 					\
61	tesselator				\
62	cogl.h					\
63	$(cogl_private_headers)			\
64	cogl-atlas.h				\
65	cogl-bitmap-packing.h			\
66	cogl-bitmask.h				\
67	cogl-blend-string.h 			\
68	cogl-blit.h				\
69	cogl-boxed-value.h			\
70	cogl-clip-stack.h 			\
71	cogl-debug.h 				\
72	cogl-debug-options.h 			\
73	cogl-defines.h 				\
74	cogl-driver.h				\
75	cogl-enum-types.h			\
76	cogl-flags.h				\
77	cogl-gles2-types.h			\
78	cogl-gl-header.h			\
79	cogl-glsl-shader-boilerplate.h		\
80	cogl-profile.h				\
81	cogl-rectangle-map.h			\
82	cogl-spans.h 				\
83	cogl-texture-driver.h			\
84	cogl-util.h 				\
85	$(NULL)
86
87EXTRA_HFILES=
88
89# Images to copy into HTML directory.
90# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
91HTML_IMAGES = \
92	fill-rule-non-zero.png \
93	fill-rule-even-odd.png \
94	quad-indices-order.png \
95	quad-indices-triangles.png \
96	cogl_ortho.png
97
98# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
99# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
100content_files = \
101	blend-strings.xml
102
103# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
104# These files must be listed here *and* in content_files
105# e.g. expand_content_files=running.sgml
106expand_content_files = \
107	blend-strings.xml
108
109# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
110# Only needed if you are using gtkdoc-scangobj to dynamically query widget
111# signals and properties.
112# e.g. AM_CPPFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
113# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
114
115AM_CPPFLAGS = -I$(top_srcdir) \
116  -I$(top_builddir)/cogl \
117	-DCOGL_ENABLE_EXPERIMENTAL_API \
118	-DCOGL_ENABLE_EXPERIMENTAL_2_0_API \
119	-DCOGL_ENABLE_MUFFIN_API \
120	$(COGL_DEP_CFLAGS)
121GTKDOC_LIBS = $(top_builddir)/clutter/clutter/libmuffin-cogl-0.la $(COGL_DEP_LIBS)
122
123include $(top_srcdir)/gtk-doc.make
124
125EXTRA_DIST =
126
127# Other files to distribute
128# e.g. EXTRA_DIST += version.xml.in
129
130EXTRA_DIST += $(HTML_IMAGES) $(content_files)
131