harfbuzz/src/Makefile.am

286 lines
6.9 KiB
Makefile
Raw Normal View History

2009-08-11 05:35:05 +02:00
# Process this file with automake to produce Makefile.in
NULL =
SUBDIRS =
DIST_SUBDIRS =
BUILT_SOURCES =
2011-01-10 04:29:14 +01:00
EXTRA_DIST =
CLEANFILES =
DISTCLEANFILES =
MAINTAINERCLEANFILES =
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
2012-07-13 17:29:31 +02:00
# The following warning options are useful for debugging: -Wpadded
#AM_CXXFLAGS =
2009-11-02 22:28:39 +01:00
lib_LTLIBRARIES = libharfbuzz.la
2009-11-03 22:35:10 +01:00
HBCFLAGS =
HBLIBS =
HBSOURCES = \
2012-05-18 02:30:46 +02:00
hb-atomic-private.hh \
hb-blob.cc \
hb-buffer-private.hh \
hb-buffer.cc \
hb-cache-private.hh \
hb-common.cc \
hb-fallback-shape.cc \
hb-font-private.hh \
hb-font.cc \
hb-mutex-private.hh \
hb-object-private.hh \
hb-open-file-private.hh \
hb-open-type-private.hh \
hb-ot-head-table.hh \
2011-08-24 19:16:13 +02:00
hb-ot-hhea-table.hh \
hb-ot-hmtx-table.hh \
hb-ot-maxp-table.hh \
hb-ot-name-table.hh \
2011-08-06 02:34:50 +02:00
hb-ot-tag.cc \
hb-private.hh \
2012-04-24 04:41:09 +02:00
hb-set-private.hh \
hb-set.cc \
hb-shape.cc \
hb-shape-plan-private.hh \
hb-shape-plan.cc \
hb-shape-plan.h \
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-08-17 14:43:45 +02:00
hb-tt-font.cc \
2011-04-20 08:00:47 +02:00
hb-unicode-private.hh \
hb-unicode.cc \
hb-warning.cc \
$(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 \
hb-shape.h \
hb-unicode.h \
hb-version.h \
$(NULL)
if HAVE_OT
HBSOURCES += \
hb-ot-layout.cc \
hb-ot-layout-common-private.hh \
hb-ot-layout-gdef-table.hh \
hb-ot-layout-gpos-table.hh \
hb-ot-layout-gsubgpos-private.hh \
hb-ot-layout-gsub-table.hh \
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 \
hb-ot-shape.cc \
hb-ot-shape-complex-arabic.cc \
hb-ot-shape-complex-arabic-table.hh \
hb-ot-shape-complex-indic.cc \
hb-ot-shape-complex-indic-machine.hh \
2012-04-20 04:34:06 +02:00
hb-ot-shape-complex-indic-private.hh \
hb-ot-shape-complex-indic-table.hh \
2011-07-08 04:35:17 +02:00
hb-ot-shape-complex-misc.cc \
hb-ot-shape-complex-private.hh \
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 \
$(NULL)
HBHEADERS += \
2009-08-02 21:35:31 +02:00
hb-ot.h \
hb-ot-layout.h \
hb-ot-tag.h \
$(NULL)
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)
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
HBHEADERS += hb-gobject.h
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
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)
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)
HBSOURCES += hb-ft.cc
HBHEADERS += hb-ft.h
2009-11-04 00:34:20 +01:00
endif
if HAVE_GRAPHITE2
HBCFLAGS += $(GRAPHITE2_CFLAGS)
HBLIBS += $(GRAPHITE2_LIBS)
HBSOURCES += hb-graphite2.cc
HBHEADERS += hb-graphite2.h
endif
if HAVE_UNISCRIBE
HBCFLAGS += $(UNISCRIBE_CFLAGS)
HBLIBS += $(UNISCRIBE_LIBS)
HBSOURCES += hb-uniscribe.cc
HBHEADERS += hb-uniscribe.h
endif
if HAVE_CORETEXT
HBCFLAGS += $(CORETEXT_CFLAGS)
HBLIBS += $(CORETEXT_LIBS)
HBSOURCES += hb-coretext.cc
HBHEADERS += hb-coretext.h
endif
if HAVE_HB_OLD
SUBDIRS += hb-old
HBCFLAGS += -I$(srcdir)/hb-old
HBLIBS += hb-old/libhb-old.la
HBSOURCES += hb-old.cc
endif
DIST_SUBDIRS += hb-old
# Put the library together
if OS_WIN32
export_symbols = -export-symbols harfbuzz.def
harfbuzz_def_dependency = harfbuzz.def
endif
2012-06-06 03:14:04 +02:00
# Use a C linker, not C++; Don't link to libstdc++
libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)
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)
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)
libharfbuzz_la_DEPENDENCIES = $(harfbuzz_def_dependency)
2009-11-02 22:28:39 +01:00
pkginclude_HEADERS = $(HBHEADERS)
nodist_pkginclude_HEADERS = hb-version.h
CLEANFILES += harfbuzz.def
harfbuzz.def: $(HBHEADERS)
$(AM_V_GEN) (echo EXPORTS; \
(cat $^ || echo 'hb_ERROR ()' ) | \
$(EGREP) '^hb_.* \(' | \
sed -e 's/ (.*//' | \
LANG=C sort; \
echo LIBRARY libharfbuzz-$(HB_VERSION_MAJOR).dll; \
) >"$@.tmp"
@ ! grep -q hb_ERROR "$@.tmp" && mv "$@.tmp" "$@" || ($(RM) "$@"; false)
GENERATORS = \
2011-06-02 00:10:10 +02:00
gen-arabic-table.py \
gen-indic-table.py \
$(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 && \
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)
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 && \
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
BUILT_SOURCES += hb-ot-shape-complex-indic-machine.hh
EXTRA_DIST += hb-ot-shape-complex-indic-machine.rl
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" "$<" && \
mv "$@.tmp" "$@" || ( $(RM) "$@.tmp" && false )
2012-07-19 20:59:15 +02:00
noinst_PROGRAMS = main indic test-would-substitute
bin_PROGRAMS =
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)
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)
2011-01-10 04:29:14 +01:00
dist_check_SCRIPTS = \
2010-07-23 21:11:18 +02:00
check-c-linkage-decls.sh \
check-header-guards.sh \
check-exported-symbols.sh \
2011-05-27 21:58:54 +02:00
check-includes.sh \
check-internal-symbols.sh \
check-static-inits.sh \
$(NULL)
if HAVE_ICU
else
2011-01-10 04:29:14 +01:00
dist_check_SCRIPTS += check-libstdc++.sh
endif
2009-11-03 20:28:32 +01: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
#-include $(INTROSPECTION_MAKEFILE)
#INTROSPECTION_GIRS = hb-1.0.gir
#INTROSPECTION_SCANNER_ARGS = -I$(srcdir) -n hb --identifier-prefix=hb_
#INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
#
#if HAVE_INTROSPECTION
#
#hb-1.0.gir: libharfbuzz.la
#hb_1_0_gir_INCLUDES = GObject-2.0
#hb_1_0_gir_CFLAGS = $(INCLUDES) $(HBCFLAGS) -DHB_H -DHB_H_IN -DHB_OT_H -DHB_OT_H_IN
#hb_1_0_gir_LIBS = libharfbuzz.la
#hb_1_0_gir_FILES = $(HBHEADERS)
#
#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)
#endif
2009-04-17 23:03:39 +02:00
-include $(top_srcdir)/git.mk