blob: f2fce6e667c130e5ffecc87bb3f7cc52d36edd3b [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 Esfahbodd75333f2011-08-19 19:59:24 +02004BUILT_SOURCES =
Behdad Esfahbod7bbe14b2011-01-09 22:29:14 -05005EXTRA_DIST =
Behdad Esfahbodc78f4482011-05-05 21:31:04 -04006CLEANFILES =
7DISTCLEANFILES =
8MAINTAINERCLEANFILES =
Behdad Esfahbod84d781e2012-06-16 15:21:41 -04009DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
Behdad Esfahbodb857b492009-05-20 05:35:14 -040010
Behdad Esfahbod11c4ad42012-07-13 11:29:31 -040011# The following warning options are useful for debugging: -Wpadded
Behdad Esfahbod69367062009-08-12 19:45:50 -040012#AM_CXXFLAGS =
Owen Taylor80a15822000-12-20 04:41:36 +000013
Behdad Esfahbod1f0ceeb2009-11-02 16:28:39 -050014lib_LTLIBRARIES = libharfbuzz.la
Owen Taylor80a15822000-12-20 04:41:36 +000015
Behdad Esfahbodd94647e2009-11-03 16:35:10 -050016HBCFLAGS =
17HBLIBS =
Behdad Esfahbodb857b492009-05-20 05:35:14 -040018HBSOURCES = \
Behdad Esfahbodec3ba4b2012-05-17 20:30:46 -040019 hb-atomic-private.hh \
Behdad Esfahbodf19f4f92011-04-20 18:25:56 -040020 hb-blob.cc \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040021 hb-buffer-private.hh \
Behdad Esfahbod56eb5ad2011-05-04 19:27:37 -040022 hb-buffer.cc \
Behdad Esfahbod20fdb0f2012-05-17 22:04:45 -040023 hb-cache-private.hh \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040024 hb-common.cc \
Behdad Esfahbod02aeca92011-08-04 22:31:05 -040025 hb-fallback-shape-private.hh \
26 hb-fallback-shape.cc \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040027 hb-font-private.hh \
Behdad Esfahbod56eb5ad2011-05-04 19:27:37 -040028 hb-font.cc \
29 hb-mutex-private.hh \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040030 hb-object-private.hh \
Behdad Esfahbod5f5b24f2009-08-02 20:03:12 -040031 hb-open-file-private.hh \
Behdad Esfahbod7edb4302009-08-04 22:06:57 -040032 hb-open-type-private.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020033 hb-ot-head-table.hh \
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +020034 hb-ot-hhea-table.hh \
35 hb-ot-hmtx-table.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020036 hb-ot-maxp-table.hh \
37 hb-ot-name-table.hh \
Behdad Esfahbodb4922992011-08-05 20:34:50 -040038 hb-ot-tag.cc \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040039 hb-private.hh \
Behdad Esfahbod0b08adb2012-04-23 22:41:09 -040040 hb-set-private.hh \
41 hb-set.cc \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040042 hb-shape.cc \
Behdad Esfahbodae9877d2011-08-17 14:43:45 +020043 hb-tt-font.cc \
Behdad Esfahbodfb194b82011-04-20 02:00:47 -040044 hb-unicode-private.hh \
Behdad Esfahbod56eb5ad2011-05-04 19:27:37 -040045 hb-unicode.cc \
Behdad Esfahbodbd7ff1d2012-02-23 15:06:16 -050046 hb-warning.cc \
Behdad Esfahbodb857b492009-05-20 05:35:14 -040047 $(NULL)
Behdad Esfahbodb857b492009-05-20 05:35:14 -040048HBHEADERS = \
Behdad Esfahbod678bed42009-08-02 15:35:31 -040049 hb.h \
Behdad Esfahbodf0954d12009-07-30 15:33:57 -040050 hb-blob.h \
Behdad Esfahbod5c0adce2009-05-20 05:42:12 -040051 hb-buffer.h \
Behdad Esfahbodf0954d12009-07-30 15:33:57 -040052 hb-common.h \
Behdad Esfahbodc62b5032009-08-01 19:54:49 -040053 hb-font.h \
Behdad Esfahbod0b08adb2012-04-23 22:41:09 -040054 hb-set.h \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050055 hb-shape.h \
56 hb-unicode.h \
Behdad Esfahbodc78f4482011-05-05 21:31:04 -040057 hb-version.h \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050058 $(NULL)
59
Behdad Esfahbod02aeca92011-08-04 22:31:05 -040060if HAVE_OT
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050061HBSOURCES += \
62 hb-ot-layout.cc \
63 hb-ot-layout-common-private.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020064 hb-ot-layout-gdef-table.hh \
65 hb-ot-layout-gpos-table.hh \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050066 hb-ot-layout-gsubgpos-private.hh \
Behdad Esfahbod7a750ac2011-08-17 14:19:59 +020067 hb-ot-layout-gsub-table.hh \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040068 hb-ot-layout-private.hh \
Behdad Esfahbod5a2b0b32010-10-08 20:14:57 -040069 hb-ot-map.cc \
Behdad Esfahbod4924aff2010-10-08 19:18:16 -040070 hb-ot-map-private.hh \
Behdad Esfahbod22da7fd2010-05-12 18:23:21 -040071 hb-ot-shape.cc \
Behdad Esfahbod49baa1f2010-10-12 16:50:36 -040072 hb-ot-shape-complex-arabic.cc \
Behdad Esfahbodc57d4542011-04-20 18:50:27 -040073 hb-ot-shape-complex-arabic-table.hh \
Behdad Esfahbodb9ddbd52011-06-02 17:43:12 -040074 hb-ot-shape-complex-indic.cc \
Behdad Esfahbod867361c2011-06-17 18:35:46 -040075 hb-ot-shape-complex-indic-machine.hh \
Behdad Esfahbod3ed46342012-04-19 22:34:06 -040076 hb-ot-shape-complex-indic-private.hh \
Behdad Esfahbodb9ddbd52011-06-02 17:43:12 -040077 hb-ot-shape-complex-indic-table.hh \
Behdad Esfahbod3361c9a2011-07-07 22:35:17 -040078 hb-ot-shape-complex-misc.cc \
Behdad Esfahbod49baa1f2010-10-12 16:50:36 -040079 hb-ot-shape-complex-private.hh \
Behdad Esfahbod11138cc2012-04-05 17:25:19 -040080 hb-ot-shape-normalize-private.hh \
Behdad Esfahbod655586f2011-07-21 00:51:18 -040081 hb-ot-shape-normalize.cc \
Behdad Esfahboda8067622010-10-08 19:18:40 -040082 hb-ot-shape-private.hh \
Behdad Esfahbodd5a8e462009-11-03 15:14:40 -050083 $(NULL)
84HBHEADERS += \
Behdad Esfahbod678bed42009-08-02 15:35:31 -040085 hb-ot.h \
Behdad Esfahbodb857b492009-05-20 05:35:14 -040086 hb-ot-layout.h \
Behdad Esfahbod8a3511a2009-11-04 19:45:39 -050087 hb-ot-tag.h \
Behdad Esfahbodb857b492009-05-20 05:35:14 -040088 $(NULL)
Behdad Esfahbod02aeca92011-08-04 22:31:05 -040089endif
Behdad Esfahbodc78f4482011-05-05 21:31:04 -040090
Behdad Esfahbod63a792a2009-11-02 18:33:52 -050091if HAVE_GLIB
Behdad Esfahbodd94647e2009-11-03 16:35:10 -050092HBCFLAGS += $(GLIB_CFLAGS)
Behdad Esfahbod8fb3d1a2009-11-03 18:34:20 -050093HBLIBS += $(GLIB_LIBS)
Behdad Esfahbodc214cff2011-08-14 15:17:16 +020094HBSOURCES += hb-glib.cc
95HBHEADERS += hb-glib.h
96endif
97
98if HAVE_GOBJECT
99HBCFLAGS += $(GOBJECT_CFLAGS)
100HBLIBS += $(GOBJECT_LIBS)
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +0200101HBSOURCES += hb-gobject-structs.cc
102nodist_HBSOURCES = hb-gobject-enums.cc
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200103HBHEADERS += hb-gobject.h
Behdad Esfahbodd75333f2011-08-19 19:59:24 +0200104BUILT_SOURCES += hb-gobject-enums.cc
105EXTRA_DIST += hb-gobject-enums.cc.tmpl
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +0200106DISTCLEANFILES += hb-gobject-enums.cc
Behdad Esfahbodd75333f2011-08-19 19:59:24 +0200107
108hb-gobject-enums.cc: hb-gobject-enums.cc.tmpl $(HBHEADERS)
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +0200109 $(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > "$@.tmp" && \
110 mv "$@.tmp" "$@" || ( $(RM) "@.tmp" && false )
Behdad Esfahbod63a792a2009-11-02 18:33:52 -0500111endif
112
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500113if HAVE_ICU
114HBCFLAGS += $(ICU_CFLAGS)
Behdad Esfahbod8fb3d1a2009-11-03 18:34:20 -0500115HBLIBS += $(ICU_LIBS)
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200116HBSOURCES += hb-icu.cc
117HBHEADERS += hb-icu.h
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500118endif
119
Behdad Esfahbod8fb3d1a2009-11-03 18:34:20 -0500120if HAVE_FREETYPE
121HBCFLAGS += $(FREETYPE_CFLAGS)
122HBLIBS += $(FREETYPE_LIBS)
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200123HBSOURCES += hb-ft.cc
124HBHEADERS += hb-ft.h
Behdad Esfahbod8fb3d1a2009-11-03 18:34:20 -0500125endif
Behdad Esfahbodca95ce42009-11-03 14:18:33 -0500126
Behdad Esfahbod6bd9b472012-04-12 14:53:53 -0400127if HAVE_GRAPHITE2
128HBCFLAGS += $(GRAPHITE2_CFLAGS)
129HBLIBS += $(GRAPHITE2_LIBS)
130HBSOURCES += hb-graphite2.cc hb-graphite2-private.hh
Behdad Esfahbod1f49cf32011-08-24 01:29:25 +0200131HBHEADERS += hb-graphite2.h
132endif
133
Behdad Esfahbod0fbb2dc2011-08-03 19:55:04 -0400134if HAVE_UNISCRIBE
135HBCFLAGS += $(UNISCRIBE_CFLAGS)
136HBLIBS += $(UNISCRIBE_LIBS)
Behdad Esfahbod6bd9b472012-04-12 14:53:53 -0400137HBSOURCES += hb-uniscribe.cc hb-uniscribe-private.hh
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200138HBHEADERS += hb-uniscribe.h
Behdad Esfahbod0fbb2dc2011-08-03 19:55:04 -0400139endif
140
Jonathan Kewaa6d8492012-07-24 15:52:32 -0400141if HAVE_CORETEXT
142HBCFLAGS += $(CORETEXT_CFLAGS)
143HBLIBS += $(CORETEXT_LIBS)
144HBSOURCES += hb-coretext.cc hb-coretext-private.hh
145HBHEADERS += hb-coretext.h
146endif
147
Behdad Esfahbod61eb60c2012-06-05 21:14:04 -0400148# Use a C linker, not C++; Don't link to libstdc++
149libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)
Behdad Esfahbodd3418812009-08-05 14:49:25 -0400150libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
Behdad Esfahbod74ef81a2011-08-24 19:16:13 +0200151nodist_libharfbuzz_la_SOURCES = $(nodist_HBSOURCES)
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500152libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
Behdad Esfahbod911bf322011-07-30 11:16:00 -0400153libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500154libharfbuzz_la_LIBADD = $(HBLIBS)
Behdad Esfahbod1f0ceeb2009-11-02 16:28:39 -0500155pkginclude_HEADERS = $(HBHEADERS)
Behdad Esfahbodc78f4482011-05-05 21:31:04 -0400156nodist_pkginclude_HEADERS = hb-version.h
Owen Taylor80a15822000-12-20 04:41:36 +0000157
Behdad Esfahbod3eb936f2010-10-05 18:36:58 -0400158
159GENERATORS = \
Behdad Esfahbod9d494332011-06-01 18:10:10 -0400160 gen-arabic-table.py \
Behdad Esfahbodb9ddbd52011-06-02 17:43:12 -0400161 gen-indic-table.py \
Behdad Esfahbod3eb936f2010-10-05 18:36:58 -0400162 $(NULL)
163
164EXTRA_DIST += $(GENERATORS)
165
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500166unicode-tables: arabic-table indic-table
167
168indic-table: gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt
169 $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-indic-table.hh.tmp && \
Behdad Esfahbodae4a2b92012-04-10 16:25:08 -0400170 mv hb-ot-shape-complex-indic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-indic-table.hh || \
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500171 ($(RM) hb-ot-shape-complex-indic-table.hh.tmp; false)
172
Behdad Esfahbodae4a2b92012-04-10 16:25:08 -0400173arabic-table: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500174 $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-arabic-table.hh.tmp && \
Behdad Esfahbodae4a2b92012-04-10 16:25:08 -0400175 mv hb-ot-shape-complex-arabic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-arabic-table.hh || \
Behdad Esfahbodcdc8b492012-03-07 12:08:33 -0500176 ($(RM) hb-ot-shape-complex-arabic-table.hh.tmp; false)
177
178
179.PHONY: unicode-tables arabic-table indic-table
180
Behdad Esfahbodd75333f2011-08-19 19:59:24 +0200181BUILT_SOURCES += hb-ot-shape-complex-indic-machine.hh
Behdad Esfahbod22989c52011-07-12 11:54:58 -0400182EXTRA_DIST += hb-ot-shape-complex-indic-machine.rl
Behdad Esfahbod867361c2011-06-17 18:35:46 -0400183hb-ot-shape-complex-indic-machine.hh: hb-ot-shape-complex-indic-machine.rl
Behdad Esfahbodf5414cf2011-08-01 16:34:16 -0400184 $(AM_V_GEN)$(top_srcdir)/missing --run ragel -e -F1 -o "$@.tmp" "$<" && \
Behdad Esfahbodd75333f2011-08-19 19:59:24 +0200185 mv "$@.tmp" "$@" || ( $(RM) "$@.tmp" && false )
Behdad Esfahbod867361c2011-06-17 18:35:46 -0400186
Behdad Esfahbodbe73a5f2012-07-19 14:59:15 -0400187noinst_PROGRAMS = main indic test-would-substitute
Behdad Esfahbod5353bf42011-02-22 18:06:19 -0500188bin_PROGRAMS =
189
Behdad Esfahbodb857b492009-05-20 05:35:14 -0400190main_SOURCES = main.cc
Behdad Esfahbodd94647e2009-11-03 16:35:10 -0500191main_CPPFLAGS = $(HBCFLAGS)
192main_LDADD = libharfbuzz.la $(HBLIBS)
Owen Taylor80a15822000-12-20 04:41:36 +0000193
Behdad Esfahbod3ed46342012-04-19 22:34:06 -0400194indic_SOURCES = indic.cc
195indic_CPPFLAGS = $(HBCFLAGS)
196indic_LDADD = libharfbuzz.la $(HBLIBS)
197
Behdad Esfahbodbe73a5f2012-07-19 14:59:15 -0400198test_would_substitute_SOURCES = test-would-substitute.cc
199test_would_substitute_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
200test_would_substitute_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
201
Behdad Esfahbod7bbe14b2011-01-09 22:29:14 -0500202dist_check_SCRIPTS = \
Behdad Esfahbodacdba3f2010-07-23 15:11:18 -0400203 check-c-linkage-decls.sh \
Behdad Esfahbodd05d13d2010-06-09 07:15:03 -0400204 check-header-guards.sh \
Behdad Esfahbod5bc18192011-05-27 15:58:54 -0400205 check-includes.sh \
Behdad Esfahbod45087892012-06-08 21:32:43 -0400206 check-internal-symbols.sh \
207 check-static-inits.sh \
Behdad Esfahbodd05d13d2010-06-09 07:15:03 -0400208 $(NULL)
Behdad Esfahbodb8a53e42009-12-20 14:56:25 +0100209
210if HAVE_ICU
211else
Behdad Esfahbod7bbe14b2011-01-09 22:29:14 -0500212dist_check_SCRIPTS += check-libstdc++.sh
Behdad Esfahbodb8a53e42009-12-20 14:56:25 +0100213endif
Behdad Esfahbod21d0fce2009-11-03 14:28:32 -0500214
Behdad Esfahbodc57d4542011-04-20 18:50:27 -0400215TESTS = $(dist_check_SCRIPTS)
Behdad Esfahbod5bc18192011-05-27 15:58:54 -0400216TESTS_ENVIRONMENT = \
217 srcdir="$(srcdir)" \
218 MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
219 HBSOURCES="$(HBSOURCES)" \
220 HBHEADERS="$(HBHEADERS)" \
221 $(NULL)
Behdad Esfahbod7bbe14b2011-01-09 22:29:14 -0500222
Behdad Esfahbod8c0ea7b2012-06-24 13:20:56 -0400223#-include $(INTROSPECTION_MAKEFILE)
224#INTROSPECTION_GIRS = hb-1.0.gir
225#INTROSPECTION_SCANNER_ARGS = -I$(srcdir) -n hb --identifier-prefix=hb_
226#INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
227#
228#if HAVE_INTROSPECTION
229#
230#hb-1.0.gir: libharfbuzz.la
231#hb_1_0_gir_INCLUDES = GObject-2.0
232#hb_1_0_gir_CFLAGS = $(INCLUDES) $(HBCFLAGS) -DHB_H -DHB_H_IN -DHB_OT_H -DHB_OT_H_IN
233#hb_1_0_gir_LIBS = libharfbuzz.la
234#hb_1_0_gir_FILES = $(HBHEADERS)
235#
236#girdir = $(datadir)/gir-1.0
237#gir_DATA = $(INTROSPECTION_GIRS)
238#
239#typelibdir = $(libdir)/girepository-1.0
240#typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
241#
242#CLEANFILES += $(gir_DATA) $(typelib_DATA)
243#endif
Behdad Esfahbodc214cff2011-08-14 15:17:16 +0200244
Behdad Esfahbod0e13bee2009-04-17 17:03:39 -0400245-include $(top_srcdir)/git.mk