2009-08-11 05:35:05 +02:00
|
|
|
# Process this file with automake to produce Makefile.in
|
2000-12-20 05:41:36 +01:00
|
|
|
|
2009-05-20 11:35:14 +02:00
|
|
|
NULL =
|
2011-08-19 19:59:24 +02:00
|
|
|
BUILT_SOURCES =
|
2011-01-10 04:29:14 +01:00
|
|
|
EXTRA_DIST =
|
2011-05-06 03:31:04 +02:00
|
|
|
CLEANFILES =
|
|
|
|
DISTCLEANFILES =
|
|
|
|
MAINTAINERCLEANFILES =
|
2009-05-20 11:35:14 +02:00
|
|
|
|
2009-08-10 19:57:02 +02:00
|
|
|
# The following warning options are useful for debugging: -Wpadded -Wcast-align
|
2009-08-13 01:45:50 +02:00
|
|
|
#AM_CXXFLAGS =
|
2000-12-20 05:41:36 +01:00
|
|
|
|
2009-11-02 22:28:39 +01:00
|
|
|
lib_LTLIBRARIES = libharfbuzz.la
|
2006-03-31 14:28:09 +02:00
|
|
|
|
2009-11-03 22:35:10 +01:00
|
|
|
HBCFLAGS =
|
|
|
|
HBLIBS =
|
2009-05-20 11:35:14 +02:00
|
|
|
HBSOURCES = \
|
2011-04-21 00:25:56 +02:00
|
|
|
hb-blob.cc \
|
2010-05-13 00:23:21 +02:00
|
|
|
hb-buffer-private.hh \
|
2011-05-05 01:27:37 +02:00
|
|
|
hb-buffer.cc \
|
2011-04-21 00:50:27 +02:00
|
|
|
hb-common.cc \
|
2011-08-05 04:31:05 +02:00
|
|
|
hb-fallback-shape-private.hh \
|
|
|
|
hb-fallback-shape.cc \
|
2011-04-21 00:50:27 +02:00
|
|
|
hb-font-private.hh \
|
2011-05-05 01:27:37 +02:00
|
|
|
hb-font.cc \
|
|
|
|
hb-mutex-private.hh \
|
2011-04-21 00:50:27 +02:00
|
|
|
hb-object-private.hh \
|
2009-11-03 21:14:40 +01:00
|
|
|
hb-open-file-private.hh \
|
|
|
|
hb-open-type-private.hh \
|
2011-08-17 14:19:59 +02:00
|
|
|
hb-ot-head-table.hh \
|
2011-08-24 19:16:13 +02:00
|
|
|
hb-ot-hhea-table.hh \
|
|
|
|
hb-ot-hmtx-table.hh \
|
2011-08-17 14:19:59 +02:00
|
|
|
hb-ot-maxp-table.hh \
|
|
|
|
hb-ot-name-table.hh \
|
2011-08-06 02:34:50 +02:00
|
|
|
hb-ot-tag.cc \
|
2011-04-21 00:50:27 +02:00
|
|
|
hb-private.hh \
|
2012-04-24 04:41:09 +02:00
|
|
|
hb-set-private.hh \
|
|
|
|
hb-set.cc \
|
2010-05-13 00:23:21 +02:00
|
|
|
hb-shape.cc \
|
2011-08-17 14:43:45 +02:00
|
|
|
hb-tt-font.cc \
|
2011-04-20 08:00:47 +02:00
|
|
|
hb-unicode-private.hh \
|
2011-05-05 01:27:37 +02:00
|
|
|
hb-unicode.cc \
|
2012-02-23 21:06:16 +01:00
|
|
|
hb-warning.cc \
|
2009-11-03 21:14:40 +01:00
|
|
|
$(NULL)
|
|
|
|
HBHEADERS = \
|
|
|
|
hb.h \
|
|
|
|
hb-blob.h \
|
|
|
|
hb-buffer.h \
|
|
|
|
hb-common.h \
|
|
|
|
hb-font.h \
|
2012-04-24 04:41:09 +02:00
|
|
|
hb-set.h \
|
2009-11-03 21:14:40 +01:00
|
|
|
hb-shape.h \
|
|
|
|
hb-unicode.h \
|
2011-05-06 03:31:04 +02:00
|
|
|
hb-version.h \
|
2009-11-03 21:14:40 +01:00
|
|
|
$(NULL)
|
|
|
|
|
2011-08-05 04:31:05 +02:00
|
|
|
if HAVE_OT
|
2009-11-03 21:14:40 +01:00
|
|
|
HBSOURCES += \
|
2009-05-20 11:35:14 +02:00
|
|
|
hb-ot-layout.cc \
|
2009-08-03 02:03:12 +02:00
|
|
|
hb-ot-layout-common-private.hh \
|
2011-08-17 14:19:59 +02:00
|
|
|
hb-ot-layout-gdef-table.hh \
|
|
|
|
hb-ot-layout-gpos-table.hh \
|
2009-08-03 02:03:12 +02:00
|
|
|
hb-ot-layout-gsubgpos-private.hh \
|
2011-08-17 14:19:59 +02:00
|
|
|
hb-ot-layout-gsub-table.hh \
|
2010-05-13 00:23:21 +02:00
|
|
|
hb-ot-layout-private.hh \
|
2010-10-09 02:14:57 +02:00
|
|
|
hb-ot-map.cc \
|
2010-10-09 01:18:16 +02:00
|
|
|
hb-ot-map-private.hh \
|
2010-05-13 00:23:21 +02:00
|
|
|
hb-ot-shape.cc \
|
2010-10-12 22:50:36 +02:00
|
|
|
hb-ot-shape-complex-arabic.cc \
|
2011-04-21 00:50:27 +02:00
|
|
|
hb-ot-shape-complex-arabic-table.hh \
|
2011-06-02 23:43:12 +02:00
|
|
|
hb-ot-shape-complex-indic.cc \
|
2011-06-18 00:35:46 +02:00
|
|
|
hb-ot-shape-complex-indic-machine.hh \
|
2012-04-20 04:34:06 +02:00
|
|
|
hb-ot-shape-complex-indic-private.hh \
|
2011-06-02 23:43:12 +02:00
|
|
|
hb-ot-shape-complex-indic-table.hh \
|
2011-07-08 04:35:17 +02:00
|
|
|
hb-ot-shape-complex-misc.cc \
|
2010-10-12 22:50:36 +02:00
|
|
|
hb-ot-shape-complex-private.hh \
|
2012-04-05 23:25:19 +02:00
|
|
|
hb-ot-shape-normalize-private.hh \
|
2011-07-21 06:51:18 +02:00
|
|
|
hb-ot-shape-normalize.cc \
|
2010-10-09 01:18:40 +02:00
|
|
|
hb-ot-shape-private.hh \
|
2009-05-20 11:35:14 +02:00
|
|
|
$(NULL)
|
2009-11-03 21:14:40 +01:00
|
|
|
HBHEADERS += \
|
2009-08-02 21:35:31 +02:00
|
|
|
hb-ot.h \
|
2009-05-20 11:35:14 +02:00
|
|
|
hb-ot-layout.h \
|
2009-11-05 01:45:39 +01:00
|
|
|
hb-ot-tag.h \
|
2009-05-20 11:35:14 +02:00
|
|
|
$(NULL)
|
2011-08-05 04:31:05 +02:00
|
|
|
endif
|
2011-05-06 03:31:04 +02:00
|
|
|
|
2009-11-03 00:33:52 +01:00
|
|
|
if HAVE_GLIB
|
2009-11-03 22:35:10 +01:00
|
|
|
HBCFLAGS += $(GLIB_CFLAGS)
|
2009-11-04 00:34:20 +01:00
|
|
|
HBLIBS += $(GLIB_LIBS)
|
2011-08-14 15:17:16 +02:00
|
|
|
HBSOURCES += hb-glib.cc
|
|
|
|
HBHEADERS += hb-glib.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_GOBJECT
|
|
|
|
HBCFLAGS += $(GOBJECT_CFLAGS)
|
|
|
|
HBLIBS += $(GOBJECT_LIBS)
|
2011-08-24 19:16:13 +02:00
|
|
|
HBSOURCES += hb-gobject-structs.cc
|
|
|
|
nodist_HBSOURCES = hb-gobject-enums.cc
|
2011-08-14 15:17:16 +02:00
|
|
|
HBHEADERS += hb-gobject.h
|
2011-08-19 19:59:24 +02:00
|
|
|
BUILT_SOURCES += hb-gobject-enums.cc
|
|
|
|
EXTRA_DIST += hb-gobject-enums.cc.tmpl
|
2011-08-24 19:16:13 +02:00
|
|
|
DISTCLEANFILES += hb-gobject-enums.cc
|
2011-08-19 19:59:24 +02:00
|
|
|
|
|
|
|
hb-gobject-enums.cc: hb-gobject-enums.cc.tmpl $(HBHEADERS)
|
2011-08-24 19:16:13 +02:00
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $^ > "$@.tmp" && \
|
|
|
|
mv "$@.tmp" "$@" || ( $(RM) "@.tmp" && false )
|
2009-11-03 00:33:52 +01:00
|
|
|
endif
|
|
|
|
|
2009-11-03 22:35:10 +01:00
|
|
|
if HAVE_ICU
|
|
|
|
HBCFLAGS += $(ICU_CFLAGS)
|
2009-11-04 00:34:20 +01:00
|
|
|
HBLIBS += $(ICU_LIBS)
|
2011-08-14 15:17:16 +02:00
|
|
|
HBSOURCES += hb-icu.cc
|
|
|
|
HBHEADERS += hb-icu.h
|
2009-11-03 22:35:10 +01:00
|
|
|
endif
|
|
|
|
|
2009-11-04 00:34:20 +01:00
|
|
|
if HAVE_FREETYPE
|
|
|
|
HBCFLAGS += $(FREETYPE_CFLAGS)
|
|
|
|
HBLIBS += $(FREETYPE_LIBS)
|
2011-08-14 15:17:16 +02:00
|
|
|
HBSOURCES += hb-ft.cc
|
|
|
|
HBHEADERS += hb-ft.h
|
2009-11-04 00:34:20 +01:00
|
|
|
endif
|
2009-11-03 20:18:33 +01:00
|
|
|
|
2012-04-12 20:53:53 +02:00
|
|
|
if HAVE_GRAPHITE2
|
|
|
|
HBCFLAGS += $(GRAPHITE2_CFLAGS)
|
|
|
|
HBLIBS += $(GRAPHITE2_LIBS)
|
|
|
|
HBSOURCES += hb-graphite2.cc hb-graphite2-private.hh
|
2011-08-24 01:29:25 +02:00
|
|
|
HBHEADERS += hb-graphite2.h
|
|
|
|
endif
|
|
|
|
|
2011-08-04 01:55:04 +02:00
|
|
|
if HAVE_UNISCRIBE
|
|
|
|
HBCFLAGS += $(UNISCRIBE_CFLAGS)
|
|
|
|
HBLIBS += $(UNISCRIBE_LIBS)
|
2012-04-12 20:53:53 +02:00
|
|
|
HBSOURCES += hb-uniscribe.cc hb-uniscribe-private.hh
|
2011-08-14 15:17:16 +02:00
|
|
|
HBHEADERS += hb-uniscribe.h
|
2011-08-04 01:55:04 +02:00
|
|
|
endif
|
|
|
|
|
2009-11-04 00:34:20 +01:00
|
|
|
CXXLINK = $(LINK)
|
2009-08-05 20:49:25 +02:00
|
|
|
libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
|
2011-08-24 19:16:13 +02:00
|
|
|
nodist_libharfbuzz_la_SOURCES = $(nodist_HBSOURCES)
|
2009-11-03 22:35:10 +01:00
|
|
|
libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
|
2011-07-30 17:16:00 +02:00
|
|
|
libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
|
2009-11-03 22:35:10 +01:00
|
|
|
libharfbuzz_la_LIBADD = $(HBLIBS)
|
2009-11-02 22:28:39 +01:00
|
|
|
pkginclude_HEADERS = $(HBHEADERS)
|
2011-05-06 03:31:04 +02:00
|
|
|
nodist_pkginclude_HEADERS = hb-version.h
|
2006-03-31 14:28:09 +02:00
|
|
|
|
2010-10-06 00:36:58 +02:00
|
|
|
|
|
|
|
GENERATORS = \
|
2011-06-02 00:10:10 +02:00
|
|
|
gen-arabic-table.py \
|
2011-06-02 23:43:12 +02:00
|
|
|
gen-indic-table.py \
|
2010-10-06 00:36:58 +02:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXTRA_DIST += $(GENERATORS)
|
|
|
|
|
2012-03-07 18:08:33 +01:00
|
|
|
unicode-tables: arabic-table indic-table
|
|
|
|
|
|
|
|
indic-table: gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt
|
|
|
|
$(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-indic-table.hh.tmp && \
|
2012-04-10 22:25:08 +02:00
|
|
|
mv hb-ot-shape-complex-indic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-indic-table.hh || \
|
2012-03-07 18:08:33 +01:00
|
|
|
($(RM) hb-ot-shape-complex-indic-table.hh.tmp; false)
|
|
|
|
|
2012-04-10 22:25:08 +02:00
|
|
|
arabic-table: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt
|
2012-03-07 18:08:33 +01:00
|
|
|
$(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-arabic-table.hh.tmp && \
|
2012-04-10 22:25:08 +02:00
|
|
|
mv hb-ot-shape-complex-arabic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-arabic-table.hh || \
|
2012-03-07 18:08:33 +01:00
|
|
|
($(RM) hb-ot-shape-complex-arabic-table.hh.tmp; false)
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: unicode-tables arabic-table indic-table
|
|
|
|
|
2011-08-19 19:59:24 +02:00
|
|
|
BUILT_SOURCES += hb-ot-shape-complex-indic-machine.hh
|
2011-07-12 17:54:58 +02:00
|
|
|
EXTRA_DIST += hb-ot-shape-complex-indic-machine.rl
|
2011-06-18 00:35:46 +02:00
|
|
|
hb-ot-shape-complex-indic-machine.hh: hb-ot-shape-complex-indic-machine.rl
|
2011-08-01 22:34:16 +02:00
|
|
|
$(AM_V_GEN)$(top_srcdir)/missing --run ragel -e -F1 -o "$@.tmp" "$<" && \
|
2011-08-19 19:59:24 +02:00
|
|
|
mv "$@.tmp" "$@" || ( $(RM) "$@.tmp" && false )
|
2011-06-18 00:35:46 +02:00
|
|
|
|
2012-04-20 04:34:06 +02:00
|
|
|
noinst_PROGRAMS = main indic
|
2011-02-23 00:06:19 +01:00
|
|
|
bin_PROGRAMS =
|
|
|
|
|
2009-05-20 11:35:14 +02:00
|
|
|
main_SOURCES = main.cc
|
2009-11-03 22:35:10 +01:00
|
|
|
main_CPPFLAGS = $(HBCFLAGS)
|
|
|
|
main_LDADD = libharfbuzz.la $(HBLIBS)
|
2009-11-02 20:35:51 +01:00
|
|
|
|
2012-04-20 04:34:06 +02:00
|
|
|
indic_SOURCES = indic.cc
|
|
|
|
indic_CPPFLAGS = $(HBCFLAGS)
|
|
|
|
indic_LDADD = libharfbuzz.la $(HBLIBS)
|
|
|
|
|
2011-01-10 04:29:14 +01:00
|
|
|
dist_check_SCRIPTS = \
|
2010-07-23 21:11:18 +02:00
|
|
|
check-c-linkage-decls.sh \
|
2010-06-09 13:15:03 +02:00
|
|
|
check-header-guards.sh \
|
|
|
|
check-internal-symbols.sh \
|
2011-05-27 21:58:54 +02:00
|
|
|
check-includes.sh \
|
2010-06-09 13:15:03 +02:00
|
|
|
$(NULL)
|
2009-12-20 14:56:25 +01:00
|
|
|
|
|
|
|
if HAVE_ICU
|
|
|
|
else
|
2011-01-10 04:29:14 +01:00
|
|
|
dist_check_SCRIPTS += check-libstdc++.sh
|
2009-12-20 14:56:25 +01:00
|
|
|
endif
|
2009-11-03 20:28:32 +01:00
|
|
|
|
2011-04-21 00:50:27 +02:00
|
|
|
TESTS = $(dist_check_SCRIPTS)
|
2011-05-27 21:58:54 +02:00
|
|
|
TESTS_ENVIRONMENT = \
|
|
|
|
srcdir="$(srcdir)" \
|
|
|
|
MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
|
|
|
|
HBSOURCES="$(HBSOURCES)" \
|
|
|
|
HBHEADERS="$(HBHEADERS)" \
|
|
|
|
$(NULL)
|
2011-01-10 04:29:14 +01:00
|
|
|
|
2011-08-14 15:17:16 +02:00
|
|
|
scan:
|
|
|
|
g-ir-scanner $(HBCFLAGS) $(HBHEADERS) -n hb --strip-prefix=hb --library libharfbuzz.la
|
|
|
|
|
|
|
|
|
2009-04-17 23:03:39 +02:00
|
|
|
-include $(top_srcdir)/git.mk
|