blob: 28a3ff3158cdccf4eac353bdb2d2ab79ec1e7ecd [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 Esfahbodc57d4542011-04-20 18:50:27 -040031 hb-font-private.hh \
Behdad Esfahbod56eb5ad2011-05-04 19:27:37 -040032 hb-font.cc \
33 hb-mutex-private.hh \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040034 hb-object-private.hh \
Behdad Esfahbod5f5b24f2009-08-02 20:03:12 -040035 hb-open-file-private.hh \
Behdad Esfahbod7edb4302009-08-04 22:06:57 -040036 hb-open-type-private.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020037 hb-ot-head-table.hh \
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +020038 hb-ot-hhea-table.hh \
39 hb-ot-hmtx-table.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020040 hb-ot-maxp-table.hh \
41 hb-ot-name-table.hh \
Behdad Esfahbodb4922992011-08-05 20:34:50 -040042 hb-ot-tag.cc \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040043 hb-private.hh \
Behdad Esfahbod0b08adb2012-04-23 22:41:09 -040044 hb-set-private.hh \
45 hb-set.cc \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040046 hb-shape.cc \
Behdad Esfahbod027857d2012-07-26 17:34:25 -040047 hb-shape-plan-private.hh \
48 hb-shape-plan.cc \
Behdad Esfahbod027857d2012-07-26 17:34:25 -040049 hb-shaper-list.hh \
50 hb-shaper-impl-private.hh \
51 hb-shaper-private.hh \
Behdad Esfahbodbd26b4d2012-07-26 22:05:39 -040052 hb-shaper.cc \
Behdad Esfahbodae9877d2011-08-17 14:43:45 +020053 hb-tt-font.cc \
Behdad Esfahbodfb194b82011-04-20 02:00:47 -040054 hb-unicode-private.hh \
Behdad Esfahbod56eb5ad2011-05-04 19:27:37 -040055 hb-unicode.cc \
Behdad Esfahbod7f19ae72012-09-25 11:22:28 -040056 hb-utf-private.hh \
Behdad Esfahbodbd7ff1d2012-02-23 15:06:16 -050057 hb-warning.cc \
Behdad Esfahbodb857b492009-05-20 05:35:14 -040058 $(NULL)
Behdad Esfahbodb857b492009-05-20 05:35:14 -040059HBHEADERS = \
Behdad Esfahbod678bed42009-08-02 15:35:31 -040060 hb.h \
Behdad Esfahbodf0954d12009-07-30 15:33:57 -040061 hb-blob.h \
Behdad Esfahbod5c0adce2009-05-20 05:42:12 -040062 hb-buffer.h \
Behdad Esfahbodf0954d12009-07-30 15:33:57 -040063 hb-common.h \
Behdad Esfahbodc62b5032009-08-01 19:54:49 -040064 hb-font.h \
Behdad Esfahbod0b08adb2012-04-23 22:41:09 -040065 hb-set.h \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050066 hb-shape.h \
Behdad Esfahbodf3064102012-11-15 18:39:46 -080067 hb-shape-plan.h \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050068 hb-unicode.h \
Behdad Esfahbod9de5f982013-02-04 23:28:22 -050069 $(NULL)
70HBNODISTHEADERS = \
Behdad Esfahbodc78f4482011-05-05 21:31:04 -040071 hb-version.h \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050072 $(NULL)
73
Behdad Esfahbod02aeca92011-08-04 22:31:05 -040074if HAVE_OT
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050075HBSOURCES += \
76 hb-ot-layout.cc \
77 hb-ot-layout-common-private.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020078 hb-ot-layout-gdef-table.hh \
79 hb-ot-layout-gpos-table.hh \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050080 hb-ot-layout-gsubgpos-private.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020081 hb-ot-layout-gsub-table.hh \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040082 hb-ot-layout-private.hh \
Behdad Esfahbod5a2b0b32010-10-08 20:14:57 -040083 hb-ot-map.cc \
Behdad Esfahbod4924aff2010-10-08 19:18:16 -040084 hb-ot-map-private.hh \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040085 hb-ot-shape.cc \
Behdad Esfahbod49baa1f2010-10-12 16:50:36 -040086 hb-ot-shape-complex-arabic.cc \
Behdad Esfahbodfabd3112012-09-05 22:19:28 -040087 hb-ot-shape-complex-arabic-fallback.hh \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040088 hb-ot-shape-complex-arabic-table.hh \
Behdad Esfahbod43f04a72012-11-14 15:51:54 -080089 hb-ot-shape-complex-default.cc \
Behdad Esfahbodb9ddbd52011-06-02 17:43:12 -040090 hb-ot-shape-complex-indic.cc \
Behdad Esfahbod867361c2011-06-17 18:35:46 -040091 hb-ot-shape-complex-indic-machine.hh \
Behdad Esfahbod3ed46342012-04-19 22:34:06 -040092 hb-ot-shape-complex-indic-private.hh \
Behdad Esfahbod3a83d332013-02-12 12:14:10 -050093 hb-ot-shape-complex-indic-table.cc \
Behdad Esfahbod98628ca2013-02-11 13:36:23 -050094 hb-ot-shape-complex-myanmar.cc \
95 hb-ot-shape-complex-myanmar-machine.hh \
Behdad Esfahbod3a83d332013-02-12 12:14:10 -050096 hb-ot-shape-complex-sea.cc \
97 hb-ot-shape-complex-sea-machine.hh \
Behdad Esfahbod43f04a72012-11-14 15:51:54 -080098 hb-ot-shape-complex-thai.cc \
Behdad Esfahbod49baa1f2010-10-12 16:50:36 -040099 hb-ot-shape-complex-private.hh \
Behdad Esfahbod11138cc2012-04-05 17:25:19 -0400100 hb-ot-shape-normalize-private.hh \
Behdad Esfahbod655586f2011-07-21 00:51:18 -0400101 hb-ot-shape-normalize.cc \
Behdad Esfahbod9c929ab2012-08-08 14:33:37 -0400102 hb-ot-shape-fallback-private.hh \
103 hb-ot-shape-fallback.cc \
Behdad Esfahboda8067622010-10-08 19:18:40 -0400104 hb-ot-shape-private.hh \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -0500105 $(NULL)
106HBHEADERS += \
Behdad Esfahbod678bed42009-08-02 15:35:31 -0400107 hb-ot.h \
Behdad Esfahbodb857b492009-05-20 05:35:14 -0400108 hb-ot-layout.h \
Behdad Esfahbod8a3511a2009-11-04 19:45:39 -0500109 hb-ot-tag.h \
Behdad Esfahbodb857b492009-05-20 05:35:14 -0400110 $(NULL)
Behdad Esfahbod02aeca92011-08-04 22:31:05 -0400111endif
Behdad Esfahbodc78f4482011-05-05 21:31:04 -0400112
Behdad Esfahbod66efe892012-10-02 14:55:32 -0400113if HAVE_PTHREAD
114HBCFLAGS += $(PTHREAD_CFLAGS)
115HBLIBS += $(PTHREAD_LIBS)
116endif
117
Behdad Esfahbod63a792a2009-11-02 18:33:52 -0500118if HAVE_GLIB
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500119HBCFLAGS += $(GLIB_CFLAGS)
Behdad Esfahbod8fb3d1a2009-11-03 18:34:20 -0500120HBLIBS += $(GLIB_LIBS)
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200121HBSOURCES += hb-glib.cc
122HBHEADERS += hb-glib.h
123endif
124
125if HAVE_GOBJECT
126HBCFLAGS += $(GOBJECT_CFLAGS)
127HBLIBS += $(GOBJECT_LIBS)
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +0200128HBSOURCES += hb-gobject-structs.cc
129nodist_HBSOURCES = hb-gobject-enums.cc
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200130HBHEADERS += hb-gobject.h
Behdad Esfahbodd75333f2011-08-19 19:59:24 +0200131BUILT_SOURCES += hb-gobject-enums.cc
132EXTRA_DIST += hb-gobject-enums.cc.tmpl
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +0200133DISTCLEANFILES += hb-gobject-enums.cc
Behdad Esfahbodd75333f2011-08-19 19:59:24 +0200134
135hb-gobject-enums.cc: hb-gobject-enums.cc.tmpl $(HBHEADERS)
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +0200136 $(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > "$@.tmp" && \
137 mv "$@.tmp" "$@" || ( $(RM) "@.tmp" && false )
Behdad Esfahbod63a792a2009-11-02 18:33:52 -0500138endif
139
Behdad Esfahbod8fb3d1a2009-11-03 18:34:20 -0500140if HAVE_FREETYPE
141HBCFLAGS += $(FREETYPE_CFLAGS)
142HBLIBS += $(FREETYPE_LIBS)
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200143HBSOURCES += hb-ft.cc
144HBHEADERS += hb-ft.h
Behdad Esfahbod8fb3d1a2009-11-03 18:34:20 -0500145endif
Behdad Esfahbodca95ce42009-11-03 14:18:33 -0500146
Behdad Esfahbod6bd9b472012-04-12 14:53:53 -0400147if HAVE_GRAPHITE2
148HBCFLAGS += $(GRAPHITE2_CFLAGS)
149HBLIBS += $(GRAPHITE2_LIBS)
Behdad Esfahbod027857d2012-07-26 17:34:25 -0400150HBSOURCES += hb-graphite2.cc
Behdad Esfahbod1f49cf32011-08-24 01:29:25 +0200151HBHEADERS += hb-graphite2.h
152endif
153
Behdad Esfahbod0fbb2dc2011-08-03 19:55:04 -0400154if HAVE_UNISCRIBE
155HBCFLAGS += $(UNISCRIBE_CFLAGS)
156HBLIBS += $(UNISCRIBE_LIBS)
Behdad Esfahbod027857d2012-07-26 17:34:25 -0400157HBSOURCES += hb-uniscribe.cc
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200158HBHEADERS += hb-uniscribe.h
Behdad Esfahbod0fbb2dc2011-08-03 19:55:04 -0400159endif
160
Jonathan Kewaa6d8492012-07-24 15:52:32 -0400161if HAVE_CORETEXT
162HBCFLAGS += $(CORETEXT_CFLAGS)
163HBLIBS += $(CORETEXT_LIBS)
Behdad Esfahbod027857d2012-07-26 17:34:25 -0400164HBSOURCES += hb-coretext.cc
Jonathan Kewaa6d8492012-07-24 15:52:32 -0400165HBHEADERS += hb-coretext.h
166endif
167
Behdad Esfahbod8fe4c742012-07-24 21:05:12 -0400168if HAVE_HB_OLD
169SUBDIRS += hb-old
170HBCFLAGS += -I$(srcdir)/hb-old
171HBLIBS += hb-old/libhb-old.la
Behdad Esfahbod027857d2012-07-26 17:34:25 -0400172HBSOURCES += hb-old.cc
Behdad Esfahbod8fe4c742012-07-24 21:05:12 -0400173endif
174DIST_SUBDIRS += hb-old
175
Behdad Esfahbod7d242362012-08-23 21:23:41 -0400176if HAVE_ICU_LE
177SUBDIRS += hb-icu-le
178HBCFLAGS += -I$(srcdir)/hb-icu-le
179HBLIBS += hb-icu-le/libhb-icu-le.la
180HBSOURCES += hb-icu-le.cc
181endif
182DIST_SUBDIRS += hb-icu-le
183
Behdad Esfahbod3f33f0d2012-10-02 16:03:18 -0400184if HAVE_UCDN
185SUBDIRS += hb-ucdn
186HBCFLAGS += -I$(srcdir)/hb-ucdn
187HBLIBS += hb-ucdn/libhb-ucdn.la
188HBSOURCES += hb-ucdn.cc
189endif
190DIST_SUBDIRS += hb-ucdn
Behdad Esfahbod1512a732012-07-24 19:16:56 -0400191
Behdad Esfahbod560d68a2012-08-08 17:16:01 -0400192
193# Put the library together
194
195if OS_WIN32
196export_symbols = -export-symbols harfbuzz.def
197harfbuzz_def_dependency = harfbuzz.def
Behdad Esfahbod20a840c2012-09-24 20:23:00 -0400198libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
199else
Behdad Esfahbodd9afa112013-05-28 15:27:40 -0400200if HAVE_ICU_LE
Behdad Esfahbodb68b86d2012-12-18 20:39:40 -0500201libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
202else
Behdad Esfahbode7846322013-01-14 00:27:21 -0600203# Use a C linker for GCC, not C++; Don't link to libstdc++
204if HAVE_GCC
Behdad Esfahbod61eb60c2012-06-05 21:14:04 -0400205libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)
Behdad Esfahbode7846322013-01-14 00:27:21 -0600206else
207libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
208endif
Behdad Esfahbod20a840c2012-09-24 20:23:00 -0400209endif
Behdad Esfahbodb68b86d2012-12-18 20:39:40 -0500210endif
Behdad Esfahbod20a840c2012-09-24 20:23:00 -0400211
Behdad Esfahbod9de5f982013-02-04 23:28:22 -0500212libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS) $(HBNODISTHEADERS)
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +0200213nodist_libharfbuzz_la_SOURCES = $(nodist_HBSOURCES)
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500214libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
Behdad Esfahbod560d68a2012-08-08 17:16:01 -0400215libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) $(export_symbols) -no-undefined
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500216libharfbuzz_la_LIBADD = $(HBLIBS)
Behdad Esfahbodeb7669a2012-09-18 19:42:06 -0400217EXTRA_libharfbuzz_la_DEPENDENCIES = $(harfbuzz_def_dependency)
Behdad Esfahbod1f0ceeb2009-11-02 16:28:39 -0500218pkginclude_HEADERS = $(HBHEADERS)
Behdad Esfahbod9de5f982013-02-04 23:28:22 -0500219nodist_pkginclude_HEADERS = $(HBNODISTHEADERS)
Behdad Esfahbod22ce0962013-05-28 17:18:30 -0400220pkgconfigdir = $(libdir)/pkgconfig
221pkgconfig_DATA = harfbuzz.pc
Behdad Esfahbodd70be292013-05-28 17:23:56 -0400222EXTRA_DIST += harfbuzz.pc.in
Owen Taylor80a15822000-12-20 04:41:36 +0000223
Behdad Esfahbodd9afa112013-05-28 15:27:40 -0400224if HAVE_ICU
225lib_LTLIBRARIES += libharfbuzz-icu.la
226libharfbuzz_icu_la_SOURCES = hb-icu.cc
227libharfbuzz_icu_la_CPPFLAGS = $(ICU_CFLAGS)
228libharfbuzz_icu_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
229libharfbuzz_icu_la_LIBADD = $(ICU_LIBS) libharfbuzz.la
230pkginclude_HEADERS += hb-icu.h
Behdad Esfahbod22ce0962013-05-28 17:18:30 -0400231pkgconfig_DATA += harfbuzz-icu.pc
Behdad Esfahbodd70be292013-05-28 17:23:56 -0400232EXTRA_DIST += harfbuzz-icu.pc.in
Behdad Esfahbodd9afa112013-05-28 15:27:40 -0400233endif
234
Behdad Esfahbod22ce0962013-05-28 17:18:30 -0400235%.pc: %.pc.in $(top_builddir)/config.status
236 $(AM_V_GEN) \
237 cat "$<" | \
238 $(SED) -e 's@%prefix%@$(prefix)@g;' | \
239 $(SED) -e 's@%exec_prefix%@$(exec_prefix)@g;' | \
240 $(SED) -e 's@%libdir%@$(libdir)@g;' | \
241 $(SED) -e 's@%includedir%@$(includedir)@g;' | \
242 $(SED) -e 's@%VERSION%@$(VERSION)@g;' | \
243 cat > "$@.tmp" && mv "$@.tmp" "$@" || ( $(RM) "$@.tmp"; false )
244
Behdad Esfahbodd70be292013-05-28 17:23:56 -0400245CLEANFILES += $(pkgconfig_DATA)
246
Behdad Esfahbodd9afa112013-05-28 15:27:40 -0400247
Behdad Esfahbod560d68a2012-08-08 17:16:01 -0400248CLEANFILES += harfbuzz.def
Behdad Esfahbod9de5f982013-02-04 23:28:22 -0500249harfbuzz.def: $(HBHEADERS) $(HBNODISTHEADERS)
Behdad Esfahbod560d68a2012-08-08 17:16:01 -0400250 $(AM_V_GEN) (echo EXPORTS; \
251 (cat $^ || echo 'hb_ERROR ()' ) | \
252 $(EGREP) '^hb_.* \(' | \
253 sed -e 's/ (.*//' | \
254 LANG=C sort; \
255 echo LIBRARY libharfbuzz-$(HB_VERSION_MAJOR).dll; \
256 ) >"$@.tmp"
257 @ ! grep -q hb_ERROR "$@.tmp" && mv "$@.tmp" "$@" || ($(RM) "$@"; false)
258
Behdad Esfahbod3eb936f2010-10-05 18:36:58 -0400259
260GENERATORS = \
Behdad Esfahbod9d494332011-06-01 18:10:10 -0400261 gen-arabic-table.py \
Behdad Esfahbodb9ddbd52011-06-02 17:43:12 -0400262 gen-indic-table.py \
Behdad Esfahbod3eb936f2010-10-05 18:36:58 -0400263 $(NULL)
264
265EXTRA_DIST += $(GENERATORS)
266
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500267unicode-tables: arabic-table indic-table
268
269indic-table: gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt
Behdad Esfahbod3a83d332013-02-12 12:14:10 -0500270 $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-indic-table.cc.tmp && \
271 mv hb-ot-shape-complex-indic-table.cc.tmp $(srcdir)/hb-ot-shape-complex-indic-table.cc || \
272 ($(RM) hb-ot-shape-complex-indic-table.cc.tmp; false)
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500273
Behdad Esfahbodae4a2b92012-04-10 16:25:08 -0400274arabic-table: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500275 $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-arabic-table.hh.tmp && \
Behdad Esfahbodae4a2b92012-04-10 16:25:08 -0400276 mv hb-ot-shape-complex-arabic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-arabic-table.hh || \
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500277 ($(RM) hb-ot-shape-complex-arabic-table.hh.tmp; false)
278
279
280.PHONY: unicode-tables arabic-table indic-table
281
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500282BUILT_SOURCES += \
Behdad Esfahbod20b817a2013-02-27 18:39:37 -0500283 hb-buffer-deserialize-json.hh \
Behdad Esfahbod847794e2013-02-27 17:59:28 -0500284 hb-buffer-deserialize-text.hh \
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500285 hb-ot-shape-complex-indic-machine.hh \
286 hb-ot-shape-complex-myanmar-machine.hh \
Behdad Esfahbod3a83d332013-02-12 12:14:10 -0500287 hb-ot-shape-complex-sea-machine.hh \
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500288 $(NULL)
289EXTRA_DIST += \
Behdad Esfahbod20b817a2013-02-27 18:39:37 -0500290 hb-buffer-deserialize-json.rl \
Behdad Esfahbod847794e2013-02-27 17:59:28 -0500291 hb-buffer-deserialize-text.rl \
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500292 hb-ot-shape-complex-indic-machine.rl \
293 hb-ot-shape-complex-myanmar-machine.rl \
Behdad Esfahbod3a83d332013-02-12 12:14:10 -0500294 hb-ot-shape-complex-sea-machine.rl \
Behdad Esfahbod98628ca2013-02-11 13:36:23 -0500295 $(NULL)
296%.hh: %.rl
Behdad Esfahbodf5414cf2011-08-01 16:34:16 -0400297 $(AM_V_GEN)$(top_srcdir)/missing --run ragel -e -F1 -o "$@.tmp" "$<" && \
Behdad Esfahbodd75333f2011-08-19 19:59:24 +0200298 mv "$@.tmp" "$@" || ( $(RM) "$@.tmp" && false )
Behdad Esfahbod867361c2011-06-17 18:35:46 -0400299
Behdad Esfahbode54dd262013-02-27 13:01:02 -0500300noinst_PROGRAMS = \
301 main \
302 test \
303 test-buffer-serialize \
304 test-size-params \
305 test-would-substitute \
306 $(NULL)
Behdad Esfahbod5353bf42011-02-22 18:06:19 -0500307bin_PROGRAMS =
308
Behdad Esfahbodb857b492009-05-20 05:35:14 -0400309main_SOURCES = main.cc
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500310main_CPPFLAGS = $(HBCFLAGS)
311main_LDADD = libharfbuzz.la $(HBLIBS)
Owen Taylor80a15822000-12-20 04:41:36 +0000312
Behdad Esfahbod0f3f5292012-11-30 09:06:59 +0200313test_SOURCES = test.cc
314test_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
315test_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
316
Behdad Esfahbodbe73a5f2012-07-19 14:59:15 -0400317test_would_substitute_SOURCES = test-would-substitute.cc
318test_would_substitute_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
319test_would_substitute_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
320
Behdad Esfahbod0f3f5292012-11-30 09:06:59 +0200321test_size_params_SOURCES = test-size-params.cc
322test_size_params_CPPFLAGS = $(HBCFLAGS)
323test_size_params_LDADD = libharfbuzz.la $(HBLIBS)
324
Behdad Esfahbode54dd262013-02-27 13:01:02 -0500325test_buffer_serialize_SOURCES = test-buffer-serialize.cc
326test_buffer_serialize_CPPFLAGS = $(HBCFLAGS)
327test_buffer_serialize_LDADD = libharfbuzz.la $(HBLIBS)
328
Behdad Esfahbod7bbe14b2011-01-09 22:29:14 -0500329dist_check_SCRIPTS = \
Behdad Esfahbodacdba3f2010-07-23 15:11:18 -0400330 check-c-linkage-decls.sh \
Behdad Esfahbodd05d13d2010-06-09 07:15:03 -0400331 check-header-guards.sh \
Behdad Esfahbod5bc18192011-05-27 15:58:54 -0400332 check-includes.sh \
Behdad Esfahbodbafdf3d2013-02-04 23:06:50 -0500333 check-symbols.sh \
Behdad Esfahbodd05d13d2010-06-09 07:15:03 -0400334 $(NULL)
Behdad Esfahbodb8a53e42009-12-20 14:56:25 +0100335
Behdad Esfahbodd59e28e2012-08-28 19:08:36 -0400336if HAVE_ICU_LE
337else
Behdad Esfahbodd9afa112013-05-28 15:27:40 -0400338dist_check_SCRIPTS += \
339 check-libstdc++.sh \
340 check-static-inits.sh \
341 $(NULL)
Behdad Esfahbodd59e28e2012-08-28 19:08:36 -0400342endif
343
Behdad Esfahbodc57d4542011-04-20 18:50:27 -0400344TESTS = $(dist_check_SCRIPTS)
Behdad Esfahbod5bc18192011-05-27 15:58:54 -0400345TESTS_ENVIRONMENT = \
346 srcdir="$(srcdir)" \
347 MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
348 HBSOURCES="$(HBSOURCES)" \
Behdad Esfahbod9de5f982013-02-04 23:28:22 -0500349 HBHEADERS="$(HBHEADERS) $(HBNODISTHEADERS)" \
Behdad Esfahbod5bc18192011-05-27 15:58:54 -0400350 $(NULL)
Behdad Esfahbod7bbe14b2011-01-09 22:29:14 -0500351
Behdad Esfahbod8c0ea7b2012-06-24 13:20:56 -0400352#-include $(INTROSPECTION_MAKEFILE)
353#INTROSPECTION_GIRS = hb-1.0.gir
354#INTROSPECTION_SCANNER_ARGS = -I$(srcdir) -n hb --identifier-prefix=hb_
355#INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
356#
357#if HAVE_INTROSPECTION
358#
359#hb-1.0.gir: libharfbuzz.la
360#hb_1_0_gir_INCLUDES = GObject-2.0
361#hb_1_0_gir_CFLAGS = $(INCLUDES) $(HBCFLAGS) -DHB_H -DHB_H_IN -DHB_OT_H -DHB_OT_H_IN
362#hb_1_0_gir_LIBS = libharfbuzz.la
Behdad Esfahbod9de5f982013-02-04 23:28:22 -0500363#hb_1_0_gir_FILES = $(HBHEADERS) $(HBNODISTHEADERS)
Behdad Esfahbod8c0ea7b2012-06-24 13:20:56 -0400364#
365#girdir = $(datadir)/gir-1.0
366#gir_DATA = $(INTROSPECTION_GIRS)
367#
368#typelibdir = $(libdir)/girepository-1.0
369#typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
370#
371#CLEANFILES += $(gir_DATA) $(typelib_DATA)
372#endif
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200373
Behdad Esfahbod0e13bee2009-04-17 17:03:39 -0400374-include $(top_srcdir)/git.mk