blob: ca3718bfb725900f96a3949f30abcfea78b5e163 [file] [log] [blame]
Behdad Esfahbod49f261d2009-08-10 23:35:05 -04001# Process this file with automake to produce Makefile.in
Owen Taylor80a15822000-12-20 04:41:36 +00002
Behdad Esfahbodb857b492009-05-20 05:35:14 -04003NULL =
Behdad Esfahbod8fe4c742012-07-24 21:05:12 -04004SUBDIRS =
5DIST_SUBDIRS =
Behdad Esfahbodd75333f2011-08-19 19:59:24 +02006BUILT_SOURCES =
Behdad Esfahbod7bbe14b2011-01-09 22:29:14 -05007EXTRA_DIST =
Behdad Esfahbodc78f4482011-05-05 21:31:04 -04008CLEANFILES =
9DISTCLEANFILES =
10MAINTAINERCLEANFILES =
Behdad Esfahbod84d781e2012-06-16 15:21:41 -040011DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
Behdad Esfahbodb857b492009-05-20 05:35:14 -040012
Behdad Esfahbod11c4ad42012-07-13 11:29:31 -040013# The following warning options are useful for debugging: -Wpadded
Behdad Esfahbod69367062009-08-12 19:45:50 -040014#AM_CXXFLAGS =
Owen Taylor80a15822000-12-20 04:41:36 +000015
Behdad Esfahbod1f0ceeb2009-11-02 16:28:39 -050016lib_LTLIBRARIES = libharfbuzz.la
Owen Taylor80a15822000-12-20 04:41:36 +000017
Behdad Esfahbodd94647e2009-11-03 16:35:10 -050018HBCFLAGS =
19HBLIBS =
Behdad Esfahbodb857b492009-05-20 05:35:14 -040020HBSOURCES = \
Behdad Esfahbodec3ba4b2012-05-17 20:30:46 -040021 hb-atomic-private.hh \
Behdad Esfahbodf19f4f92011-04-20 18:25:56 -040022 hb-blob.cc \
Behdad Esfahbodcd54d502013-03-04 21:29:38 -050023 hb-buffer-deserialize-json.hh \
24 hb-buffer-deserialize-text.hh \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040025 hb-buffer-private.hh \
Behdad Esfahbodd3e14aa2013-02-27 11:06:36 -050026 hb-buffer-serialize.cc \
Behdad Esfahbod56eb5ad2011-05-04 19:27:37 -040027 hb-buffer.cc \
Behdad Esfahbod20fdb0f2012-05-17 22:04:45 -040028 hb-cache-private.hh \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040029 hb-common.cc \
Behdad Esfahbod02aeca92011-08-04 22:31:05 -040030 hb-fallback-shape.cc \
Behdad Esfahbod2e3a07a2013-08-26 18:49:07 -040031 hb-face-private.hh \
32 hb-face.cc \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040033 hb-font-private.hh \
Behdad Esfahbod56eb5ad2011-05-04 19:27:37 -040034 hb-font.cc \
35 hb-mutex-private.hh \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040036 hb-object-private.hh \
Behdad Esfahbod5f5b24f2009-08-02 20:03:12 -040037 hb-open-file-private.hh \
Behdad Esfahbod7edb4302009-08-04 22:06:57 -040038 hb-open-type-private.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020039 hb-ot-head-table.hh \
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +020040 hb-ot-hhea-table.hh \
41 hb-ot-hmtx-table.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020042 hb-ot-maxp-table.hh \
43 hb-ot-name-table.hh \
Behdad Esfahbodb4922992011-08-05 20:34:50 -040044 hb-ot-tag.cc \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040045 hb-private.hh \
Behdad Esfahbod0b08adb2012-04-23 22:41:09 -040046 hb-set-private.hh \
47 hb-set.cc \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040048 hb-shape.cc \
Behdad Esfahbod027857d2012-07-26 17:34:25 -040049 hb-shape-plan-private.hh \
50 hb-shape-plan.cc \
Behdad Esfahbod027857d2012-07-26 17:34:25 -040051 hb-shaper-list.hh \
52 hb-shaper-impl-private.hh \
53 hb-shaper-private.hh \
Behdad Esfahbodbd26b4d2012-07-26 22:05:39 -040054 hb-shaper.cc \
Behdad Esfahbodae9877d2011-08-17 14:43:45 +020055 hb-tt-font.cc \
Behdad Esfahbodfb194b82011-04-20 02:00:47 -040056 hb-unicode-private.hh \
Behdad Esfahbod56eb5ad2011-05-04 19:27:37 -040057 hb-unicode.cc \
Behdad Esfahbod7f19ae72012-09-25 11:22:28 -040058 hb-utf-private.hh \
Behdad Esfahbodbd7ff1d2012-02-23 15:06:16 -050059 hb-warning.cc \
Behdad Esfahbodb857b492009-05-20 05:35:14 -040060 $(NULL)
Behdad Esfahbodb857b492009-05-20 05:35:14 -040061HBHEADERS = \
Behdad Esfahbod678bed42009-08-02 15:35:31 -040062 hb.h \
Behdad Esfahbodf0954d12009-07-30 15:33:57 -040063 hb-blob.h \
Behdad Esfahbod5c0adce2009-05-20 05:42:12 -040064 hb-buffer.h \
Behdad Esfahbodf0954d12009-07-30 15:33:57 -040065 hb-common.h \
Behdad Esfahbod4dc798d2013-08-26 20:39:00 -040066 hb-deprecated.h \
Behdad Esfahbod2e3a07a2013-08-26 18:49:07 -040067 hb-face.h \
Behdad Esfahbodc62b5032009-08-01 19:54:49 -040068 hb-font.h \
Behdad Esfahbod0b08adb2012-04-23 22:41:09 -040069 hb-set.h \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050070 hb-shape.h \
Behdad Esfahbodf3064102012-11-15 18:39:46 -080071 hb-shape-plan.h \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050072 hb-unicode.h \
Behdad Esfahbod9de5f982013-02-04 23:28:22 -050073 $(NULL)
74HBNODISTHEADERS = \
Behdad Esfahbodc78f4482011-05-05 21:31:04 -040075 hb-version.h \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050076 $(NULL)
77
Behdad Esfahbod02aeca92011-08-04 22:31:05 -040078if HAVE_OT
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050079HBSOURCES += \
80 hb-ot-layout.cc \
81 hb-ot-layout-common-private.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020082 hb-ot-layout-gdef-table.hh \
83 hb-ot-layout-gpos-table.hh \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050084 hb-ot-layout-gsubgpos-private.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020085 hb-ot-layout-gsub-table.hh \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040086 hb-ot-layout-private.hh \
Behdad Esfahbod5a2b0b32010-10-08 20:14:57 -040087 hb-ot-map.cc \
Behdad Esfahbod4924aff2010-10-08 19:18:16 -040088 hb-ot-map-private.hh \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040089 hb-ot-shape.cc \
Behdad Esfahbod49baa1f2010-10-12 16:50:36 -040090 hb-ot-shape-complex-arabic.cc \
Behdad Esfahbodfabd3112012-09-05 22:19:28 -040091 hb-ot-shape-complex-arabic-fallback.hh \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040092 hb-ot-shape-complex-arabic-table.hh \
Behdad Esfahbod43f04a72012-11-14 15:51:54 -080093 hb-ot-shape-complex-default.cc \
Behdad Esfahbodb9ddbd52011-06-02 17:43:12 -040094 hb-ot-shape-complex-indic.cc \
Behdad Esfahbod867361c2011-06-17 18:35:46 -040095 hb-ot-shape-complex-indic-machine.hh \
Behdad Esfahbod3ed46342012-04-19 22:34:06 -040096 hb-ot-shape-complex-indic-private.hh \
Behdad Esfahbod3a83d332013-02-12 12:14:10 -050097 hb-ot-shape-complex-indic-table.cc \
Behdad Esfahbod98628ca2013-02-11 13:36:23 -050098 hb-ot-shape-complex-myanmar.cc \
99 hb-ot-shape-complex-myanmar-machine.hh \
Behdad Esfahbod3a83d332013-02-12 12:14:10 -0500100 hb-ot-shape-complex-sea.cc \
101 hb-ot-shape-complex-sea-machine.hh \
Behdad Esfahbod43f04a72012-11-14 15:51:54 -0800102 hb-ot-shape-complex-thai.cc \
Behdad Esfahbod49baa1f2010-10-12 16:50:36 -0400103 hb-ot-shape-complex-private.hh \
Behdad Esfahbod11138cc2012-04-05 17:25:19 -0400104 hb-ot-shape-normalize-private.hh \
Behdad Esfahbod655586f2011-07-21 00:51:18 -0400105 hb-ot-shape-normalize.cc \
Behdad Esfahbod9c929ab2012-08-08 14:33:37 -0400106 hb-ot-shape-fallback-private.hh \
107 hb-ot-shape-fallback.cc \
Behdad Esfahboda8067622010-10-08 19:18:40 -0400108 hb-ot-shape-private.hh \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -0500109 $(NULL)
110HBHEADERS += \
Behdad Esfahbod678bed42009-08-02 15:35:31 -0400111 hb-ot.h \
Behdad Esfahbodb857b492009-05-20 05:35:14 -0400112 hb-ot-layout.h \
Behdad Esfahbod8a3511a2009-11-04 19:45:39 -0500113 hb-ot-tag.h \
Behdad Esfahbodb857b492009-05-20 05:35:14 -0400114 $(NULL)
Behdad Esfahbod02aeca92011-08-04 22:31:05 -0400115endif
Behdad Esfahbodc78f4482011-05-05 21:31:04 -0400116
Behdad Esfahbod66efe892012-10-02 14:55:32 -0400117if HAVE_PTHREAD
118HBCFLAGS += $(PTHREAD_CFLAGS)
119HBLIBS += $(PTHREAD_LIBS)
120endif
121
Behdad Esfahbod63a792a2009-11-02 18:33:52 -0500122if HAVE_GLIB
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500123HBCFLAGS += $(GLIB_CFLAGS)
Behdad Esfahbod8fb3d1a2009-11-03 18:34:20 -0500124HBLIBS += $(GLIB_LIBS)
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200125HBSOURCES += hb-glib.cc
126HBHEADERS += hb-glib.h
127endif
128
Behdad Esfahbod8fb3d1a2009-11-03 18:34:20 -0500129if HAVE_FREETYPE
130HBCFLAGS += $(FREETYPE_CFLAGS)
131HBLIBS += $(FREETYPE_LIBS)
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200132HBSOURCES += hb-ft.cc
133HBHEADERS += hb-ft.h
Behdad Esfahbod8fb3d1a2009-11-03 18:34:20 -0500134endif
Behdad Esfahbodca95ce42009-11-03 14:18:33 -0500135
Behdad Esfahbod6bd9b472012-04-12 14:53:53 -0400136if HAVE_GRAPHITE2
137HBCFLAGS += $(GRAPHITE2_CFLAGS)
138HBLIBS += $(GRAPHITE2_LIBS)
Behdad Esfahbod027857d2012-07-26 17:34:25 -0400139HBSOURCES += hb-graphite2.cc
Behdad Esfahbod1f49cf32011-08-24 01:29:25 +0200140HBHEADERS += hb-graphite2.h
141endif
142
Behdad Esfahbod0fbb2dc2011-08-03 19:55:04 -0400143if HAVE_UNISCRIBE
144HBCFLAGS += $(UNISCRIBE_CFLAGS)
145HBLIBS += $(UNISCRIBE_LIBS)
Behdad Esfahbod027857d2012-07-26 17:34:25 -0400146HBSOURCES += hb-uniscribe.cc
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200147HBHEADERS += hb-uniscribe.h
Behdad Esfahbod0fbb2dc2011-08-03 19:55:04 -0400148endif
149
Jonathan Kewaa6d8492012-07-24 15:52:32 -0400150if HAVE_CORETEXT
151HBCFLAGS += $(CORETEXT_CFLAGS)
152HBLIBS += $(CORETEXT_LIBS)
Behdad Esfahbod027857d2012-07-26 17:34:25 -0400153HBSOURCES += hb-coretext.cc
Jonathan Kewaa6d8492012-07-24 15:52:32 -0400154HBHEADERS += hb-coretext.h
155endif
156
Behdad Esfahbod3f33f0d2012-10-02 16:03:18 -0400157if HAVE_UCDN
158SUBDIRS += hb-ucdn
159HBCFLAGS += -I$(srcdir)/hb-ucdn
160HBLIBS += hb-ucdn/libhb-ucdn.la
161HBSOURCES += hb-ucdn.cc
162endif
163DIST_SUBDIRS += hb-ucdn
Behdad Esfahbod1512a732012-07-24 19:16:56 -0400164
Behdad Esfahbod560d68a2012-08-08 17:16:01 -0400165
166# Put the library together
167
168if OS_WIN32
169export_symbols = -export-symbols harfbuzz.def
170harfbuzz_def_dependency = harfbuzz.def
Behdad Esfahbod20a840c2012-09-24 20:23:00 -0400171libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
172else
Behdad Esfahbode7846322013-01-14 00:27:21 -0600173# Use a C linker for GCC, not C++; Don't link to libstdc++
174if HAVE_GCC
Behdad Esfahbod61eb60c2012-06-05 21:14:04 -0400175libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)
Behdad Esfahbode7846322013-01-14 00:27:21 -0600176else
177libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
178endif
Behdad Esfahbod20a840c2012-09-24 20:23:00 -0400179endif
180
Behdad Esfahbod9de5f982013-02-04 23:28:22 -0500181libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS) $(HBNODISTHEADERS)
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +0200182nodist_libharfbuzz_la_SOURCES = $(nodist_HBSOURCES)
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500183libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
Behdad Esfahbod560d68a2012-08-08 17:16:01 -0400184libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) $(export_symbols) -no-undefined
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500185libharfbuzz_la_LIBADD = $(HBLIBS)
Behdad Esfahbodeb7669a2012-09-18 19:42:06 -0400186EXTRA_libharfbuzz_la_DEPENDENCIES = $(harfbuzz_def_dependency)
Behdad Esfahbod1f0ceeb2009-11-02 16:28:39 -0500187pkginclude_HEADERS = $(HBHEADERS)
Behdad Esfahbod9de5f982013-02-04 23:28:22 -0500188nodist_pkginclude_HEADERS = $(HBNODISTHEADERS)
Behdad Esfahbod22ce0962013-05-28 17:18:30 -0400189pkgconfigdir = $(libdir)/pkgconfig
190pkgconfig_DATA = harfbuzz.pc
Behdad Esfahbodd70be292013-05-28 17:23:56 -0400191EXTRA_DIST += harfbuzz.pc.in
Owen Taylor80a15822000-12-20 04:41:36 +0000192
Behdad Esfahbodd9afa112013-05-28 15:27:40 -0400193if HAVE_ICU
194lib_LTLIBRARIES += libharfbuzz-icu.la
195libharfbuzz_icu_la_SOURCES = hb-icu.cc
196libharfbuzz_icu_la_CPPFLAGS = $(ICU_CFLAGS)
197libharfbuzz_icu_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
198libharfbuzz_icu_la_LIBADD = $(ICU_LIBS) libharfbuzz.la
199pkginclude_HEADERS += hb-icu.h
Behdad Esfahbod22ce0962013-05-28 17:18:30 -0400200pkgconfig_DATA += harfbuzz-icu.pc
Behdad Esfahbodd70be292013-05-28 17:23:56 -0400201EXTRA_DIST += harfbuzz-icu.pc.in
Behdad Esfahbodd9afa112013-05-28 15:27:40 -0400202endif
203
Behdad Esfahbod71439a82013-08-26 20:56:58 -0400204if HAVE_GOBJECT
205lib_LTLIBRARIES += libharfbuzz-gobject.la
206libharfbuzz_gobject_la_SOURCES = hb-gobject-structs.cc
207nodist_libharfbuzz_gobject_la_SOURCES = hb-gobject-enums.cc
208libharfbuzz_gobject_la_CPPFLAGS = $(GOBJECT_CFLAGS)
209libharfbuzz_gobject_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
210libharfbuzz_gobject_la_LIBADD = $(GOBJECT_LIBS) libharfbuzz.la
211pkginclude_HEADERS += hb-gobject.h hb-gobject-structs.h
212nodist_pkginclude_HEADERS += hb-gobject-enums.h
213pkgconfig_DATA += harfbuzz-gobject.pc
214EXTRA_DIST += harfbuzz-gobject.pc.in
215
216BUILT_SOURCES += \
217 hb-gobject-enums.cc \
218 hb-gobject-enums.h \
219 $(NULL)
220EXTRA_DIST += \
221 hb-gobject-enums.cc.tmpl \
222 hb-gobject-enums.h.tmpl \
223 $(NULL)
224DISTCLEANFILES += \
225 hb-gobject-enums.cc \
226 hb-gobject-enums.h \
227 $(NULL)
228hb-gobject-enums.%: hb-gobject-enums.%.tmpl $(HBHEADERS)
229 $(AM_V_GEN) $(GLIB_MKENUMS) \
230 --identifier-prefix hb_ --symbol-prefix hb_gobject \
231 --template $^ | \
232 sed 's/_t_get_type/_get_type/g; s/_T (/ (/g' > "$@.tmp" && \
233 mv "$@.tmp" "$@" || ( $(RM) "@.tmp" && false )
234endif
235
236
Behdad Esfahbod22ce0962013-05-28 17:18:30 -0400237%.pc: %.pc.in $(top_builddir)/config.status
238 $(AM_V_GEN) \
Behdad Esfahbod2fd0e022013-06-06 17:16:01 -0400239 $(SED) -e 's@%prefix%@$(prefix)@g' \
240 -e 's@%exec_prefix%@$(exec_prefix)@g' \
241 -e 's@%libdir%@$(libdir)@g' \
242 -e 's@%includedir%@$(includedir)@g' \
243 -e 's@%VERSION%@$(VERSION)@g' \
244 "$<" \
245 > "$@.tmp" && mv "$@.tmp" "$@" || ( $(RM) "$@.tmp"; false )
Behdad Esfahbod22ce0962013-05-28 17:18:30 -0400246
Behdad Esfahbodd70be292013-05-28 17:23:56 -0400247CLEANFILES += $(pkgconfig_DATA)
248
Behdad Esfahbodd9afa112013-05-28 15:27:40 -0400249
Behdad Esfahbod560d68a2012-08-08 17:16:01 -0400250CLEANFILES += harfbuzz.def
Behdad Esfahbod9de5f982013-02-04 23:28:22 -0500251harfbuzz.def: $(HBHEADERS) $(HBNODISTHEADERS)
Behdad Esfahbod560d68a2012-08-08 17:16:01 -0400252 $(AM_V_GEN) (echo EXPORTS; \
253 (cat $^ || echo 'hb_ERROR ()' ) | \
254 $(EGREP) '^hb_.* \(' | \
255 sed -e 's/ (.*//' | \
256 LANG=C sort; \
257 echo LIBRARY libharfbuzz-$(HB_VERSION_MAJOR).dll; \
258 ) >"$@.tmp"
259 @ ! grep -q hb_ERROR "$@.tmp" && mv "$@.tmp" "$@" || ($(RM) "$@"; false)
260
Behdad Esfahbod3eb936f2010-10-05 18:36:58 -0400261
262GENERATORS = \
Behdad Esfahbod9d494332011-06-01 18:10:10 -0400263 gen-arabic-table.py \
Behdad Esfahbodb9ddbd52011-06-02 17:43:12 -0400264 gen-indic-table.py \
Behdad Esfahbod3eb936f2010-10-05 18:36:58 -0400265 $(NULL)
266
267EXTRA_DIST += $(GENERATORS)
268
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500269unicode-tables: arabic-table indic-table
270
271indic-table: gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt
Behdad Esfahbod3a83d332013-02-12 12:14:10 -0500272 $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-indic-table.cc.tmp && \
273 mv hb-ot-shape-complex-indic-table.cc.tmp $(srcdir)/hb-ot-shape-complex-indic-table.cc || \
274 ($(RM) hb-ot-shape-complex-indic-table.cc.tmp; false)
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500275
Behdad Esfahbodae4a2b92012-04-10 16:25:08 -0400276arabic-table: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500277 $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-arabic-table.hh.tmp && \
Behdad Esfahbodae4a2b92012-04-10 16:25:08 -0400278 mv hb-ot-shape-complex-arabic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-arabic-table.hh || \
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500279 ($(RM) hb-ot-shape-complex-arabic-table.hh.tmp; false)
280
281
282.PHONY: unicode-tables arabic-table indic-table
283
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500284BUILT_SOURCES += \
Behdad Esfahbod20b817a2013-02-27 18:39:37 -0500285 hb-buffer-deserialize-json.hh \
Behdad Esfahbod847794e2013-02-27 17:59:28 -0500286 hb-buffer-deserialize-text.hh \
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500287 hb-ot-shape-complex-indic-machine.hh \
288 hb-ot-shape-complex-myanmar-machine.hh \
Behdad Esfahbod3a83d332013-02-12 12:14:10 -0500289 hb-ot-shape-complex-sea-machine.hh \
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500290 $(NULL)
291EXTRA_DIST += \
Behdad Esfahbod20b817a2013-02-27 18:39:37 -0500292 hb-buffer-deserialize-json.rl \
Behdad Esfahbod847794e2013-02-27 17:59:28 -0500293 hb-buffer-deserialize-text.rl \
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500294 hb-ot-shape-complex-indic-machine.rl \
295 hb-ot-shape-complex-myanmar-machine.rl \
Behdad Esfahbod3a83d332013-02-12 12:14:10 -0500296 hb-ot-shape-complex-sea-machine.rl \
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500297 $(NULL)
Anthony Carricof7c72b42013-02-24 13:00:33 -0500298.rl.hh:
Behdad Esfahbodf5414cf2011-08-01 16:34:16 -0400299 $(AM_V_GEN)$(top_srcdir)/missing --run ragel -e -F1 -o "$@.tmp" "$<" && \
Behdad Esfahbodd75333f2011-08-19 19:59:24 +0200300 mv "$@.tmp" "$@" || ( $(RM) "$@.tmp" && false )
Behdad Esfahbod867361c2011-06-17 18:35:46 -0400301
Behdad Esfahbode54dd262013-02-27 13:01:02 -0500302noinst_PROGRAMS = \
303 main \
304 test \
305 test-buffer-serialize \
306 test-size-params \
307 test-would-substitute \
308 $(NULL)
Behdad Esfahbod5353bf42011-02-22 18:06:19 -0500309bin_PROGRAMS =
310
Behdad Esfahbodb857b492009-05-20 05:35:14 -0400311main_SOURCES = main.cc
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500312main_CPPFLAGS = $(HBCFLAGS)
313main_LDADD = libharfbuzz.la $(HBLIBS)
Owen Taylor80a15822000-12-20 04:41:36 +0000314
Behdad Esfahbod0f3f5292012-11-30 09:06:59 +0200315test_SOURCES = test.cc
316test_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
317test_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
318
Behdad Esfahbodbe73a5f2012-07-19 14:59:15 -0400319test_would_substitute_SOURCES = test-would-substitute.cc
320test_would_substitute_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
321test_would_substitute_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
322
Behdad Esfahbod0f3f5292012-11-30 09:06:59 +0200323test_size_params_SOURCES = test-size-params.cc
324test_size_params_CPPFLAGS = $(HBCFLAGS)
325test_size_params_LDADD = libharfbuzz.la $(HBLIBS)
326
Behdad Esfahbode54dd262013-02-27 13:01:02 -0500327test_buffer_serialize_SOURCES = test-buffer-serialize.cc
328test_buffer_serialize_CPPFLAGS = $(HBCFLAGS)
329test_buffer_serialize_LDADD = libharfbuzz.la $(HBLIBS)
330
Behdad Esfahbod7bbe14b2011-01-09 22:29:14 -0500331dist_check_SCRIPTS = \
Behdad Esfahbodacdba3f2010-07-23 15:11:18 -0400332 check-c-linkage-decls.sh \
Behdad Esfahbodd05d13d2010-06-09 07:15:03 -0400333 check-header-guards.sh \
Behdad Esfahbod5bc18192011-05-27 15:58:54 -0400334 check-includes.sh \
Behdad Esfahbodd9afa112013-05-28 15:27:40 -0400335 check-libstdc++.sh \
336 check-static-inits.sh \
Behdad Esfahbodac1b7232013-08-30 19:32:10 -0400337 check-symbols.sh \
Behdad Esfahbodd9afa112013-05-28 15:27:40 -0400338 $(NULL)
Behdad Esfahbodd59e28e2012-08-28 19:08:36 -0400339
Behdad Esfahbodc57d4542011-04-20 18:50:27 -0400340TESTS = $(dist_check_SCRIPTS)
Behdad Esfahbod5bc18192011-05-27 15:58:54 -0400341TESTS_ENVIRONMENT = \
342 srcdir="$(srcdir)" \
343 MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
344 HBSOURCES="$(HBSOURCES)" \
Behdad Esfahbod9de5f982013-02-04 23:28:22 -0500345 HBHEADERS="$(HBHEADERS) $(HBNODISTHEADERS)" \
Behdad Esfahbod5bc18192011-05-27 15:58:54 -0400346 $(NULL)
Behdad Esfahbod7bbe14b2011-01-09 22:29:14 -0500347
Behdad Esfahbod71ef22b2013-08-28 12:52:55 -0400348if HAVE_INTROSPECTION
349
Behdad Esfahbod23027f72013-08-22 19:03:21 -0400350-include $(INTROSPECTION_MAKEFILE)
Behdad Esfahbodb94243d2013-08-30 18:41:33 -0400351INTROSPECTION_GIRS = HarfBuzz-$(HB_VERSION_MAJOR).0.gir # What does the 0 mean anyway?!
Behdad Esfahbod23027f72013-08-22 19:03:21 -0400352INTROSPECTION_SCANNER_ARGS = -I$(srcdir) -n hb --identifier-prefix=hb_ --warn-all
353INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
354
Behdad Esfahbodb94243d2013-08-30 18:41:33 -0400355HarfBuzz-0.0.gir: libharfbuzz.la libharfbuzz-gobject.la
356HarfBuzz_0_0_gir_INCLUDES = GObject-2.0
357HarfBuzz_0_0_gir_CFLAGS = \
Behdad Esfahbod23027f72013-08-22 19:03:21 -0400358 $(INCLUDES) \
359 $(HBCFLAGS) \
360 -DHB_H \
361 -DHB_H_IN \
362 -DHB_OT_H \
363 -DHB_OT_H_IN \
Behdad Esfahbodd8f50702013-08-26 21:26:24 -0400364 -DHB_GOBJECT_H \
365 -DHB_GOBJECT_H_IN \
Behdad Esfahbod23027f72013-08-22 19:03:21 -0400366 $(NULL)
Behdad Esfahbodb94243d2013-08-30 18:41:33 -0400367HarfBuzz_0_0_gir_LIBS = \
Behdad Esfahbodd8f50702013-08-26 21:26:24 -0400368 libharfbuzz.la \
369 libharfbuzz-gobject.la \
370 $(NULL)
Behdad Esfahbodb94243d2013-08-30 18:41:33 -0400371HarfBuzz_0_0_gir_FILES = \
Behdad Esfahbodd8f50702013-08-26 21:26:24 -0400372 $(HBHEADERS) \
373 $(HBNODISTHEADERS) \
374 hb-gobject-enums.h \
375 hb-gobject-structs.h \
376 $(NULL)
Behdad Esfahbod23027f72013-08-22 19:03:21 -0400377
378girdir = $(datadir)/gir-1.0
379gir_DATA = $(INTROSPECTION_GIRS)
380
381typelibdir = $(libdir)/girepository-1.0
382typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
383
384CLEANFILES += $(gir_DATA) $(typelib_DATA)
Behdad Esfahbod71ef22b2013-08-28 12:52:55 -0400385
Behdad Esfahbod23027f72013-08-22 19:03:21 -0400386endif
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200387
Behdad Esfahbod0e13bee2009-04-17 17:03:39 -0400388-include $(top_srcdir)/git.mk