b81241976f6f4b875930093126ecebd3eca79f35
[framework/uifw/harfbuzz.git] / src / Makefile.am
1 # Process this file with automake to produce Makefile.in
2
3 NULL =
4 EXTRA_DIST =
5 CLEANFILES =
6 DISTCLEANFILES =
7 MAINTAINERCLEANFILES =
8
9 # The following warning options are useful for debugging: -Wpadded -Wcast-align
10 #AM_CXXFLAGS =
11
12 lib_LTLIBRARIES = libharfbuzz.la
13
14 HBCFLAGS =
15 HBLIBS =
16 HBSOURCES =  \
17         hb-blob.cc \
18         hb-buffer-private.hh \
19         hb-buffer.cc \
20         hb-common.cc \
21         hb-font-private.hh \
22         hb-font.cc \
23         hb-mutex-private.hh \
24         hb-object-private.hh \
25         hb-open-file-private.hh \
26         hb-open-type-private.hh \
27         hb-ot-head-private.hh \
28         hb-ot-maxp-private.hh \
29         hb-private.hh \
30         hb-shape.cc \
31         hb-unicode-private.hh \
32         hb-unicode.cc \
33         $(NULL)
34 HBHEADERS = \
35         hb.h \
36         hb-blob.h \
37         hb-buffer.h \
38         hb-common.h \
39         hb-font.h \
40         hb-shape.h \
41         hb-unicode.h \
42         hb-version.h \
43         $(NULL)
44
45 HBSOURCES += \
46         hb-ot-layout.cc \
47         hb-ot-layout-common-private.hh \
48         hb-ot-layout-gdef-private.hh \
49         hb-ot-layout-gpos-private.hh \
50         hb-ot-layout-gsubgpos-private.hh \
51         hb-ot-layout-gsub-private.hh \
52         hb-ot-layout-private.hh \
53         hb-ot-map.cc \
54         hb-ot-map-private.hh \
55         hb-ot-shape.cc \
56         hb-ot-shape-complex-arabic.cc \
57         hb-ot-shape-complex-arabic-table.hh \
58         hb-ot-shape-complex-indic.cc \
59         hb-ot-shape-complex-indic-machine.hh \
60         hb-ot-shape-complex-indic-table.hh \
61         hb-ot-shape-complex-misc.cc \
62         hb-ot-shape-complex-private.hh \
63         hb-ot-shape-normalize.cc \
64         hb-ot-shape-private.hh \
65         hb-ot-tag.cc \
66         $(NULL)
67 HBHEADERS += \
68         hb-ot.h \
69         hb-ot-layout.h \
70         hb-ot-shape.h \
71         hb-ot-tag.h \
72         $(NULL)
73
74 MAINTAINERCLEANFILES += \
75         $(srcdir)/hb-version.h \
76         $(NULL)
77
78 if HAVE_GLIB
79 HBCFLAGS += $(GLIB_CFLAGS)
80 HBLIBS   += $(GLIB_LIBS)
81 HBSOURCES += \
82         hb-glib.cc \
83         $(NULL)
84 HBHEADERS += \
85         hb-glib.h \
86         $(NULL)
87 endif
88
89 if HAVE_ICU
90 HBCFLAGS += $(ICU_CFLAGS)
91 HBLIBS   += $(ICU_LIBS)
92 HBSOURCES += \
93         hb-icu.cc \
94         $(NULL)
95 HBHEADERS += \
96         hb-icu.h \
97         $(NULL)
98 endif
99
100 if HAVE_FREETYPE
101 HBCFLAGS += $(FREETYPE_CFLAGS)
102 HBLIBS   += $(FREETYPE_LIBS)
103 HBSOURCES += \
104         hb-ft.cc \
105         $(NULL)
106 HBHEADERS += \
107         hb-ft.h \
108         $(NULL)
109 endif
110
111 CXXLINK = $(LINK)
112 libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
113 libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
114 libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
115 libharfbuzz_la_LIBADD = $(HBLIBS)
116 pkginclude_HEADERS = $(HBHEADERS)
117 nodist_pkginclude_HEADERS = hb-version.h
118
119
120 GENERATORS = \
121         gen-arabic-table.py \
122         gen-indic-table.py \
123         $(NULL)
124
125 EXTRA_DIST += $(GENERATORS)
126
127 BUILT_SOURCES = hb-ot-shape-complex-indic-machine.hh
128 EXTRA_DIST += hb-ot-shape-complex-indic-machine.rl
129 hb-ot-shape-complex-indic-machine.hh: hb-ot-shape-complex-indic-machine.rl
130         $(AM_V_GEN)$(top_srcdir)/missing --run ragel -e -F1 -o "$@.tmp" "$<" && \
131         mv "$@.tmp" "$@"
132
133 noinst_PROGRAMS = main test
134 bin_PROGRAMS =
135
136 if HAVE_GLIB
137 if HAVE_FREETYPE
138 if HAVE_CAIRO_FT
139 if HAVE_CAIRO_PNG
140 hb_view_SOURCES = hb-view.cc
141 hb_view_CPPFLAGS = $(HBCFLAGS) $(CAIRO_FT_CFLAGS) $(CAIRO_PNG_CFLAGS)
142 hb_view_LDADD = libharfbuzz.la -lm $(HBLIBS) $(CAIRO_FT_LIBS) $(CAIRO_PNG_LIBS)
143 bin_PROGRAMS += hb-view
144 endif
145 endif
146 endif
147 endif
148
149 main_SOURCES = main.cc
150 main_CPPFLAGS = $(HBCFLAGS)
151 main_LDADD = libharfbuzz.la $(HBLIBS)
152
153 test_SOURCES = test.cc
154 test_CPPFLAGS = $(HBCFLAGS)
155 test_LDADD = libharfbuzz.la $(HBLIBS)
156
157 dist_check_SCRIPTS = \
158         check-c-linkage-decls.sh \
159         check-header-guards.sh \
160         check-internal-symbols.sh \
161         check-includes.sh \
162         $(NULL)
163
164 if HAVE_ICU
165 else
166 dist_check_SCRIPTS += check-libstdc++.sh
167 endif
168
169 TESTS = $(dist_check_SCRIPTS)
170 TESTS_ENVIRONMENT = \
171         srcdir="$(srcdir)" \
172         MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
173         HBSOURCES="$(HBSOURCES)" \
174         HBHEADERS="$(HBHEADERS)" \
175         $(NULL)
176
177 -include $(top_srcdir)/git.mk