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