1 ## Proxy Makefile.am to build cairo for TeX Live.
3 ## Copyright (C) 2016 Karl Berry <tex-live@tug.org>
4 ## Copyright (C) 2013-2015 Peter Breitenlohner <tex-live@tug.org>
5 ## Copyright (C) 2012 Taco Hoekwater <taco@metatex.org>
7 ## This file is free software; the copyright holder
8 ## gives unlimited permission to copy and/or distribute it,
9 ## with or without modifications, as long as this notice is preserved.
11 ## We want to re-distribute the whole cairo source tree.
13 EXTRA_DIST = $(CAIRO_TREE)
15 ## Changes applied to the original source tree
17 EXTRA_DIST += cairo-PATCHES
19 CAIRO_SRC = $(CAIRO_TREE)/src
21 # Files not to be distributed
22 include $(srcdir)/../../am/dist_hook.am
23 NEVER_NAMES += $(NEVER_NAMES_SUB)
27 AM_CPPFLAGS = -I$(top_srcdir)/$(CAIRO_SRC) $(PIXMAN_INCLUDES) -DCAIRO_NO_MUTEX
28 AM_CFLAGS = $(CAIRO_ATTRIBUTE_FLAG) $(VISIBILITY_CFLAGS) # $(WARNING_CFLAGS)
30 noinst_LIBRARIES = libcairo.a
32 libcairo_a_SOURCES = \
33 @CAIRO_TREE@/src/cairo-analysis-surface.c \
34 @CAIRO_TREE@/src/cairo-arc.c \
35 @CAIRO_TREE@/src/cairo-array.c \
36 @CAIRO_TREE@/src/cairo-atomic.c \
37 @CAIRO_TREE@/src/cairo-base64-stream.c \
38 @CAIRO_TREE@/src/cairo-base85-stream.c \
39 @CAIRO_TREE@/src/cairo-bentley-ottmann.c \
40 @CAIRO_TREE@/src/cairo-bentley-ottmann-rectangular.c \
41 @CAIRO_TREE@/src/cairo-bentley-ottmann-rectilinear.c \
42 @CAIRO_TREE@/src/cairo-botor-scan-converter.c \
43 @CAIRO_TREE@/src/cairo-boxes.c \
44 @CAIRO_TREE@/src/cairo-boxes-intersect.c \
45 @CAIRO_TREE@/src/cairo.c \
46 @CAIRO_TREE@/src/cairo-cache.c \
47 @CAIRO_TREE@/src/cairo-clip.c \
48 @CAIRO_TREE@/src/cairo-clip-boxes.c \
49 @CAIRO_TREE@/src/cairo-clip-polygon.c \
50 @CAIRO_TREE@/src/cairo-clip-region.c \
51 @CAIRO_TREE@/src/cairo-clip-surface.c \
52 @CAIRO_TREE@/src/cairo-color.c \
53 @CAIRO_TREE@/src/cairo-composite-rectangles.c \
54 @CAIRO_TREE@/src/cairo-compositor.c \
55 @CAIRO_TREE@/src/cairo-contour.c \
56 @CAIRO_TREE@/src/cairo-damage.c \
57 @CAIRO_TREE@/src/cairo-debug.c \
58 @CAIRO_TREE@/src/cairo-default-context.c \
59 @CAIRO_TREE@/src/cairo-device.c \
60 @CAIRO_TREE@/src/cairo-error.c \
61 @CAIRO_TREE@/src/cairo-fallback-compositor.c \
62 @CAIRO_TREE@/src/cairo-fixed.c \
63 @CAIRO_TREE@/src/cairo-font-face.c \
64 @CAIRO_TREE@/src/cairo-font-face-twin.c \
65 @CAIRO_TREE@/src/cairo-font-face-twin-data.c \
66 @CAIRO_TREE@/src/cairo-font-options.c \
67 @CAIRO_TREE@/src/cairo-freelist.c \
68 @CAIRO_TREE@/src/cairo-freed-pool.c \
69 @CAIRO_TREE@/src/cairo-gstate.c \
70 @CAIRO_TREE@/src/cairo-hash.c \
71 @CAIRO_TREE@/src/cairo-hull.c \
72 @CAIRO_TREE@/src/cairo-image-compositor.c \
73 @CAIRO_TREE@/src/cairo-image-info.c \
74 @CAIRO_TREE@/src/cairo-image-source.c \
75 @CAIRO_TREE@/src/cairo-image-surface.c \
76 @CAIRO_TREE@/src/cairo-line.c \
77 @CAIRO_TREE@/src/cairo-lzw.c \
78 @CAIRO_TREE@/src/cairo-matrix.c \
79 @CAIRO_TREE@/src/cairo-mask-compositor.c \
80 @CAIRO_TREE@/src/cairo-mesh-pattern-rasterizer.c \
81 @CAIRO_TREE@/src/cairo-mempool.c \
82 @CAIRO_TREE@/src/cairo-misc.c \
83 @CAIRO_TREE@/src/cairo-mono-scan-converter.c \
84 @CAIRO_TREE@/src/cairo-mutex.c \
85 @CAIRO_TREE@/src/cairo-no-compositor.c \
86 @CAIRO_TREE@/src/cairo-observer.c \
87 @CAIRO_TREE@/src/cairo-output-stream.c \
88 @CAIRO_TREE@/src/cairo-paginated-surface.c \
89 @CAIRO_TREE@/src/cairo-path-bounds.c \
90 @CAIRO_TREE@/src/cairo-path.c \
91 @CAIRO_TREE@/src/cairo-path-fill.c \
92 @CAIRO_TREE@/src/cairo-path-fixed.c \
93 @CAIRO_TREE@/src/cairo-path-in-fill.c \
94 @CAIRO_TREE@/src/cairo-path-stroke.c \
95 @CAIRO_TREE@/src/cairo-path-stroke-boxes.c \
96 @CAIRO_TREE@/src/cairo-path-stroke-polygon.c \
97 @CAIRO_TREE@/src/cairo-path-stroke-traps.c \
98 @CAIRO_TREE@/src/cairo-path-stroke-tristrip.c \
99 @CAIRO_TREE@/src/cairo-pattern.c \
100 @CAIRO_TREE@/src/cairo-pen.c \
101 @CAIRO_TREE@/src/cairo-polygon.c \
102 @CAIRO_TREE@/src/cairo-polygon-intersect.c \
103 @CAIRO_TREE@/src/cairo-polygon-reduce.c \
104 @CAIRO_TREE@/src/cairo-raster-source-pattern.c \
105 @CAIRO_TREE@/src/cairo-recording-surface.c \
106 @CAIRO_TREE@/src/cairo-rectangle.c \
107 @CAIRO_TREE@/src/cairo-rectangular-scan-converter.c \
108 @CAIRO_TREE@/src/cairo-region.c \
109 @CAIRO_TREE@/src/cairo-rtree.c \
110 @CAIRO_TREE@/src/cairo-scaled-font.c \
111 @CAIRO_TREE@/src/cairo-shape-mask-compositor.c \
112 @CAIRO_TREE@/src/cairo-slope.c \
113 @CAIRO_TREE@/src/cairo-spans.c \
114 @CAIRO_TREE@/src/cairo-spans-compositor.c \
115 @CAIRO_TREE@/src/cairo-spline.c \
116 @CAIRO_TREE@/src/cairo-stroke-dash.c \
117 @CAIRO_TREE@/src/cairo-stroke-style.c \
118 @CAIRO_TREE@/src/cairo-surface.c \
119 @CAIRO_TREE@/src/cairo-surface-clipper.c \
120 @CAIRO_TREE@/src/cairo-surface-fallback.c \
121 @CAIRO_TREE@/src/cairo-surface-observer.c \
122 @CAIRO_TREE@/src/cairo-surface-offset.c \
123 @CAIRO_TREE@/src/cairo-surface-snapshot.c \
124 @CAIRO_TREE@/src/cairo-surface-subsurface.c \
125 @CAIRO_TREE@/src/cairo-surface-wrapper.c \
126 @CAIRO_TREE@/src/cairo-time.c \
127 @CAIRO_TREE@/src/cairo-tor-scan-converter.c \
128 @CAIRO_TREE@/src/cairo-tor22-scan-converter.c \
129 @CAIRO_TREE@/src/cairo-clip-tor-scan-converter.c \
130 @CAIRO_TREE@/src/cairo-toy-font-face.c \
131 @CAIRO_TREE@/src/cairo-traps.c \
132 @CAIRO_TREE@/src/cairo-tristrip.c \
133 @CAIRO_TREE@/src/cairo-traps-compositor.c \
134 @CAIRO_TREE@/src/cairo-unicode.c \
135 @CAIRO_TREE@/src/cairo-user-font.c \
136 @CAIRO_TREE@/src/cairo-version.c \
137 @CAIRO_TREE@/src/cairo-wideint.c
139 if CAIRO_HAS_XLIB_SURFACE
140 libcairo_a_SOURCES += \
141 @CAIRO_TREE@/src/cairo-xlib-display.c \
142 @CAIRO_TREE@/src/cairo-xlib-core-compositor.c \
143 @CAIRO_TREE@/src/cairo-xlib-fallback-compositor.c \
144 @CAIRO_TREE@/src/cairo-xlib-render-compositor.c \
145 @CAIRO_TREE@/src/cairo-xlib-screen.c \
146 @CAIRO_TREE@/src/cairo-xlib-source.c \
147 @CAIRO_TREE@/src/cairo-xlib-surface.c \
148 @CAIRO_TREE@/src/cairo-xlib-surface-shm.c \
149 @CAIRO_TREE@/src/cairo-xlib-visual.c \
150 @CAIRO_TREE@/src/cairo-xlib-xcb-surface.c
151 endif CAIRO_HAS_XLIB_SURFACE
153 if CAIRO_HAS_XLIB_XRENDER_SURFACE
154 libcairo_a_SOURCES += \
155 @CAIRO_TREE@/src/cairo-xcb-connection.c \
156 @CAIRO_TREE@/src/cairo-xcb-connection-core.c \
157 @CAIRO_TREE@/src/cairo-xcb-connection-render.c \
158 @CAIRO_TREE@/src/cairo-xcb-connection-shm.c \
159 @CAIRO_TREE@/src/cairo-xcb-resources.c \
160 @CAIRO_TREE@/src/cairo-xcb-screen.c \
161 @CAIRO_TREE@/src/cairo-xcb-shm.c \
162 @CAIRO_TREE@/src/cairo-xcb-surface.c \
163 @CAIRO_TREE@/src/cairo-xcb-surface-core.c \
164 @CAIRO_TREE@/src/cairo-xcb-surface-render.c
165 endif CAIRO_HAS_XLIB_XRENDER_SURFACE
167 if CAIRO_HAS_XCB_SURFACE
168 libcairo_a_SOURCES += \
169 @CAIRO_TREE@/src/cairo-xcb-connection.c \
170 @CAIRO_TREE@/src/cairo-xcb-connection-core.c \
171 @CAIRO_TREE@/src/cairo-xcb-connection-render.c \
172 @CAIRO_TREE@/src/cairo-xcb-connection-shm.c \
173 @CAIRO_TREE@/src/cairo-xcb-screen.c \
174 @CAIRO_TREE@/src/cairo-xcb-shm.c \
175 @CAIRO_TREE@/src/cairo-xcb-surface.c \
176 @CAIRO_TREE@/src/cairo-xcb-surface-core.c \
177 @CAIRO_TREE@/src/cairo-xcb-surface-render.c
178 endif CAIRO_HAS_XCB_SURFACE
180 if CAIRO_HAS_QUARTZ_SURFACE
181 libcairo_a_SOURCES += @CAIRO_TREE@/src/cairo-quartz-surface.c
182 endif CAIRO_HAS_QUARTZ_SURFACE
184 if CAIRO_HAS_QUARTZ_FONT
185 libcairo_a_SOURCES += @CAIRO_TREE@/src/cairo-quartz-font.c
186 endif CAIRO_HAS_QUARTZ_FONT
188 if CAIRO_HAS_QUARTZ_IMAGE_SURFACE
189 libcairo_a_SOURCES += @CAIRO_TREE@/src/cairo-quartz-image-surface.c
190 endif CAIRO_HAS_QUARTZ_IMAGE_SURFACE
192 if CAIRO_HAS_OS2_SURFACE
193 libcairo_a_SOURCES += @CAIRO_TREE@/src/cairo-os2-surface.c
194 endif CAIRO_HAS_OS2_SURFACE
196 if CAIRO_HAS_PNG_FUNCTIONS
197 libcairo_a_SOURCES += @CAIRO_TREE@/src/cairo-png.c
198 endif CAIRO_HAS_PNG_FUNCTIONS
200 if CAIRO_HAS_GL_SURFACE
201 libcairo_a_SOURCES += \
202 @CAIRO_TREE@/src/cairo-gl-composite.c \
203 @CAIRO_TREE@/src/cairo-gl-device.c \
204 @CAIRO_TREE@/src/cairo-gl-dispatch.c \
205 @CAIRO_TREE@/src/cairo-gl-glyphs.c \
206 @CAIRO_TREE@/src/cairo-gl-gradient.c \
207 @CAIRO_TREE@/src/cairo-gl-info.c \
208 @CAIRO_TREE@/src/cairo-gl-operand.c \
209 @CAIRO_TREE@/src/cairo-gl-shaders.c \
210 @CAIRO_TREE@/src/cairo-gl-msaa-compositor.c \
211 @CAIRO_TREE@/src/cairo-gl-spans-compositor.c \
212 @CAIRO_TREE@/src/cairo-gl-traps-compositor.c \
213 @CAIRO_TREE@/src/cairo-gl-source.c \
214 @CAIRO_TREE@/src/cairo-gl-surface.c
215 endif CAIRO_HAS_GL_SURFACE
217 if CAIRO_HAS_SVG_SURFACE
218 libcairo_a_SOURCES += @CAIRO_TREE@/src/cairo-svg-surface.c
219 endif CAIRO_HAS_SVG_SURFACE
221 $(libcairo_a_OBJECTS): config.force
224 check_PROGRAMS = cairotst
225 dist_check_SCRIPTS = cairo.test
228 cairo.log: cairotst$(EXEEXT)
230 cairotst_SOURCES = cairotst.c
232 cairotst_CPPFLAGS = $(PIXMAN_INCLUDES) -Icairo
234 cairotst_DEPENDENCIES = $(PIXMAN_DEPEND)
236 LDADD = libcairo.a $(PIXMAN_LIBS)
242 reconfig_prereq = $(PIXMAN_DEPEND)
245 include $(srcdir)/../../am/reconfig.am
252 include $(srcdir)/../../am/rebuild.am