8e8319f88b5d1973a750202d4586be878b269de3
[framework/uifw/harfbuzz.git] / src / Makefile.am
1 # Process this file with automake to produce Makefile.in
2
3 NULL =
4 EXTRA_DIST =
5
6 # The following warning options are useful for debugging: -Wpadded -Wcast-align
7 #AM_CXXFLAGS =
8
9 lib_LTLIBRARIES = libharfbuzz.la
10
11 HBCFLAGS =
12 HBLIBS =
13 HBSOURCES =  \
14         hb-blob.c \
15         hb-blob-private.h \
16         hb-buffer.cc \
17         hb-buffer-private.hh \
18         hb-common.c \
19         hb-font.cc \
20         hb-font-private.h \
21         hb-object-private.h \
22         hb-open-file-private.hh \
23         hb-open-type-private.hh \
24         hb-language.c \
25         hb-ot-head-private.hh \
26         hb-private.h \
27         hb-shape.cc \
28         hb-unicode.c \
29         hb-unicode-private.h \
30         $(NULL)
31 HBHEADERS = \
32         hb.h \
33         hb-blob.h \
34         hb-buffer.h \
35         hb-common.h \
36         hb-font.h \
37         hb-language.h \
38         hb-shape.h \
39         hb-unicode.h \
40         $(NULL)
41
42 HBSOURCES += \
43         hb-ot-layout.cc \
44         hb-ot-layout-common-private.hh \
45         hb-ot-layout-gdef-private.hh \
46         hb-ot-layout-gpos-private.hh \
47         hb-ot-layout-gsubgpos-private.hh \
48         hb-ot-layout-gsub-private.hh \
49         hb-ot-layout-private.hh \
50         hb-ot-map.cc \
51         hb-ot-map-private.hh \
52         hb-ot-shape.cc \
53         hb-ot-shape-complex-arabic.cc \
54         hb-ot-shape-complex-arabic-table.h \
55         hb-ot-shape-complex-private.hh \
56         hb-ot-shape-private.hh \
57         hb-ot-tag.c \
58         $(NULL)
59 HBHEADERS += \
60         hb-ot.h \
61         hb-ot-layout.h \
62         hb-ot-shape.h \
63         hb-ot-tag.h \
64         $(NULL)
65
66 if HAVE_GLIB
67 HBCFLAGS += $(GLIB_CFLAGS)
68 HBLIBS   += $(GLIB_LIBS)
69 HBSOURCES += \
70         hb-glib.c \
71         $(NULL)
72 HBHEADERS += \
73         hb-glib.h \
74         $(NULL)
75 endif
76
77 if HAVE_ICU
78 HBCFLAGS += $(ICU_CFLAGS)
79 HBLIBS   += $(ICU_LIBS)
80 HBSOURCES += \
81         hb-icu.c \
82         $(NULL)
83 HBHEADERS += \
84         hb-icu.h \
85         $(NULL)
86 endif
87
88 if HAVE_FREETYPE
89 HBCFLAGS += $(FREETYPE_CFLAGS)
90 HBLIBS   += $(FREETYPE_LIBS)
91 HBSOURCES += \
92         hb-ft.c \
93         $(NULL)
94 HBHEADERS += \
95         hb-ft.h \
96         $(NULL)
97 endif
98
99 CXXLINK = $(LINK)
100 libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
101 libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
102 libharfbuzz_la_LIBADD = $(HBLIBS)
103 pkginclude_HEADERS = $(HBHEADERS)
104
105
106 GENERATORS = \
107         gen-arabic-joining-table.py \
108         $(NULL)
109
110 EXTRA_DIST += $(GENERATORS)
111
112 noinst_PROGRAMS = main test
113 bin_PROGRAMS =
114
115 if HAVE_GLIB
116 if HAVE_FREETYPE
117 if HAVE_CAIRO_FT
118 if HAVE_CAIRO_PNG
119 hb_view_SOURCES = hb-view.c
120 hb_view_CPPFLAGS = $(HBCFLAGS) $(CAIRO_FT_CFLAGS) $(CAIRO_PNG_CFLAGS)
121 hb_view_LDADD = libharfbuzz.la $(HBLIBS) $(CAIRO_FT_LIBS) $(CAIRO_PNG_LIBS)
122 bin_PROGRAMS += hb-view
123 endif
124 endif
125 endif
126 endif
127
128 main_SOURCES = main.cc
129 main_CPPFLAGS = $(HBCFLAGS)
130 main_LDADD = libharfbuzz.la $(HBLIBS)
131
132 test_SOURCES = test.c
133 test_CPPFLAGS = $(HBCFLAGS)
134 test_LDADD = libharfbuzz.la $(HBLIBS)
135
136 dist_check_SCRIPTS = \
137         check-c-linkage-decls.sh \
138         check-header-guards.sh \
139         check-internal-symbols.sh \
140         $(NULL)
141
142 if HAVE_ICU
143 else
144 dist_check_SCRIPTS += check-libstdc++.sh
145 endif
146
147
148 -include $(top_srcdir)/git.mk