• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Process this file with automake to produce Makefile.in
2
3NULL =
4SUBDIRS =
5DIST_SUBDIRS =
6BUILT_SOURCES =
7EXTRA_DIST =
8CLEANFILES =
9DISTCLEANFILES =
10MAINTAINERCLEANFILES =
11DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
12TESTS =
13check_PROGRAMS =
14
15EXTRA_DIST += harfbuzz.cc harfbuzz-subset.cc
16EXTRA_DIST += meson.build
17EXTRA_DIST += fix_get_types.py
18
19# Convenience targets:
20lib: $(BUILT_SOURCES) libharfbuzz.la
21libs: $(BUILT_SOURCES) $(lib_LTLIBRARIES)
22tiny:
23	$(MAKE) $(AM_MAKEFLAGS) CPPFLAGS="-Os -DHB_TINY $(CPPFLAGS)" libs
24tinyz:
25	$(MAKE) $(AM_MAKEFLAGS) CPPFLAGS="-Oz -DHB_TINY $(CPPFLAGS)" libs
26
27lib_LTLIBRARIES = libharfbuzz.la
28
29include Makefile.sources
30
31HBCFLAGS =
32HBLIBS =
33HBNONPCLIBS =
34HBDEPS =
35HBSOURCES =  $(HB_BASE_sources)
36HBSOURCES += $(HB_BASE_RAGEL_GENERATED_sources)
37HBHEADERS = $(HB_BASE_headers)
38
39if HAVE_PTHREAD
40HBCFLAGS += $(PTHREAD_CFLAGS)
41HBNONPCLIBS += $(PTHREAD_LIBS)
42endif
43
44if HAVE_GLIB
45HBCFLAGS += $(GLIB_CFLAGS)
46HBLIBS   += $(GLIB_LIBS)
47HBDEPS   += $(GLIB_DEPS)
48HBSOURCES += $(HB_GLIB_sources)
49HBHEADERS += $(HB_GLIB_headers)
50HB_HAS_GLIB_DEF = define HB_HAS_GLIB 1
51else
52HB_HAS_GLIB_DEF = undef HB_HAS_GLIB
53endif
54
55if HAVE_FREETYPE
56HBCFLAGS += $(FREETYPE_CFLAGS)
57HBLIBS   += $(FREETYPE_LIBS)
58HBDEPS   += $(FREETYPE_DEPS)
59HBSOURCES += $(HB_FT_sources)
60HBHEADERS += $(HB_FT_headers)
61HB_HAS_FREETYPE_DEF = define HB_HAS_FREETYPE 1
62else
63HB_HAS_FREETYPE_DEF = undef HB_HAS_FREETYPE
64endif
65
66if HAVE_GRAPHITE2
67HBCFLAGS += $(GRAPHITE2_CFLAGS)
68HBLIBS   += $(GRAPHITE2_LIBS)
69HBDEPS   += $(GRAPHITE2_DEPS)
70HBSOURCES += $(HB_GRAPHITE2_sources)
71HBHEADERS += $(HB_GRAPHITE2_headers)
72HB_HAS_GRAPHITE_DEF = define HB_HAS_GRAPHITE 1
73else
74HB_HAS_GRAPHITE_DEF = undef HB_HAS_GRAPHITE
75endif
76
77if HAVE_UNISCRIBE
78HBCFLAGS += $(UNISCRIBE_CFLAGS)
79HBNONPCLIBS += $(UNISCRIBE_LIBS)
80HBSOURCES += $(HB_UNISCRIBE_sources)
81HBHEADERS += $(HB_UNISCRIBE_headers)
82HB_HAS_UNISCRIBE_DEF = define HB_HAS_UNISCRIBE 1
83else
84HB_HAS_UNISCRIBE_DEF = undef HB_HAS_UNISCRIBE
85endif
86
87if HAVE_DIRECTWRITE
88HBCFLAGS += $(DIRECTWRITE_CXXFLAGS)
89HBNONPCLIBS += $(DIRECTWRITE_LIBS)
90HBSOURCES += $(HB_DIRECTWRITE_sources)
91HBHEADERS += $(HB_DIRECTWRITE_headers)
92HB_HAS_DIRECTWRITE_DEF = define HB_HAS_DIRECTWRITE 1
93else
94HB_HAS_DIRECTWRITE_DEF = undef HB_HAS_DIRECTWRITE
95endif
96
97if HAVE_GDI
98HBCFLAGS += $(GDI_CXXFLAGS)
99HBNONPCLIBS += $(GDI_LIBS)
100HBSOURCES += $(HB_GDI_sources)
101HBHEADERS += $(HB_GDI_headers)
102HB_HAS_GDI_DEF = define HB_HAS_GDI 1
103else
104HB_HAS_GDI_DEF = undef HB_HAS_GDI
105endif
106
107if HAVE_CORETEXT
108HBCFLAGS += $(CORETEXT_CFLAGS)
109HBNONPCLIBS += $(CORETEXT_LIBS)
110HBSOURCES += $(HB_CORETEXT_sources)
111HBHEADERS += $(HB_CORETEXT_headers)
112HB_HAS_CORETEXT_DEF = define HB_HAS_CORETEXT 1
113else
114HB_HAS_CORETEXT_DEF = undef HB_HAS_CORETEXT
115endif
116
117
118BUILT_SOURCES += \
119	hb-version.h
120
121$(srcdir)/hb-version.h: hb-version.h.in $(top_srcdir)/configure.ac
122	$(AM_V_GEN) $(SED) \
123		-e 's/[@]HB_VERSION_MAJOR@/$(HB_VERSION_MAJOR)/' \
124		-e 's/[@]HB_VERSION_MINOR@/$(HB_VERSION_MINOR)/' \
125		-e 's/[@]HB_VERSION_MICRO@/$(HB_VERSION_MICRO)/' \
126		-e 's/[@]HB_VERSION@/$(HB_VERSION)/' \
127		"$<" > "$@" || ($(RM) "$@"; false)
128
129# Put the library together
130
131HBLIBS += $(HBNONPCLIBS)
132
133if OS_WIN32
134export_symbols = -export-symbols harfbuzz.def
135harfbuzz_def_dependency = harfbuzz.def
136export_symbols_subset = -export-symbols harfbuzz-subset.def
137harfbuzz_subset_def_dependency = harfbuzz-subset.def
138export_symbols_icu = -export-symbols harfbuzz-icu.def
139harfbuzz_icu_def_dependency = harfbuzz-icu.def
140export_symbols_gobject = -export-symbols harfbuzz-gobject.def
141harfbuzz_gobject_def_dependency = harfbuzz-gobject.def
142chosen_linker = $(CXXLINK)
143else
144if WITH_LIBSTDCXX
145chosen_linker = $(CXXLINK)
146else
147if HAVE_GCC
148# Use a C linker for GCC, not C++; Don't link to libstdc++
149chosen_linker = $(LINK)
150else
151chosen_linker = $(CXXLINK)
152endif
153endif
154endif
155
156@CODE_COVERAGE_RULES@
157
158base_link_flags = $(AM_LDFLAGS) -lm -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
159libharfbuzz_la_LINK = $(chosen_linker) $(libharfbuzz_la_LDFLAGS)
160libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
161libharfbuzz_la_CPPFLAGS = $(HBCFLAGS) $(CODE_COVERAGE_CFLAGS)
162libharfbuzz_la_LDFLAGS = $(base_link_flags) $(export_symbols) $(CODE_COVERAGE_LDFLAGS)
163libharfbuzz_la_LIBADD = $(HBLIBS)
164EXTRA_libharfbuzz_la_DEPENDENCIES = $(harfbuzz_def_dependency)
165pkginclude_HEADERS = $(HBHEADERS)
166nodist_pkginclude_HEADERS =
167pkgconfigdir = $(libdir)/pkgconfig
168pkgconfig_DATA = harfbuzz.pc
169cmakedir = $(libdir)/cmake/harfbuzz
170cmake_DATA = harfbuzz-config.cmake
171EXTRA_DIST += hb-version.h.in hb-features.h.in harfbuzz.pc.in harfbuzz-config.cmake.in
172
173lib_LTLIBRARIES += libharfbuzz-subset.la
174libharfbuzz_subset_la_LINK = $(chosen_linker) $(libharfbuzz_subset_la_LDFLAGS)
175libharfbuzz_subset_la_SOURCES = $(HB_SUBSET_sources)
176libharfbuzz_subset_la_CPPFLAGS = $(HBCFLAGS) $(CODE_COVERAGE_CFLAGS)
177libharfbuzz_subset_la_LDFLAGS = $(base_link_flags) $(export_symbols_subset) $(CODE_COVERAGE_LDFLAGS)
178libharfbuzz_subset_la_LIBADD = libharfbuzz.la
179EXTRA_libharfbuzz_subset_la_DEPENDENCIES = $(harfbuzz_subset_def_dependency)
180pkginclude_HEADERS += $(HB_SUBSET_headers)
181pkgconfig_DATA += harfbuzz-subset.pc
182EXTRA_DIST += harfbuzz-subset.pc.in
183
184harfbuzz-subset.cc: Makefile.sources
185	$(AM_V_GEN) \
186	LANG=C; \
187	for f in \
188		$(HB_BASE_sources) \
189		$(HB_SUBSET_sources) \
190		; do echo '#include "'$$f'"'; done | \
191	sort -u | \
192	grep '[.]cc"' > $(srcdir)/harfbuzz-subset.cc \
193	|| ($(RM) $(srcdir)/harfbuzz-subset.cc; false)
194BUILT_SOURCES += harfbuzz-subset.cc
195
196if HAVE_ICU
197if HAVE_ICU_BUILTIN
198HBCFLAGS += $(ICU_CFLAGS)
199HBLIBS += $(ICU_LIBS)
200HBSOURCES += $(HB_ICU_sources)
201HBHEADERS += $(HB_ICU_headers)
202HB_HAS_ICU_DEF = define HB_HAS_ICU 1
203else
204lib_LTLIBRARIES += libharfbuzz-icu.la
205libharfbuzz_icu_la_SOURCES = $(HB_ICU_sources)
206libharfbuzz_icu_la_CPPFLAGS = $(HBCFLAGS) $(ICU_CFLAGS) $(CODE_COVERAGE_CFLAGS)
207libharfbuzz_icu_la_LDFLAGS = $(base_link_flags) $(export_symbols_icu) $(CODE_COVERAGE_LDFLAGS)
208libharfbuzz_icu_la_LIBADD = $(ICU_LIBS) libharfbuzz.la
209EXTRA_libharfbuzz_icu_la_DEPENDENCIES = $(harfbuzz_icu_def_dependency)
210pkginclude_HEADERS += $(HB_ICU_headers)
211pkgconfig_DATA += harfbuzz-icu.pc
212HB_HAS_ICU_DEF = undef HB_HAS_ICU
213endif
214endif
215EXTRA_DIST += harfbuzz-icu.pc.in
216
217if HAVE_GOBJECT
218lib_LTLIBRARIES += libharfbuzz-gobject.la
219libharfbuzz_gobject_la_LINK = $(chosen_linker) $(libharfbuzz_gobject_la_LDFLAGS)
220libharfbuzz_gobject_la_SOURCES = $(HB_GOBJECT_DIST_sources)
221nodist_libharfbuzz_gobject_la_SOURCES = $(HB_GOBJECT_NODIST_sources)
222libharfbuzz_gobject_la_CPPFLAGS = $(HBCFLAGS) $(GOBJECT_CFLAGS) $(CODE_COVERAGE_CFLAGS)
223libharfbuzz_gobject_la_LDFLAGS = $(base_link_flags) $(CODE_COVERAGE_LDFLAGS)
224libharfbuzz_gobject_la_LIBADD = $(GOBJECT_LIBS) libharfbuzz.la
225EXTRA_libharfbuzz_gobject_la_DEPENDENCIES = $(harfbuzz_gobject_def_dependency)
226pkginclude_HEADERS += $(HB_GOBJECT_DIST_headers)
227nodist_pkginclude_HEADERS += $(HB_GOBJECT_NODIST_headers)
228pkgconfig_DATA += harfbuzz-gobject.pc
229
230BUILT_SOURCES += \
231	$(HB_GOBJECT_ENUM_sources) \
232	$(HB_GOBJECT_ENUM_headers) \
233	$(NULL)
234DISTCLEANFILES += \
235	$(HB_GOBJECT_ENUM_sources) \
236	$(HB_GOBJECT_ENUM_headers) \
237	$(NULL)
238hb-gobject-enums.%: hb-gobject-enums.%.tmpl $(HBHEADERS)
239	$(AM_V_GEN) PYTHONIOENCODING=UTF-8 $(GLIB_MKENUMS) \
240		--identifier-prefix hb_ --symbol-prefix hb_gobject \
241		--template $^ | \
242	sed 's/_t_get_type/_get_type/g; s/_T (/ (/g' > "$@" \
243	|| ($(RM) "$@"; false)
244endif
245EXTRA_DIST += \
246	harfbuzz-gobject.pc.in \
247	hb-gobject-enums.cc.tmpl \
248	hb-gobject-enums.h.tmpl \
249	$(NULL)
250
251
252BUILT_SOURCES += \
253	hb-features.h
254DISTCLEANFILES += \
255	hb-features.h
256
257hb-features.h: hb-features.h.in $(top_builddir)/config.status
258	$(AM_V_GEN) $(SED) \
259		-e 's/mesondefine HB_HAS_FREETYPE/$(HB_HAS_FREETYPE_DEF)/' \
260		-e 's/mesondefine HB_HAS_GDI/$(HB_HAS_GDI_DEF)/' \
261		-e 's/mesondefine HB_HAS_GDI/$(HB_HAS_GDI_DEF)/' \
262		-e 's/mesondefine HB_HAS_GRAPHITE/$(HB_HAS_GRAPHITE_DEF)/' \
263		-e 's/mesondefine HB_HAS_GLIB/$(HB_HAS_GLIB_DEF)/' \
264		-e 's/mesondefine HB_HAS_UNISCRIBE/$(HB_HAS_UNISCRIBE_DEF)/' \
265		-e 's/mesondefine HB_HAS_DIRECTWRITE/$(HB_HAS_DIRECTWRITE_DEF)/' \
266		-e 's/mesondefine HB_HAS_CORETEXT/$(HB_HAS_CORETEXT_DEF)/' \
267		-e 's/mesondefine HB_HAS_ICU/$(HB_HAS_ICU_DEF)/' \
268		"$<" > "$@" || ($(RM) "$@"; false)
269
270
271%.pc: %.pc.in $(top_builddir)/config.status
272	$(AM_V_GEN) \
273	$(SED)	-e 's@%prefix%@$(prefix)@g' \
274		-e 's@%exec_prefix%@$(exec_prefix)@g' \
275		-e 's@%libdir%@$(libdir)@g' \
276		-e 's@%includedir%@$(includedir)@g' \
277		-e 's@%libs_private%@$(HBNONPCLIBS)@g' \
278		-e 's@%requires_private%@$(HBDEPS)@g' \
279		-e 's@%VERSION%@$(VERSION)@g' \
280	"$<" > "$@" \
281	|| ($(RM) "$@"; false)
282
283CLEANFILES += $(pkgconfig_DATA)
284
285
286DEF_FILES = harfbuzz.def harfbuzz-subset.def harfbuzz-icu.def harfbuzz-deprecated-symbols.txt
287if HAVE_GOBJECT
288DEF_FILES += harfbuzz-gobject.def
289endif
290check: $(DEF_FILES) # For check-symbols.sh
291CLEANFILES += $(DEF_FILES)
292harfbuzz.def: $(top_builddir)/config.status
293harfbuzz.def: $(HBHEADERS)
294	$(AM_V_GEN) $(srcdir)/gen-def.py "$@" $^
295harfbuzz-subset.def: $(HB_SUBSET_headers)
296	$(AM_V_GEN) $(srcdir)/gen-def.py "$@" $^
297harfbuzz-icu.def: $(HB_ICU_headers)
298	$(AM_V_GEN) $(srcdir)/gen-def.py "$@" $^
299harfbuzz-gobject.def: $(HB_GOBJECT_headers)
300	$(AM_V_GEN) $(srcdir)/gen-def.py "$@" $^
301harfbuzz-deprecated-symbols.txt: $(srcdir)/hb-deprecated.h
302	$(AM_V_GEN) PLAIN_LIST=1 $(srcdir)/gen-def.py "$@" $^
303
304
305GENERATORS = \
306	gen-arabic-joining-list.py \
307	gen-arabic-table.py \
308	gen-def.py \
309	gen-emoji-table.py \
310	gen-harfbuzzcc.py \
311	gen-hb-version.py \
312	gen-indic-table.py \
313	gen-os2-unicode-ranges.py \
314	gen-ragel-artifacts.py \
315	gen-tag-table.py \
316	gen-ucd-table.py \
317	gen-use-table.py \
318	gen-vowel-constraints.py \
319	$(NULL)
320EXTRA_DIST += $(GENERATORS)
321
322built-sources: $(BUILT_SOURCES)
323
324.PHONY: built-sources
325
326RAGEL_GENERATED = \
327	$(patsubst %,$(srcdir)/%,$(HB_BASE_RAGEL_GENERATED_sources)) \
328	$(NULL)
329BUILT_SOURCES += $(RAGEL_GENERATED)
330EXTRA_DIST += \
331	$(HB_BASE_RAGEL_sources) \
332	$(NULL)
333# We decided to add ragel-generated files to git...
334#MAINTAINERCLEANFILES += $(RAGEL_GENERATED)
335$(srcdir)/%.hh: $(srcdir)/%.rl
336	$(AM_V_GEN)(cd $(srcdir) && $(RAGEL) -e -F1 -o "$*.hh" "$*.rl") \
337	|| ($(RM) "$@"; false)
338
339harfbuzz.cc: Makefile.sources
340	$(AM_V_GEN) \
341	LANG=C; \
342	for f in \
343		$(HB_BASE_sources) \
344		$(HB_GLIB_sources) \
345		$(HB_FT_sources) \
346		$(HB_GRAPHITE2_sources) \
347		$(HB_UNISCRIBE_sources) \
348		$(HB_GDI_sources) \
349		$(HB_DIRECTWRITE_sources) \
350		$(HB_CORETEXT_sources) \
351		; do echo '#include "'$$f'"'; done | \
352	sort -u | \
353	grep '[.]cc"' > $(srcdir)/harfbuzz.cc \
354	|| ($(RM) $(srcdir)/harfbuzz.cc; false)
355BUILT_SOURCES += harfbuzz.cc
356
357noinst_PROGRAMS = \
358	main \
359	test \
360	test-buffer-serialize \
361	test-ot-meta \
362	test-ot-name \
363	test-ot-glyphname \
364	test-gpos-size-params \
365	test-gsub-would-substitute \
366	test-use-table \
367	$(NULL)
368bin_PROGRAMS =
369
370main_SOURCES = main.cc
371main_CPPFLAGS = $(HBCFLAGS)
372main_LDADD = libharfbuzz.la $(HBLIBS)
373
374test_SOURCES = test.cc
375test_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
376test_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
377
378test_buffer_serialize_SOURCES = test-buffer-serialize.cc
379test_buffer_serialize_CPPFLAGS = $(HBCFLAGS)
380test_buffer_serialize_LDADD = libharfbuzz.la $(HBLIBS)
381
382test_ot_meta_SOURCES = test-ot-meta.cc
383test_ot_meta_CPPFLAGS = $(HBCFLAGS)
384test_ot_meta_LDADD = libharfbuzz.la $(HBLIBS)
385
386test_ot_name_SOURCES = test-ot-name.cc
387test_ot_name_CPPFLAGS = $(HBCFLAGS)
388test_ot_name_LDADD = libharfbuzz.la $(HBLIBS)
389
390test_ot_glyphname_SOURCES = test-ot-glyphname.cc
391test_ot_glyphname_CPPFLAGS = $(HBCFLAGS)
392test_ot_glyphname_LDADD = libharfbuzz.la $(HBLIBS)
393
394test_use_table_SOURCES = test-use-table.cc
395test_use_table_CPPFLAGS = $(HBCFLAGS)
396test_use_table_LDADD = libharfbuzz.la $(HBLIBS)
397
398test_gpos_size_params_SOURCES = test-gpos-size-params.cc
399test_gpos_size_params_CPPFLAGS = $(HBCFLAGS)
400test_gpos_size_params_LDADD = libharfbuzz.la $(HBLIBS)
401
402test_gsub_would_substitute_SOURCES = test-gsub-would-substitute.cc
403test_gsub_would_substitute_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
404test_gsub_would_substitute_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
405
406COMPILED_TESTS = \
407	test-algs \
408	test-array \
409	test-bimap \
410	test-iter \
411	test-machinery \
412	test-map \
413	test-multimap \
414	test-number \
415	test-ot-tag \
416	test-priority-queue \
417	test-set \
418	test-serialize \
419	test-unicode-ranges \
420	test-vector \
421	test-repacker \
422	test-classdef-graph \
423	$(NULL)
424COMPILED_TESTS_CPPFLAGS = $(HBCFLAGS) -DMAIN -UNDEBUG
425COMPILED_TESTS_LDADD = libharfbuzz.la $(HBLIBS)
426check_PROGRAMS += $(COMPILED_TESTS)
427TESTS += $(COMPILED_TESTS)
428
429test_algs_SOURCES = test-algs.cc hb-static.cc
430test_algs_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
431test_algs_LDADD = $(COMPILED_TESTS_LDADD)
432
433test_array_SOURCES = test-array.cc
434test_array_CPPFLAGS = $(HBCFLAGS)
435test_array_LDADD = libharfbuzz.la $(HBLIBS)
436
437test_bimap_SOURCES = test-bimap.cc hb-static.cc
438test_bimap_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
439test_bimap_LDADD = $(COMPILED_TESTS_LDADD)
440
441test_iter_SOURCES = test-iter.cc hb-static.cc
442test_iter_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
443test_iter_LDADD = $(COMPILED_TESTS_LDADD)
444
445test_machinery_SOURCES = test-machinery.cc hb-static.cc
446test_machinery_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
447test_machinery_LDADD = $(COMPILED_TESTS_LDADD)
448
449test_map_SOURCES = test-map.cc hb-static.cc
450test_map_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
451test_map_LDADD = $(COMPILED_TESTS_LDADD)
452
453test_multimap_SOURCES = test-multimap.cc hb-static.cc
454test_multimap_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
455test_multimap_LDADD = $(COMPILED_TESTS_LDADD)
456
457test_number_SOURCES = test-number.cc hb-number.cc
458test_number_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
459test_number_LDADD = $(COMPILED_TESTS_LDADD)
460
461test_ot_tag_SOURCES = hb-ot-tag.cc
462test_ot_tag_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
463test_ot_tag_LDADD = $(COMPILED_TESTS_LDADD)
464
465test_priority_queue_SOURCES = test-priority-queue.cc hb-static.cc
466test_priority_queue_CPPFLAGS = $(HBCFLAGS)
467test_priority_queue_LDADD = libharfbuzz.la $(HBLIBS)
468
469test_repacker_SOURCES = test-repacker.cc hb-static.cc graph/gsubgpos-context.cc
470test_repacker_CPPFLAGS = $(HBCFLAGS)
471test_repacker_LDADD = libharfbuzz.la libharfbuzz-subset.la $(HBLIBS)
472
473test_classdef_graph_SOURCES = graph/test-classdef-graph.cc hb-static.cc graph/gsubgpos-context.cc
474test_classdef_graph_CPPFLAGS = $(HBCFLAGS)
475test_classdef_graph_LDADD = libharfbuzz.la libharfbuzz-subset.la $(HBLIBS)
476
477test_set_SOURCES = test-set.cc hb-static.cc
478test_set_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
479test_set_LDADD = $(COMPILED_TESTS_LDADD)
480
481test_serialize_SOURCES = test-serialize.cc hb-static.cc
482test_serialize_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
483test_serialize_LDADD = $(COMPILED_TESTS_LDADD)
484
485test_unicode_ranges_SOURCES = test-unicode-ranges.cc
486test_unicode_ranges_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
487test_unicode_ranges_LDADD = $(COMPILED_TESTS_LDADD)
488
489test_vector_SOURCES = test-vector.cc hb-static.cc
490test_vector_CPPFLAGS = $(COMPILED_TESTS_CPPFLAGS)
491test_vector_LDADD = $(COMPILED_TESTS_LDADD)
492
493dist_check_SCRIPTS = \
494	check-c-linkage-decls.py \
495	check-externs.py \
496	check-header-guards.py \
497	check-includes.py \
498	check-static-inits.py \
499	check-symbols.py \
500	$(NULL)
501TESTS += $(dist_check_SCRIPTS)
502
503if !WITH_LIBSTDCXX
504dist_check_SCRIPTS += \
505	check-libstdc++.py \
506	$(NULL)
507endif
508
509TESTS_ENVIRONMENT = \
510	srcdir="$(srcdir)" \
511	base_srcdir="$(srcdir)" \
512	builddir="$(builddir)" \
513	MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
514	HBSOURCES="$(HBSOURCES)" \
515	HBHEADERS="$(HBHEADERS)" \
516	LDD="$(LDD)" \
517	NM="$(NM)" \
518	OBJDUMP="$(OBJDUMP)" \
519	OTOOL="$(OTOOL)" \
520	$(NULL)
521
522if HAVE_INTROSPECTION
523
524-include $(INTROSPECTION_MAKEFILE)
525INTROSPECTION_GIRS = HarfBuzz-0.0.gir # What does the 0 mean anyway?!
526INTROSPECTION_SCANNER_ARGS = \
527	-I$(srcdir) \
528	--warn-all --verbose \
529	--namespace=HarfBuzz \
530	--nsversion=0.0 \
531	--symbol-prefix=hb \
532	--symbol-prefix=hb_gobject \
533	--identifier-prefix=hb_ \
534	--pkg-export=harfbuzz-gobject \
535	--c-include=hb-gobject.h
536INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
537INTROSPECTION_SCANNER_ENV = CC="$(CC)"
538
539HarfBuzz-0.0.gir: libharfbuzz.la libharfbuzz-gobject.la
540HarfBuzz_0_0_gir_INCLUDES = GObject-2.0 freetype2-2.0
541HarfBuzz_0_0_gir_CFLAGS = \
542	$(INCLUDES) \
543	$(HBCFLAGS) \
544	-DHB_NO_SINGLE_HEADER_ERROR \
545	-DHAVE_GOBJECT \
546	-DHB_EXTERN= \
547	$(NULL)
548HarfBuzz_0_0_gir_LIBS = \
549	libharfbuzz.la \
550	libharfbuzz-gobject.la \
551	$(NULL)
552HarfBuzz_0_0_gir_FILES = \
553	$(HBHEADERS) \
554	$(HBSOURCES) \
555	$(HB_GOBJECT_sources) \
556	$(HB_GOBJECT_headers) \
557	$(NULL)
558
559girdir = $(datadir)/gir-1.0
560gir_DATA = $(INTROSPECTION_GIRS)
561
562typelibdir = $(libdir)/girepository-1.0
563typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
564
565CLEANFILES += $(gir_DATA) $(typelib_DATA)
566
567endif
568
569-include $(top_srcdir)/git.mk
570