1 # Process this file with automake to produce Makefile.in
10 # The following warning options are useful for debugging: -Wpadded -Wcast-align
13 lib_LTLIBRARIES = libharfbuzz.la
18 hb-atomic-private.hh \
20 hb-buffer-private.hh \
24 hb-fallback-shape-private.hh \
25 hb-fallback-shape.cc \
29 hb-object-private.hh \
30 hb-open-file-private.hh \
31 hb-open-type-private.hh \
43 hb-unicode-private.hh \
62 hb-ot-layout-common-private.hh \
63 hb-ot-layout-gdef-table.hh \
64 hb-ot-layout-gpos-table.hh \
65 hb-ot-layout-gsubgpos-private.hh \
66 hb-ot-layout-gsub-table.hh \
67 hb-ot-layout-private.hh \
69 hb-ot-map-private.hh \
71 hb-ot-shape-complex-arabic.cc \
72 hb-ot-shape-complex-arabic-table.hh \
73 hb-ot-shape-complex-indic.cc \
74 hb-ot-shape-complex-indic-machine.hh \
75 hb-ot-shape-complex-indic-private.hh \
76 hb-ot-shape-complex-indic-table.hh \
77 hb-ot-shape-complex-misc.cc \
78 hb-ot-shape-complex-private.hh \
79 hb-ot-shape-normalize-private.hh \
80 hb-ot-shape-normalize.cc \
81 hb-ot-shape-private.hh \
91 HBCFLAGS += $(GLIB_CFLAGS)
92 HBLIBS += $(GLIB_LIBS)
93 HBSOURCES += hb-glib.cc
94 HBHEADERS += hb-glib.h
98 HBCFLAGS += $(GOBJECT_CFLAGS)
99 HBLIBS += $(GOBJECT_LIBS)
100 HBSOURCES += hb-gobject-structs.cc
101 nodist_HBSOURCES = hb-gobject-enums.cc
102 HBHEADERS += hb-gobject.h
103 BUILT_SOURCES += hb-gobject-enums.cc
104 EXTRA_DIST += hb-gobject-enums.cc.tmpl
105 DISTCLEANFILES += hb-gobject-enums.cc
107 hb-gobject-enums.cc: hb-gobject-enums.cc.tmpl $(HBHEADERS)
108 $(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > "$@.tmp" && \
109 mv "$@.tmp" "$@" || ( $(RM) "@.tmp" && false )
113 HBCFLAGS += $(ICU_CFLAGS)
114 HBLIBS += $(ICU_LIBS)
115 HBSOURCES += hb-icu.cc
116 HBHEADERS += hb-icu.h
120 HBCFLAGS += $(FREETYPE_CFLAGS)
121 HBLIBS += $(FREETYPE_LIBS)
122 HBSOURCES += hb-ft.cc
127 HBCFLAGS += $(GRAPHITE2_CFLAGS)
128 HBLIBS += $(GRAPHITE2_LIBS)
129 HBSOURCES += hb-graphite2.cc hb-graphite2-private.hh
130 HBHEADERS += hb-graphite2.h
134 HBCFLAGS += $(UNISCRIBE_CFLAGS)
135 HBLIBS += $(UNISCRIBE_LIBS)
136 HBSOURCES += hb-uniscribe.cc hb-uniscribe-private.hh
137 HBHEADERS += hb-uniscribe.h
140 # Use a C linker, not C++; Don't link to libstdc++
141 libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)
142 libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
143 nodist_libharfbuzz_la_SOURCES = $(nodist_HBSOURCES)
144 libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
145 libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
146 libharfbuzz_la_LIBADD = $(HBLIBS)
147 pkginclude_HEADERS = $(HBHEADERS)
148 nodist_pkginclude_HEADERS = hb-version.h
152 gen-arabic-table.py \
156 EXTRA_DIST += $(GENERATORS)
158 unicode-tables: arabic-table indic-table
160 indic-table: gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt
161 $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-indic-table.hh.tmp && \
162 mv hb-ot-shape-complex-indic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-indic-table.hh || \
163 ($(RM) hb-ot-shape-complex-indic-table.hh.tmp; false)
165 arabic-table: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt
166 $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-arabic-table.hh.tmp && \
167 mv hb-ot-shape-complex-arabic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-arabic-table.hh || \
168 ($(RM) hb-ot-shape-complex-arabic-table.hh.tmp; false)
171 .PHONY: unicode-tables arabic-table indic-table
173 BUILT_SOURCES += hb-ot-shape-complex-indic-machine.hh
174 EXTRA_DIST += hb-ot-shape-complex-indic-machine.rl
175 hb-ot-shape-complex-indic-machine.hh: hb-ot-shape-complex-indic-machine.rl
176 $(AM_V_GEN)$(top_srcdir)/missing --run ragel -e -F1 -o "$@.tmp" "$<" && \
177 mv "$@.tmp" "$@" || ( $(RM) "$@.tmp" && false )
179 noinst_PROGRAMS = main indic
182 main_SOURCES = main.cc
183 main_CPPFLAGS = $(HBCFLAGS)
184 main_LDADD = libharfbuzz.la $(HBLIBS)
186 indic_SOURCES = indic.cc
187 indic_CPPFLAGS = $(HBCFLAGS)
188 indic_LDADD = libharfbuzz.la $(HBLIBS)
190 dist_check_SCRIPTS = \
191 check-c-linkage-decls.sh \
192 check-header-guards.sh \
193 check-internal-symbols.sh \
199 dist_check_SCRIPTS += check-libstdc++.sh
202 TESTS = $(dist_check_SCRIPTS)
203 TESTS_ENVIRONMENT = \
205 MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
206 HBSOURCES="$(HBSOURCES)" \
207 HBHEADERS="$(HBHEADERS)" \
211 g-ir-scanner $(HBCFLAGS) $(HBHEADERS) -n hb --strip-prefix=hb --library libharfbuzz.la
214 -include $(top_srcdir)/git.mk