Add initial hb-view tool
[framework/uifw/harfbuzz.git] / src / Makefile.am
index a542ee7..8e8319f 100644 (file)
@@ -1,7 +1,7 @@
 # Process this file with automake to produce Makefile.in
 
 NULL =
-EXTRA_DIST = 
+EXTRA_DIST =
 
 # The following warning options are useful for debugging: -Wpadded -Wcast-align
 #AM_CXXFLAGS =
@@ -51,6 +51,7 @@ HBSOURCES += \
        hb-ot-map-private.hh \
        hb-ot-shape.cc \
        hb-ot-shape-complex-arabic.cc \
+       hb-ot-shape-complex-arabic-table.h \
        hb-ot-shape-complex-private.hh \
        hb-ot-shape-private.hh \
        hb-ot-tag.c \
@@ -95,17 +96,6 @@ HBHEADERS += \
        $(NULL)
 endif
 
-if HAVE_GRAPHITE
-HBCFLAGS += $(GRAPHITE_CFLAGS)
-HBLIBS   += $(GRAPHITE_LIBS)
-HBSOURCES += \
-       hb-graphite.cc \
-       $(NULL)
-HBHEADERS += \
-       hb-graphite.h \
-       $(NULL)
-endif
-
 CXXLINK = $(LINK)
 libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
 libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
@@ -120,6 +110,20 @@ GENERATORS = \
 EXTRA_DIST += $(GENERATORS)
 
 noinst_PROGRAMS = main test
+bin_PROGRAMS =
+
+if HAVE_GLIB
+if HAVE_FREETYPE
+if HAVE_CAIRO_FT
+if HAVE_CAIRO_PNG
+hb_view_SOURCES = hb-view.c
+hb_view_CPPFLAGS = $(HBCFLAGS) $(CAIRO_FT_CFLAGS) $(CAIRO_PNG_CFLAGS)
+hb_view_LDADD = libharfbuzz.la $(HBLIBS) $(CAIRO_FT_LIBS) $(CAIRO_PNG_LIBS)
+bin_PROGRAMS += hb-view
+endif
+endif
+endif
+endif
 
 main_SOURCES = main.cc
 main_CPPFLAGS = $(HBCFLAGS)
@@ -129,7 +133,7 @@ test_SOURCES = test.c
 test_CPPFLAGS = $(HBCFLAGS)
 test_LDADD = libharfbuzz.la $(HBLIBS)
 
-TESTS = \
+dist_check_SCRIPTS = \
        check-c-linkage-decls.sh \
        check-header-guards.sh \
        check-internal-symbols.sh \
@@ -137,10 +141,8 @@ TESTS = \
 
 if HAVE_ICU
 else
-if HAVE_GRAPHITE
-else
-TESTS += check-libstdc++.sh
-endif
+dist_check_SCRIPTS += check-libstdc++.sh
 endif
 
+
 -include $(top_srcdir)/git.mk