Simplify unions
[framework/uifw/harfbuzz.git] / src / Makefile.am
1 # Process this file with automake to produce Makefile.in
2
3 NULL =
4
5 # The following warning options are useful for debugging: -Wpadded -Wcast-align
6 #AM_CXXFLAGS =
7
8 lib_LTLIBRARIES = libharfbuzz.la
9
10 HBCFLAGS =
11 HBLIBS =
12 HBSOURCES =  \
13         hb-blob.c \
14         hb-blob-private.h \
15         hb-buffer.c \
16         hb-buffer-private.h \
17         hb-font.cc \
18         hb-font-private.h \
19         hb-object-private.h \
20         hb-open-file-private.hh \
21         hb-open-type-private.hh \
22         hb-language.c \
23         hb-private.h \
24         hb-shape.c \
25         hb-unicode.c \
26         hb-unicode-private.h \
27         $(NULL)
28 HBHEADERS = \
29         hb.h \
30         hb-blob.h \
31         hb-buffer.h \
32         hb-common.h \
33         hb-font.h \
34         hb-language.h \
35         hb-shape.h \
36         hb-unicode.h \
37         $(NULL)
38
39 HBSOURCES += \
40         hb-ot-layout.cc \
41         hb-ot-layout-common-private.hh \
42         hb-ot-layout-gdef-private.hh \
43         hb-ot-layout-gpos-private.hh \
44         hb-ot-layout-gsubgpos-private.hh \
45         hb-ot-layout-gsub-private.hh \
46         hb-ot-layout-private.h \
47         hb-ot-shape.c \
48         hb-ot-shape-private.h \
49         hb-ot-tag.c \
50         $(NULL)
51 HBHEADERS += \
52         hb-ot.h \
53         hb-ot-layout.h \
54         hb-ot-tag.h \
55         $(NULL)
56
57 if HAVE_GLIB
58 HBCFLAGS += $(GLIB_CFLAGS)
59 HBLIBS   += $(GLIB_LIBS)
60 HBSOURCES += \
61         hb-glib.c \
62         $(NULL)
63 HBHEADERS += \
64         hb-glib.h \
65         $(NULL)
66 endif
67
68 if HAVE_ICU
69 HBCFLAGS += $(ICU_CFLAGS)
70 HBLIBS   += $(ICU_LIBS)
71 HBSOURCES += \
72         hb-icu.c \
73         $(NULL)
74 HBHEADERS += \
75         hb-icu.h \
76         $(NULL)
77 endif
78
79 if HAVE_FREETYPE
80 HBCFLAGS += $(FREETYPE_CFLAGS)
81 HBLIBS   += $(FREETYPE_LIBS)
82 HBSOURCES += \
83         hb-ft.c \
84         $(NULL)
85 HBHEADERS += \
86         hb-ft.h \
87         $(NULL)
88 endif
89
90 CXXLINK = $(LINK)
91 libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
92 libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
93 libharfbuzz_la_LIBADD = $(HBLIBS)
94 pkginclude_HEADERS = $(HBHEADERS)
95
96 noinst_PROGRAMS = main
97
98 main_SOURCES = main.cc
99 main_CPPFLAGS = $(HBCFLAGS)
100 main_LDADD = libharfbuzz.la $(HBLIBS)
101
102 TESTS =
103
104 if HAVE_ICU
105 else
106 TESTS += check-libstdc++.sh
107 endif
108
109 -include $(top_srcdir)/git.mk