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 =
|
2012-07-25 03:05:12 +02:00
|
|
|
SUBDIRS =
|
|
|
|
DIST_SUBDIRS =
|
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 =
|
2012-06-16 21:21:41 +02:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
|
2009-05-20 11:35:14 +02:00
|
|
|
|
2012-07-13 17:29:31 +02:00
|
|
|
# The following warning options are useful for debugging: -Wpadded
|
2009-08-13 01:45:50 +02:00
|
|
|
#AM_CXXFLAGS =
|
2000-12-20 05:41:36 +01:00
|
|
|
|
2015-01-22 03:33:50 +01:00
|
|
|
# Convenience targets:
|
2015-07-20 14:30:45 +02:00
|
|
|
lib: $(BUILT_SOURCES) libharfbuzz.la
|
2015-11-19 01:27:32 +01:00
|
|
|
fuzzing: $(BUILT_SOURCES) libharfbuzz-fuzzing.la
|
2015-01-22 03:33:50 +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 =
|
2015-08-11 12:58:49 +02:00
|
|
|
HBNONPCLIBS =
|
|
|
|
HBDEPS =
|
2009-05-20 11:35:14 +02:00
|
|
|
HBSOURCES = \
|
2012-05-18 02:30:46 +02:00
|
|
|
hb-atomic-private.hh \
|
2011-04-21 00:25:56 +02:00
|
|
|
hb-blob.cc \
|
2013-03-05 03:29:38 +01:00
|
|
|
hb-buffer-deserialize-json.hh \
|
|
|
|
hb-buffer-deserialize-text.hh \
|
2010-05-13 00:23:21 +02:00
|
|
|
hb-buffer-private.hh \
|
2013-02-27 17:06:36 +01:00
|
|
|
hb-buffer-serialize.cc \
|
2011-05-05 01:27:37 +02:00
|
|
|
hb-buffer.cc \
|
2012-05-18 04:04:45 +02:00
|
|
|
hb-cache-private.hh \
|
2011-04-21 00:50:27 +02:00
|
|
|
hb-common.cc \
|
2013-08-27 00:49:07 +02:00
|
|
|
hb-face-private.hh \
|
|
|
|
hb-face.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 \
|
2014-05-09 21:35:56 +02:00
|
|
|
hb-ot-cmap-table.hh \
|
2015-08-23 15:42:20 +02:00
|
|
|
hb-ot-glyf-table.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 \
|
2012-07-26 23:34:25 +02:00
|
|
|
hb-shape-plan-private.hh \
|
|
|
|
hb-shape-plan.cc \
|
|
|
|
hb-shaper-list.hh \
|
|
|
|
hb-shaper-impl-private.hh \
|
|
|
|
hb-shaper-private.hh \
|
2012-07-27 04:05:39 +02:00
|
|
|
hb-shaper.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-09-25 17:22:28 +02:00
|
|
|
hb-utf-private.hh \
|
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 \
|
2013-08-27 02:39:00 +02:00
|
|
|
hb-deprecated.h \
|
2013-08-27 00:49:07 +02:00
|
|
|
hb-face.h \
|
2009-11-03 21:14:40 +01:00
|
|
|
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 \
|
2012-11-16 03:39:46 +01:00
|
|
|
hb-shape-plan.h \
|
2009-11-03 21:14:40 +01:00
|
|
|
hb-unicode.h \
|
2013-02-05 05:28:22 +01:00
|
|
|
$(NULL)
|
|
|
|
HBNODISTHEADERS = \
|
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 += \
|
2014-03-24 22:26:36 +01:00
|
|
|
hb-ot-font.cc \
|
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 \
|
2013-09-09 21:43:10 +02:00
|
|
|
hb-ot-layout-jstf-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 \
|
2012-09-06 04:19:28 +02:00
|
|
|
hb-ot-shape-complex-arabic-fallback.hh \
|
2015-07-22 11:32:30 +02:00
|
|
|
hb-ot-shape-complex-arabic-private.hh \
|
2011-04-21 00:50:27 +02:00
|
|
|
hb-ot-shape-complex-arabic-table.hh \
|
2014-07-30 08:15:44 +02:00
|
|
|
hb-ot-shape-complex-arabic-win1256.hh \
|
2012-11-15 00:51:54 +01:00
|
|
|
hb-ot-shape-complex-default.cc \
|
2013-12-31 08:55:40 +01:00
|
|
|
hb-ot-shape-complex-hangul.cc \
|
2013-12-31 09:49:15 +01:00
|
|
|
hb-ot-shape-complex-hebrew.cc \
|
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 \
|
2013-02-12 18:14:10 +01:00
|
|
|
hb-ot-shape-complex-indic-table.cc \
|
2013-02-11 19:36:23 +01:00
|
|
|
hb-ot-shape-complex-myanmar.cc \
|
|
|
|
hb-ot-shape-complex-myanmar-machine.hh \
|
2012-11-15 00:51:54 +01:00
|
|
|
hb-ot-shape-complex-thai.cc \
|
2013-12-31 09:49:15 +01:00
|
|
|
hb-ot-shape-complex-tibetan.cc \
|
2015-07-20 12:32:48 +02:00
|
|
|
hb-ot-shape-complex-use.cc \
|
|
|
|
hb-ot-shape-complex-use-machine.hh \
|
|
|
|
hb-ot-shape-complex-use-private.hh \
|
|
|
|
hb-ot-shape-complex-use-table.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 \
|
2012-08-08 20:33:37 +02:00
|
|
|
hb-ot-shape-fallback-private.hh \
|
|
|
|
hb-ot-shape-fallback.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 \
|
2014-03-24 22:26:36 +01:00
|
|
|
hb-ot-font.h \
|
2009-05-20 11:35:14 +02:00
|
|
|
hb-ot-layout.h \
|
2013-12-22 14:02:11 +01:00
|
|
|
hb-ot-shape.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
|
|
|
|
2014-01-22 20:07:13 +01:00
|
|
|
if HAVE_FALLBACK
|
|
|
|
HBSOURCES += hb-fallback-shape.cc
|
|
|
|
endif
|
|
|
|
|
2012-10-02 20:55:32 +02:00
|
|
|
if HAVE_PTHREAD
|
|
|
|
HBCFLAGS += $(PTHREAD_CFLAGS)
|
2015-08-11 12:58:49 +02:00
|
|
|
HBNONPCLIBS += $(PTHREAD_LIBS)
|
2012-10-02 20:55:32 +02:00
|
|
|
endif
|
|
|
|
|
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)
|
2015-08-11 12:58:49 +02:00
|
|
|
HBDEPS += $(GLIB_DEPS)
|
2011-08-14 15:17:16 +02:00
|
|
|
HBSOURCES += hb-glib.cc
|
|
|
|
HBHEADERS += hb-glib.h
|
|
|
|
endif
|
|
|
|
|
2009-11-04 00:34:20 +01:00
|
|
|
if HAVE_FREETYPE
|
|
|
|
HBCFLAGS += $(FREETYPE_CFLAGS)
|
|
|
|
HBLIBS += $(FREETYPE_LIBS)
|
2015-08-18 16:55:09 +02:00
|
|
|
# XXX
|
|
|
|
# The following creates a recursive dependency on FreeType if FreeType is
|
|
|
|
# built with HarfBuzz support enabled. Newer pkg-config handles that just
|
|
|
|
# fine but pkg-config 0.26 as shipped in Ubuntu 14.04 crashes. Remove
|
|
|
|
# in a year or two, or otherwise work around it...
|
|
|
|
#HBDEPS += $(FREETYPE_DEPS)
|
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)
|
2015-08-11 12:58:49 +02:00
|
|
|
HBDEPS += $(GRAPHITE2_DEPS)
|
2012-07-26 23:34:25 +02:00
|
|
|
HBSOURCES += hb-graphite2.cc
|
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)
|
2015-08-11 12:58:49 +02:00
|
|
|
HBNONPCLIBS += $(UNISCRIBE_LIBS)
|
2012-07-26 23:34:25 +02:00
|
|
|
HBSOURCES += hb-uniscribe.cc
|
2011-08-14 15:17:16 +02:00
|
|
|
HBHEADERS += hb-uniscribe.h
|
2011-08-04 01:55:04 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-24 21:52:32 +02:00
|
|
|
if HAVE_CORETEXT
|
|
|
|
HBCFLAGS += $(CORETEXT_CFLAGS)
|
2015-08-11 12:58:49 +02:00
|
|
|
HBNONPCLIBS += $(CORETEXT_LIBS)
|
2012-07-26 23:34:25 +02:00
|
|
|
HBSOURCES += hb-coretext.cc
|
2012-07-24 21:52:32 +02:00
|
|
|
HBHEADERS += hb-coretext.h
|
|
|
|
endif
|
|
|
|
|
2012-10-02 22:03:18 +02:00
|
|
|
if HAVE_UCDN
|
|
|
|
SUBDIRS += hb-ucdn
|
|
|
|
HBCFLAGS += -I$(srcdir)/hb-ucdn
|
|
|
|
HBLIBS += hb-ucdn/libhb-ucdn.la
|
|
|
|
HBSOURCES += hb-ucdn.cc
|
|
|
|
endif
|
|
|
|
DIST_SUBDIRS += hb-ucdn
|
2012-07-25 01:16:56 +02:00
|
|
|
|
2012-08-08 23:16:01 +02:00
|
|
|
|
|
|
|
# Put the library together
|
|
|
|
|
2015-08-11 12:58:49 +02:00
|
|
|
HBLIBS += $(HBNONPCLIBS)
|
|
|
|
|
2012-08-08 23:16:01 +02:00
|
|
|
if OS_WIN32
|
|
|
|
export_symbols = -export-symbols harfbuzz.def
|
|
|
|
harfbuzz_def_dependency = harfbuzz.def
|
2012-09-25 02:23:00 +02:00
|
|
|
libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
|
|
|
|
else
|
2013-01-14 07:27:21 +01:00
|
|
|
# Use a C linker for GCC, not C++; Don't link to libstdc++
|
|
|
|
if HAVE_GCC
|
2012-06-06 03:14:04 +02:00
|
|
|
libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)
|
2013-01-14 07:27:21 +01:00
|
|
|
else
|
|
|
|
libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
|
|
|
|
endif
|
2012-09-25 02:23:00 +02:00
|
|
|
endif
|
|
|
|
|
2013-02-05 05:28:22 +01:00
|
|
|
libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS) $(HBNODISTHEADERS)
|
2009-11-03 22:35:10 +01:00
|
|
|
libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
|
2012-08-08 23:16:01 +02:00
|
|
|
libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) $(export_symbols) -no-undefined
|
2009-11-03 22:35:10 +01:00
|
|
|
libharfbuzz_la_LIBADD = $(HBLIBS)
|
2012-09-19 01:42:06 +02:00
|
|
|
EXTRA_libharfbuzz_la_DEPENDENCIES = $(harfbuzz_def_dependency)
|
2009-11-02 22:28:39 +01:00
|
|
|
pkginclude_HEADERS = $(HBHEADERS)
|
2013-02-05 05:28:22 +01:00
|
|
|
nodist_pkginclude_HEADERS = $(HBNODISTHEADERS)
|
2013-05-28 23:18:30 +02:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = harfbuzz.pc
|
2013-05-28 23:23:56 +02:00
|
|
|
EXTRA_DIST += harfbuzz.pc.in
|
2006-03-31 14:28:09 +02:00
|
|
|
|
2015-11-19 01:27:32 +01:00
|
|
|
FUZZING_CPPFLAGS= \
|
|
|
|
-DHB_MAX_NESTING_LEVEL=3 \
|
|
|
|
-DHB_SANITIZE_MAX_EDITS=3 \
|
|
|
|
-DHB_BUFFER_MAX_EXPANSION_FACTOR=3 \
|
|
|
|
-DHB_BUFFER_MAX_LEN_MIN=8 \
|
|
|
|
-DHB_BUFFER_MAX_LEN_DEFAULT=128 \
|
|
|
|
$(NULL)
|
|
|
|
EXTRA_LTLIBRARIES = libharfbuzz-fuzzing.la
|
|
|
|
libharfbuzz_fuzzing_la_LINK = $(libharfbuzz_la_LINK)
|
|
|
|
libharfbuzz_fuzzing_la_SOURCES = $(libharfbuzz_la_SOURCES)
|
|
|
|
libharfbuzz_fuzzing_la_CPPFLAGS = $(libharfbuzz_la_CPPFLAGS) $(FUZZING_CPPFLAGS)
|
|
|
|
libharfbuzz_fuzzing_la_LDFLAGS = $(libharfbuzz_la_LDFLAGS)
|
|
|
|
libharfbuzz_fuzzing_la_LIBADD = $(libharfbuzz_la_LIBADD)
|
|
|
|
EXTRA_libharfbuzz_fuzzing_la_DEPENDENCIES = $(EXTRA_libharfbuzz_la_DEPENDENCIES)
|
2015-11-19 08:52:34 +01:00
|
|
|
CLEANFILES += libharfbuzz-fuzzing.la
|
2015-11-19 01:27:32 +01:00
|
|
|
|
2013-05-28 21:27:40 +02:00
|
|
|
if HAVE_ICU
|
|
|
|
lib_LTLIBRARIES += libharfbuzz-icu.la
|
|
|
|
libharfbuzz_icu_la_SOURCES = hb-icu.cc
|
|
|
|
libharfbuzz_icu_la_CPPFLAGS = $(ICU_CFLAGS)
|
|
|
|
libharfbuzz_icu_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
|
|
|
|
libharfbuzz_icu_la_LIBADD = $(ICU_LIBS) libharfbuzz.la
|
|
|
|
pkginclude_HEADERS += hb-icu.h
|
2013-05-28 23:18:30 +02:00
|
|
|
pkgconfig_DATA += harfbuzz-icu.pc
|
2013-05-28 21:27:40 +02:00
|
|
|
endif
|
2013-09-04 02:00:16 +02:00
|
|
|
EXTRA_DIST += harfbuzz-icu.pc.in
|
2013-05-28 21:27:40 +02:00
|
|
|
|
2013-08-27 02:56:58 +02:00
|
|
|
if HAVE_GOBJECT
|
|
|
|
lib_LTLIBRARIES += libharfbuzz-gobject.la
|
|
|
|
libharfbuzz_gobject_la_SOURCES = hb-gobject-structs.cc
|
|
|
|
nodist_libharfbuzz_gobject_la_SOURCES = hb-gobject-enums.cc
|
|
|
|
libharfbuzz_gobject_la_CPPFLAGS = $(GOBJECT_CFLAGS)
|
|
|
|
libharfbuzz_gobject_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
|
|
|
|
libharfbuzz_gobject_la_LIBADD = $(GOBJECT_LIBS) libharfbuzz.la
|
|
|
|
pkginclude_HEADERS += hb-gobject.h hb-gobject-structs.h
|
|
|
|
nodist_pkginclude_HEADERS += hb-gobject-enums.h
|
|
|
|
pkgconfig_DATA += harfbuzz-gobject.pc
|
|
|
|
|
|
|
|
BUILT_SOURCES += \
|
|
|
|
hb-gobject-enums.cc \
|
|
|
|
hb-gobject-enums.h \
|
|
|
|
$(NULL)
|
|
|
|
DISTCLEANFILES += \
|
|
|
|
hb-gobject-enums.cc \
|
|
|
|
hb-gobject-enums.h \
|
|
|
|
$(NULL)
|
|
|
|
hb-gobject-enums.%: hb-gobject-enums.%.tmpl $(HBHEADERS)
|
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) \
|
|
|
|
--identifier-prefix hb_ --symbol-prefix hb_gobject \
|
|
|
|
--template $^ | \
|
2014-10-01 18:41:03 +02:00
|
|
|
sed 's/_t_get_type/_get_type/g; s/_T (/ (/g' > "$@" \
|
|
|
|
|| ($(RM) "$@"; false)
|
2013-08-27 02:56:58 +02:00
|
|
|
endif
|
2013-09-04 02:00:16 +02:00
|
|
|
EXTRA_DIST += \
|
|
|
|
harfbuzz-gobject.pc.in \
|
|
|
|
hb-gobject-enums.cc.tmpl \
|
|
|
|
hb-gobject-enums.h.tmpl \
|
|
|
|
$(NULL)
|
2013-08-27 02:56:58 +02:00
|
|
|
|
|
|
|
|
2013-05-28 23:18:30 +02:00
|
|
|
%.pc: %.pc.in $(top_builddir)/config.status
|
|
|
|
$(AM_V_GEN) \
|
2013-06-06 23:16:01 +02:00
|
|
|
$(SED) -e 's@%prefix%@$(prefix)@g' \
|
|
|
|
-e 's@%exec_prefix%@$(exec_prefix)@g' \
|
|
|
|
-e 's@%libdir%@$(libdir)@g' \
|
|
|
|
-e 's@%includedir%@$(includedir)@g' \
|
2015-08-11 12:58:49 +02:00
|
|
|
-e 's@%libs_private%@$(HBNONPCLIBS)@g' \
|
|
|
|
-e 's@%requires_private%@$(HBDEPS)@g' \
|
2013-06-06 23:16:01 +02:00
|
|
|
-e 's@%VERSION%@$(VERSION)@g' \
|
2014-10-01 18:41:03 +02:00
|
|
|
"$<" > "$@" \
|
|
|
|
|| ($(RM) "$@"; false)
|
2013-05-28 23:18:30 +02:00
|
|
|
|
2013-05-28 23:23:56 +02:00
|
|
|
CLEANFILES += $(pkgconfig_DATA)
|
|
|
|
|
2013-05-28 21:27:40 +02:00
|
|
|
|
2012-08-08 23:16:01 +02:00
|
|
|
CLEANFILES += harfbuzz.def
|
2013-02-05 05:28:22 +01:00
|
|
|
harfbuzz.def: $(HBHEADERS) $(HBNODISTHEADERS)
|
2012-08-08 23:16:01 +02:00
|
|
|
$(AM_V_GEN) (echo EXPORTS; \
|
|
|
|
(cat $^ || echo 'hb_ERROR ()' ) | \
|
|
|
|
$(EGREP) '^hb_.* \(' | \
|
|
|
|
sed -e 's/ (.*//' | \
|
|
|
|
LANG=C sort; \
|
2015-08-07 11:13:27 +02:00
|
|
|
echo LIBRARY libharfbuzz-0.dll; \
|
2014-10-01 18:41:03 +02:00
|
|
|
) >"$@"
|
|
|
|
@ ! grep -q hb_ERROR "$@" \
|
|
|
|
|| ($(RM) "$@"; false)
|
2012-08-08 23:16:01 +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 \
|
2015-07-20 12:32:48 +02:00
|
|
|
gen-use-table.py \
|
2010-10-06 00:36:58 +02:00
|
|
|
$(NULL)
|
|
|
|
EXTRA_DIST += $(GENERATORS)
|
|
|
|
|
2015-07-20 12:32:48 +02:00
|
|
|
unicode-tables: arabic-table indic-table use-table
|
2012-03-07 18:08:33 +01:00
|
|
|
|
2014-06-20 22:17:42 +02:00
|
|
|
arabic-table: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt
|
2014-10-01 18:41:03 +02:00
|
|
|
$(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-arabic-table.hh \
|
|
|
|
|| ($(RM) hb-ot-shape-complex-arabic-table.hh; false)
|
2012-03-07 18:08:33 +01:00
|
|
|
|
2015-07-20 12:32:48 +02:00
|
|
|
indic-table: gen-indic-table.py IndicSyllabicCategory-7.0.0.txt IndicMatraCategory-7.0.0.txt Blocks.txt
|
|
|
|
$(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-indic-table.cc \
|
|
|
|
|| ($(RM) hb-ot-shape-complex-indic-table.cc; false)
|
|
|
|
|
2015-07-20 16:56:19 +02:00
|
|
|
use-table: gen-use-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt UnicodeData.txt Blocks.txt
|
2015-07-20 12:32:48 +02:00
|
|
|
$(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-use-table.cc \
|
|
|
|
|| ($(RM) hb-ot-shape-complex-use-table.cc; false)
|
|
|
|
|
2014-03-21 22:37:27 +01:00
|
|
|
built-sources: $(BUILT_SOURCES)
|
2012-03-07 18:08:33 +01:00
|
|
|
|
2015-07-20 12:32:48 +02:00
|
|
|
.PHONY: unicode-tables arabic-table indic-table use-table built-sources
|
2012-03-07 18:08:33 +01:00
|
|
|
|
2014-10-01 20:24:07 +02:00
|
|
|
RAGEL_GENERATED = \
|
|
|
|
$(srcdir)/hb-buffer-deserialize-json.hh \
|
|
|
|
$(srcdir)/hb-buffer-deserialize-text.hh \
|
|
|
|
$(srcdir)/hb-ot-shape-complex-indic-machine.hh \
|
|
|
|
$(srcdir)/hb-ot-shape-complex-myanmar-machine.hh \
|
2015-07-20 12:32:48 +02:00
|
|
|
$(srcdir)/hb-ot-shape-complex-use-machine.hh \
|
2013-02-11 19:36:23 +01:00
|
|
|
$(NULL)
|
2014-10-01 20:24:07 +02:00
|
|
|
BUILT_SOURCES += $(RAGEL_GENERATED)
|
2013-02-11 19:36:23 +01:00
|
|
|
EXTRA_DIST += \
|
2013-02-28 00:39:37 +01:00
|
|
|
hb-buffer-deserialize-json.rl \
|
2013-02-27 23:59:28 +01:00
|
|
|
hb-buffer-deserialize-text.rl \
|
2013-02-11 19:36:23 +01:00
|
|
|
hb-ot-shape-complex-indic-machine.rl \
|
|
|
|
hb-ot-shape-complex-myanmar-machine.rl \
|
2015-07-20 12:32:48 +02:00
|
|
|
hb-ot-shape-complex-use-machine.rl \
|
2013-02-11 19:36:23 +01:00
|
|
|
$(NULL)
|
2014-10-01 20:24:07 +02:00
|
|
|
MAINTAINERCLEANFILES += $(RAGEL_GENERATED)
|
|
|
|
$(srcdir)/%.hh: $(srcdir)/%.rl
|
|
|
|
$(AM_V_GEN)(cd $(srcdir) && $(RAGEL) -e -F1 -o "$*.hh" "$*.rl") \
|
2014-10-01 18:41:03 +02:00
|
|
|
|| ($(RM) "$@"; false)
|
2011-06-18 00:35:46 +02:00
|
|
|
|
2013-02-27 19:01:02 +01:00
|
|
|
noinst_PROGRAMS = \
|
|
|
|
main \
|
|
|
|
test \
|
|
|
|
test-buffer-serialize \
|
|
|
|
test-size-params \
|
|
|
|
test-would-substitute \
|
|
|
|
$(NULL)
|
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-11-30 08:06:59 +01:00
|
|
|
test_SOURCES = test.cc
|
|
|
|
test_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
|
|
|
|
test_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
|
|
|
|
|
2012-07-19 20:59:15 +02:00
|
|
|
test_would_substitute_SOURCES = test-would-substitute.cc
|
|
|
|
test_would_substitute_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
|
|
|
|
test_would_substitute_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
|
|
|
|
|
2012-11-30 08:06:59 +01:00
|
|
|
test_size_params_SOURCES = test-size-params.cc
|
|
|
|
test_size_params_CPPFLAGS = $(HBCFLAGS)
|
|
|
|
test_size_params_LDADD = libharfbuzz.la $(HBLIBS)
|
|
|
|
|
2013-02-27 19:01:02 +01:00
|
|
|
test_buffer_serialize_SOURCES = test-buffer-serialize.cc
|
|
|
|
test_buffer_serialize_CPPFLAGS = $(HBCFLAGS)
|
|
|
|
test_buffer_serialize_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 \
|
2013-09-17 03:49:56 +02:00
|
|
|
check-defs.sh \
|
2010-06-09 13:15:03 +02:00
|
|
|
check-header-guards.sh \
|
2011-05-27 21:58:54 +02:00
|
|
|
check-includes.sh \
|
2013-05-28 21:27:40 +02:00
|
|
|
check-libstdc++.sh \
|
|
|
|
check-static-inits.sh \
|
2013-08-31 01:32:10 +02:00
|
|
|
check-symbols.sh \
|
2013-05-28 21:27:40 +02:00
|
|
|
$(NULL)
|
2012-08-29 01:08:36 +02: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)" \
|
2013-02-05 05:28:22 +01:00
|
|
|
HBHEADERS="$(HBHEADERS) $(HBNODISTHEADERS)" \
|
2011-05-27 21:58:54 +02:00
|
|
|
$(NULL)
|
2011-01-10 04:29:14 +01:00
|
|
|
|
2013-08-28 18:52:55 +02:00
|
|
|
if HAVE_INTROSPECTION
|
|
|
|
|
2013-08-23 01:03:21 +02:00
|
|
|
-include $(INTROSPECTION_MAKEFILE)
|
2015-07-26 23:39:10 +02:00
|
|
|
INTROSPECTION_GIRS = HarfBuzz-0.0.gir # What does the 0 mean anyway?!
|
2013-08-23 01:03:21 +02:00
|
|
|
INTROSPECTION_SCANNER_ARGS = -I$(srcdir) -n hb --identifier-prefix=hb_ --warn-all
|
|
|
|
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
|
2014-07-23 17:38:49 +02:00
|
|
|
INTROSPECTION_SCANNER_ENV = CC="$(CC)"
|
2013-08-23 01:03:21 +02:00
|
|
|
|
2013-08-31 00:41:33 +02:00
|
|
|
HarfBuzz-0.0.gir: libharfbuzz.la libharfbuzz-gobject.la
|
|
|
|
HarfBuzz_0_0_gir_INCLUDES = GObject-2.0
|
|
|
|
HarfBuzz_0_0_gir_CFLAGS = \
|
2013-08-23 01:03:21 +02:00
|
|
|
$(INCLUDES) \
|
|
|
|
$(HBCFLAGS) \
|
|
|
|
-DHB_H \
|
|
|
|
-DHB_H_IN \
|
|
|
|
-DHB_OT_H \
|
|
|
|
-DHB_OT_H_IN \
|
2013-08-27 03:26:24 +02:00
|
|
|
-DHB_GOBJECT_H \
|
|
|
|
-DHB_GOBJECT_H_IN \
|
|
|
|
$(NULL)
|
2013-08-31 00:41:33 +02:00
|
|
|
HarfBuzz_0_0_gir_LIBS = \
|
2013-08-27 03:26:24 +02:00
|
|
|
libharfbuzz.la \
|
|
|
|
libharfbuzz-gobject.la \
|
|
|
|
$(NULL)
|
2013-08-31 00:41:33 +02:00
|
|
|
HarfBuzz_0_0_gir_FILES = \
|
2013-08-27 03:26:24 +02:00
|
|
|
$(HBHEADERS) \
|
|
|
|
$(HBNODISTHEADERS) \
|
2013-09-05 22:00:47 +02:00
|
|
|
$(HBSOURCES) \
|
2013-09-13 02:52:20 +02:00
|
|
|
hb-gobject-enums.cc \
|
2013-08-27 03:26:24 +02:00
|
|
|
hb-gobject-enums.h \
|
2013-09-13 02:52:20 +02:00
|
|
|
hb-gobject-structs.cc \
|
2013-08-27 03:26:24 +02:00
|
|
|
hb-gobject-structs.h \
|
2013-08-23 01:03:21 +02:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
girdir = $(datadir)/gir-1.0
|
|
|
|
gir_DATA = $(INTROSPECTION_GIRS)
|
|
|
|
|
|
|
|
typelibdir = $(libdir)/girepository-1.0
|
|
|
|
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
|
|
|
|
|
|
|
CLEANFILES += $(gir_DATA) $(typelib_DATA)
|
2013-08-28 18:52:55 +02:00
|
|
|
|
2013-08-23 01:03:21 +02:00
|
|
|
endif
|
2011-08-14 15:17:16 +02:00
|
|
|
|
2009-04-17 23:03:39 +02:00
|
|
|
-include $(top_srcdir)/git.mk
|