Minor
[profile/ivi/org.tizen.video-player.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-private.hh \
64         hb-ot-tag.cc \
65         $(NULL)
66 HBHEADERS += \
67         hb-ot.h \
68         hb-ot-layout.h \
69         hb-ot-shape.h \
70         hb-ot-tag.h \
71         $(NULL)
72
73 MAINTAINERCLEANFILES += \
74         $(srcdir)/hb-version.h \
75         $(NULL)
76
77 if HAVE_GLIB
78 HBCFLAGS += $(GLIB_CFLAGS)
79 HBLIBS   += $(GLIB_LIBS)
80 HBSOURCES += \
81         hb-glib.cc \
82         $(NULL)
83 HBHEADERS += \
84         hb-glib.h \
85         $(NULL)
86 endif
87
88 if HAVE_ICU
89 HBCFLAGS += $(ICU_CFLAGS)
90 HBLIBS   += $(ICU_LIBS)
91 HBSOURCES += \
92         hb-icu.cc \
93         $(NULL)
94 HBHEADERS += \
95         hb-icu.h \
96         $(NULL)
97 endif
98
99 if HAVE_FREETYPE
100 HBCFLAGS += $(FREETYPE_CFLAGS)
101 HBLIBS   += $(FREETYPE_LIBS)
102 HBSOURCES += \
103         hb-ft.cc \
104         $(NULL)
105 HBHEADERS += \
106         hb-ft.h \
107         $(NULL)
108 endif
109
110 CXXLINK = $(LINK)
111 libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
112 libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
113 libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO)
114 libharfbuzz_la_LIBADD = $(HBLIBS)
115 pkginclude_HEADERS = $(HBHEADERS)
116 nodist_pkginclude_HEADERS = hb-version.h
117
118
119 GENERATORS = \
120         gen-arabic-table.py \
121         gen-indic-table.py \
122         $(NULL)
123
124 EXTRA_DIST += $(GENERATORS)
125
126 BUILT_SOURCES = hb-ot-shape-complex-indic-machine.hh
127 EXTRA_DIST += hb-ot-shape-complex-indic-machine.rl
128 hb-ot-shape-complex-indic-machine.hh: hb-ot-shape-complex-indic-machine.rl
129         $(AM_V_GEN)ragel -e -F1 -o $@ $^
130
131 noinst_PROGRAMS = main test
132 bin_PROGRAMS =
133
134 if HAVE_GLIB
135 if HAVE_FREETYPE
136 if HAVE_CAIRO_FT
137 if HAVE_CAIRO_PNG
138 hb_view_SOURCES = hb-view.cc
139 hb_view_CPPFLAGS = $(HBCFLAGS) $(CAIRO_FT_CFLAGS) $(CAIRO_PNG_CFLAGS)
140 hb_view_LDADD = libharfbuzz.la -lm $(HBLIBS) $(CAIRO_FT_LIBS) $(CAIRO_PNG_LIBS)
141 bin_PROGRAMS += hb-view
142 endif
143 endif
144 endif
145 endif
146
147 main_SOURCES = main.cc
148 main_CPPFLAGS = $(HBCFLAGS)
149 main_LDADD = libharfbuzz.la $(HBLIBS)
150
151 test_SOURCES = test.cc
152 test_CPPFLAGS = $(HBCFLAGS)
153 test_LDADD = libharfbuzz.la $(HBLIBS)
154
155 dist_check_SCRIPTS = \
156         check-c-linkage-decls.sh \
157         check-header-guards.sh \
158         check-internal-symbols.sh \
159         check-includes.sh \
160         $(NULL)
161
162 if HAVE_ICU
163 else
164 dist_check_SCRIPTS += check-libstdc++.sh
165 endif
166
167 TESTS = $(dist_check_SCRIPTS)
168 TESTS_ENVIRONMENT = \
169         srcdir="$(srcdir)" \
170         MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
171         HBSOURCES="$(HBSOURCES)" \
172         HBHEADERS="$(HBHEADERS)" \
173         $(NULL)
174
175 -include $(top_srcdir)/git.mk