Makefile.am 4.4 KB

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