diff options
Diffstat (limited to 'Build/source/libs/cairo/Makefile.am')
-rw-r--r-- | Build/source/libs/cairo/Makefile.am | 260 |
1 files changed, 218 insertions, 42 deletions
diff --git a/Build/source/libs/cairo/Makefile.am b/Build/source/libs/cairo/Makefile.am index 1cafdbaf9d1..9258bf01761 100644 --- a/Build/source/libs/cairo/Makefile.am +++ b/Build/source/libs/cairo/Makefile.am @@ -1,12 +1,13 @@ -## Wrapper Makefile.am to build cairo for TeX Live. +## Proxy Makefile.am to build cairo for TeX Live. ## ## Copyright (C) 2012 Taco Hoekwater <taco@metatex.org> +## Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org> ## ## This file is free software; the copyright holder ## gives unlimited permission to copy and/or distribute it, ## with or without modifications, as long as this notice is preserved. ## -ACLOCAL_AMFLAGS = -I ../../m4 +ACLOCAL_AMFLAGS = -I ../../m4 -I m4 # Rebuild .PHONY: rebuild @@ -20,47 +21,214 @@ EXTRA_DIST = $(CAIRO_TREE) ## EXTRA_DIST += $(CAIRO_TREE)-PATCHES +CAIRO_SRC = $(CAIRO_TREE)/src + # in case of an SVN repository dist-hook: - rm -rf `find $(distdir) -name .svn -o -name autom4te.cache` - -noinst_DATA = libcairo.la - -cairo-build/Makefile: config.force - rm -rf cairo-build - $(MKDIR_P) cairo-build - cd cairo-build && \ - CC='$(CC)' CONFIG_SITE=/dev/null CONFIG_SHELL='$(SHELL)' \ - $(SHELL) $(abs_srcdir)/$(CAIRO_TREE)/configure \ - $(config_args) --disable-shared --disable-pthread \ - --disable-xlib --disable-xcb --disable-qt --disable-quartz \ - --disable-win32 --disable-win32-font --disable-os2 --disable-beos \ - --disable-drm --disable-gallium --disable-png --disable-gl \ - --disable-directfb --disable-vg --disable-egl --disable-glx \ - --disable-wgl --disable-script --disable-ft --disable-fc \ - --disable-ps --disable-pdf --disable-svg --disable-test-surfaces \ - --disable-tee --disable-xml --disable-gobject --disable-full-testing \ - --disable-trace --disable-interpreter --disable-symbol-lookup \ - CPPFLAGS=-DCAIRO_NO_MUTEX=1 \ - pixman_CFLAGS='$(PIXMAN_INCLUDES)' pixman_LIBS='$(PIXMAN_LIBS)' \ - --prefix=$(abs_builddir)/cairo-install \ - --libdir=$(abs_builddir) \ - --includedir=$(abs_builddir) - -# Unfortunately the Cairo build system installs the headers after the library; -# to get our dependencies right we wait for a second and then touch the library. -libcairo.la: cairo-build/Makefile - rm -rf cairo-install - cd cairo-build \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) install - sleep 1 - @for f in libcairo.*; do touch $$f; done - -clean-local: - rm -rf cairo-* cairo libcairo* pkgconfig - -###################### + rm -rf `find $(distdir) -name .svn -o -name .deps -o -name .dirstamp -o -name '*.lo' -o -name '*.$(OBJEXT)'` + +SUBDIRS = cairo + +AM_CPPFLAGS = -I$(top_srcdir)/$(CAIRO_SRC) $(PIXMAN_INCLUDES) -DCAIRO_NO_MUTEX +AM_CFLAGS = $(CAIRO_ATTRIBUTE_FLAG) + +noinst_LIBRARIES = libcairo.a + +libcairo_a_SOURCES = \ + @CAIRO_TREE@/src/cairo-analysis-surface.c \ + @CAIRO_TREE@/src/cairo-arc.c \ + @CAIRO_TREE@/src/cairo-array.c \ + @CAIRO_TREE@/src/cairo-atomic.c \ + @CAIRO_TREE@/src/cairo-base64-stream.c \ + @CAIRO_TREE@/src/cairo-base85-stream.c \ + @CAIRO_TREE@/src/cairo-bentley-ottmann.c \ + @CAIRO_TREE@/src/cairo-bentley-ottmann-rectangular.c \ + @CAIRO_TREE@/src/cairo-bentley-ottmann-rectilinear.c \ + @CAIRO_TREE@/src/cairo-botor-scan-converter.c \ + @CAIRO_TREE@/src/cairo-boxes.c \ + @CAIRO_TREE@/src/cairo-boxes-intersect.c \ + @CAIRO_TREE@/src/cairo.c \ + @CAIRO_TREE@/src/cairo-cache.c \ + @CAIRO_TREE@/src/cairo-clip.c \ + @CAIRO_TREE@/src/cairo-clip-boxes.c \ + @CAIRO_TREE@/src/cairo-clip-polygon.c \ + @CAIRO_TREE@/src/cairo-clip-region.c \ + @CAIRO_TREE@/src/cairo-clip-surface.c \ + @CAIRO_TREE@/src/cairo-color.c \ + @CAIRO_TREE@/src/cairo-composite-rectangles.c \ + @CAIRO_TREE@/src/cairo-compositor.c \ + @CAIRO_TREE@/src/cairo-contour.c \ + @CAIRO_TREE@/src/cairo-damage.c \ + @CAIRO_TREE@/src/cairo-debug.c \ + @CAIRO_TREE@/src/cairo-default-context.c \ + @CAIRO_TREE@/src/cairo-device.c \ + @CAIRO_TREE@/src/cairo-error.c \ + @CAIRO_TREE@/src/cairo-fallback-compositor.c \ + @CAIRO_TREE@/src/cairo-fixed.c \ + @CAIRO_TREE@/src/cairo-font-face.c \ + @CAIRO_TREE@/src/cairo-font-face-twin.c \ + @CAIRO_TREE@/src/cairo-font-face-twin-data.c \ + @CAIRO_TREE@/src/cairo-font-options.c \ + @CAIRO_TREE@/src/cairo-freelist.c \ + @CAIRO_TREE@/src/cairo-freed-pool.c \ + @CAIRO_TREE@/src/cairo-gstate.c \ + @CAIRO_TREE@/src/cairo-hash.c \ + @CAIRO_TREE@/src/cairo-hull.c \ + @CAIRO_TREE@/src/cairo-image-compositor.c \ + @CAIRO_TREE@/src/cairo-image-info.c \ + @CAIRO_TREE@/src/cairo-image-source.c \ + @CAIRO_TREE@/src/cairo-image-surface.c \ + @CAIRO_TREE@/src/cairo-lzw.c \ + @CAIRO_TREE@/src/cairo-matrix.c \ + @CAIRO_TREE@/src/cairo-mask-compositor.c \ + @CAIRO_TREE@/src/cairo-mesh-pattern-rasterizer.c \ + @CAIRO_TREE@/src/cairo-mempool.c \ + @CAIRO_TREE@/src/cairo-misc.c \ + @CAIRO_TREE@/src/cairo-mono-scan-converter.c \ + @CAIRO_TREE@/src/cairo-mutex.c \ + @CAIRO_TREE@/src/cairo-no-compositor.c \ + @CAIRO_TREE@/src/cairo-observer.c \ + @CAIRO_TREE@/src/cairo-output-stream.c \ + @CAIRO_TREE@/src/cairo-paginated-surface.c \ + @CAIRO_TREE@/src/cairo-path-bounds.c \ + @CAIRO_TREE@/src/cairo-path.c \ + @CAIRO_TREE@/src/cairo-path-fill.c \ + @CAIRO_TREE@/src/cairo-path-fixed.c \ + @CAIRO_TREE@/src/cairo-path-in-fill.c \ + @CAIRO_TREE@/src/cairo-path-stroke.c \ + @CAIRO_TREE@/src/cairo-path-stroke-boxes.c \ + @CAIRO_TREE@/src/cairo-path-stroke-polygon.c \ + @CAIRO_TREE@/src/cairo-path-stroke-traps.c \ + @CAIRO_TREE@/src/cairo-path-stroke-tristrip.c \ + @CAIRO_TREE@/src/cairo-pattern.c \ + @CAIRO_TREE@/src/cairo-pen.c \ + @CAIRO_TREE@/src/cairo-polygon.c \ + @CAIRO_TREE@/src/cairo-polygon-intersect.c \ + @CAIRO_TREE@/src/cairo-polygon-reduce.c \ + @CAIRO_TREE@/src/cairo-raster-source-pattern.c \ + @CAIRO_TREE@/src/cairo-recording-surface.c \ + @CAIRO_TREE@/src/cairo-rectangle.c \ + @CAIRO_TREE@/src/cairo-rectangular-scan-converter.c \ + @CAIRO_TREE@/src/cairo-region.c \ + @CAIRO_TREE@/src/cairo-rtree.c \ + @CAIRO_TREE@/src/cairo-scaled-font.c \ + @CAIRO_TREE@/src/cairo-shape-mask-compositor.c \ + @CAIRO_TREE@/src/cairo-slope.c \ + @CAIRO_TREE@/src/cairo-spans.c \ + @CAIRO_TREE@/src/cairo-spans-compositor.c \ + @CAIRO_TREE@/src/cairo-spline.c \ + @CAIRO_TREE@/src/cairo-stroke-dash.c \ + @CAIRO_TREE@/src/cairo-stroke-style.c \ + @CAIRO_TREE@/src/cairo-surface.c \ + @CAIRO_TREE@/src/cairo-surface-clipper.c \ + @CAIRO_TREE@/src/cairo-surface-fallback.c \ + @CAIRO_TREE@/src/cairo-surface-observer.c \ + @CAIRO_TREE@/src/cairo-surface-offset.c \ + @CAIRO_TREE@/src/cairo-surface-snapshot.c \ + @CAIRO_TREE@/src/cairo-surface-subsurface.c \ + @CAIRO_TREE@/src/cairo-surface-wrapper.c \ + @CAIRO_TREE@/src/cairo-time.c \ + @CAIRO_TREE@/src/cairo-tor-scan-converter.c \ + @CAIRO_TREE@/src/cairo-tor22-scan-converter.c \ + @CAIRO_TREE@/src/cairo-clip-tor-scan-converter.c \ + @CAIRO_TREE@/src/cairo-toy-font-face.c \ + @CAIRO_TREE@/src/cairo-traps.c \ + @CAIRO_TREE@/src/cairo-tristrip.c \ + @CAIRO_TREE@/src/cairo-traps-compositor.c \ + @CAIRO_TREE@/src/cairo-unicode.c \ + @CAIRO_TREE@/src/cairo-user-font.c \ + @CAIRO_TREE@/src/cairo-version.c \ + @CAIRO_TREE@/src/cairo-wideint.c + +if NEVER +libcairo_a_SOURCES += \ + $(NULL) +endif NEVER + + +if CAIRO_HAS_XLIB_SURFACE +libcairo_a_SOURCES += \ + @CAIRO_TREE@/src/cairo-xlib-display.c \ + @CAIRO_TREE@/src/cairo-xlib-core-compositor.c \ + @CAIRO_TREE@/src/cairo-xlib-fallback-compositor.c \ + @CAIRO_TREE@/src/cairo-xlib-render-compositor.c \ + @CAIRO_TREE@/src/cairo-xlib-screen.c \ + @CAIRO_TREE@/src/cairo-xlib-source.c \ + @CAIRO_TREE@/src/cairo-xlib-surface.c \ + @CAIRO_TREE@/src/cairo-xlib-surface-shm.c \ + @CAIRO_TREE@/src/cairo-xlib-visual.c \ + @CAIRO_TREE@/src/cairo-xlib-xcb-surface.c +endif CAIRO_HAS_XLIB_SURFACE + +if CAIRO_HAS_XLIB_XRENDER_SURFACE +libcairo_a_SOURCES += \ + @CAIRO_TREE@/src/cairo-xcb-connection.c \ + @CAIRO_TREE@/src/cairo-xcb-connection-core.c \ + @CAIRO_TREE@/src/cairo-xcb-connection-render.c \ + @CAIRO_TREE@/src/cairo-xcb-connection-shm.c \ + @CAIRO_TREE@/src/cairo-xcb-screen.c \ + @CAIRO_TREE@/src/cairo-xcb-shm.c \ + @CAIRO_TREE@/src/cairo-xcb-surface.c \ + @CAIRO_TREE@/src/cairo-xcb-surface-core.c \ + @CAIRO_TREE@/src/cairo-xcb-surface-render.c +endif CAIRO_HAS_XLIB_XRENDER_SURFACE + +if CAIRO_HAS_XCB_SURFACE +libcairo_a_SOURCES += \ + @CAIRO_TREE@/src/cairo-xcb-connection.c \ + @CAIRO_TREE@/src/cairo-xcb-connection-core.c \ + @CAIRO_TREE@/src/cairo-xcb-connection-render.c \ + @CAIRO_TREE@/src/cairo-xcb-connection-shm.c \ + @CAIRO_TREE@/src/cairo-xcb-screen.c \ + @CAIRO_TREE@/src/cairo-xcb-shm.c \ + @CAIRO_TREE@/src/cairo-xcb-surface.c \ + @CAIRO_TREE@/src/cairo-xcb-surface-core.c \ + @CAIRO_TREE@/src/cairo-xcb-surface-render.c +endif CAIRO_HAS_XCB_SURFACE + +if CAIRO_HAS_QUARTZ_SURFACE +libcairo_a_SOURCES += \ + @CAIRO_TREE@/src/cairo-quartz-surface.c +endif CAIRO_HAS_QUARTZ_SURFACE + +if CAIRO_HAS_QUARTZ_FONT +libcairo_a_SOURCES += + @CAIRO_TREE@/src/cairo-quartz-font.c +endif CAIRO_HAS_QUARTZ_FONT + +if CAIRO_HAS_QUARTZ_IMAGE_SURFACE +libcairo_a_SOURCES += \ + @CAIRO_TREE@/src/cairo-quartz-image-surface.c +endif CAIRO_HAS_QUARTZ_IMAGE_SURFACE + +if CAIRO_HAS_OS2_SURFACE +libcairo_a_SOURCES += \ + @CAIRO_TREE@/src/cairo-os2-surface.c +endif CAIRO_HAS_OS2_SURFACE + +if CAIRO_HAS_PNG_FUNCTIONS +libcairo_a_SOURCES += \ + @CAIRO_TREE@/src/cairo-png.c +endif CAIRO_HAS_PNG_FUNCTIONS + +if CAIRO_HAS_GL_SURFACE +libcairo_a_SOURCES += \ + @CAIRO_TREE@/src/cairo-gl-composite.c \ + @CAIRO_TREE@/src/cairo-gl-device.c \ + @CAIRO_TREE@/src/cairo-gl-dispatch.c \ + @CAIRO_TREE@/src/cairo-gl-glyphs.c \ + @CAIRO_TREE@/src/cairo-gl-gradient.c \ + @CAIRO_TREE@/src/cairo-gl-info.c \ + @CAIRO_TREE@/src/cairo-gl-operand.c \ + @CAIRO_TREE@/src/cairo-gl-shaders.c \ + @CAIRO_TREE@/src/cairo-gl-msaa-compositor.c \ + @CAIRO_TREE@/src/cairo-gl-spans-compositor.c \ + @CAIRO_TREE@/src/cairo-gl-traps-compositor.c \ + @CAIRO_TREE@/src/cairo-gl-source.c \ + @CAIRO_TREE@/src/cairo-gl-surface.c +endif CAIRO_HAS_GL_SURFACE + +$(libcairo_a_OBJECTS): config.force config.force: $(PIXMAN_DEPEND) echo timestamp >config.force @@ -72,10 +240,18 @@ DISTCLEANFILES = config.force @PIXMAN_RULE@ if build -check_PROGRAMS = +check_PROGRAMS = cairotst dist_check_SCRIPTS = cairo.test TESTS = cairo.test endif build +cairotst_SOURCES = cairotst.c + +cairotst_CPPFLAGS = $(PIXMAN_INCLUDES) -Icairo + +cairotst_DEPENDENCIES = $(PIXMAN_DEPEND) + +LDADD = libcairo.a $(PIXMAN_LIBS) + ## Files generated by TESTS |