Imported Upstream version 1.4.6
[platform/upstream/harfbuzz.git] / test / api / Makefile.am
index d7d40af..530bf3e 100644 (file)
@@ -43,10 +43,29 @@ endif
 
 
 if HAVE_OT
+
 TEST_PROGS += \
        test-ot-tag \
        $(NULL)
-endif
+
+if HAVE_FREETYPE
+TEST_PROGS += \
+       test-ot-math \
+       $(NULL)
+test_ot_math_LDADD = $(LDADD) $(FREETYPE_LIBS)
+test_ot_math_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
+EXTRA_DIST += \
+       fonts/MathTestFontEmpty.otf \
+       fonts/MathTestFontFull.otf \
+       fonts/MathTestFontNone.otf \
+       fonts/MathTestFontPartial1.otf \
+       fonts/MathTestFontPartial2.otf \
+       fonts/MathTestFontPartial3.otf \
+       fonts/MathTestFontPartial4.otf \
+       $(NULL)
+endif # HAVE_FREETYPE
+
+endif # HAVE_OT
 
 # Tests for header compilation
 TEST_PROGS += \
@@ -73,6 +92,8 @@ TESTS_ENVIRONMENT = \
        G_DEBUG=gc-friendly \
        G_SLICE=always-malloc \
        srcdir=$(srcdir) \
+       G_TEST_SRCDIR=$(abs_srcdir) \
+       G_TEST_BUILDDIR=$(abs_builddir) \
        $(NULL)