From 5fc4d5ab1fae8677f5a95f5eb0e4fad3a9e0bf82 Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Tue, 4 Sep 2007 11:18:40 -0700 Subject: [PATCH] compilation: build edge/compose with accessors separately Simplify the build by creating a new file for pixman-compose and pixman-edge built with accessor functions. --- pixman/Makefile.am | 13 +++---------- pixman/pixman-compose-accessors.c | 4 ++++ pixman/pixman-edge-accessors.c | 4 ++++ 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 pixman/pixman-compose-accessors.c create mode 100644 pixman/pixman-edge-accessors.c diff --git a/pixman/Makefile.am b/pixman/Makefile.am index 708e0dd..b7138e4 100644 --- a/pixman/Makefile.am +++ b/pixman/Makefile.am @@ -1,15 +1,17 @@ lib_LTLIBRARIES = libpixman-1.la libpixman_1_la_LDFLAGS = -version-info $(LT_VERSION_INFO) -libpixman_1_la_LIBADD = @DEP_LIBS@ -lm libpixmanwrapper.la +libpixman_1_la_LIBADD = @DEP_LIBS@ -lm libpixman_1_la_SOURCES = \ pixman.h \ pixman-region.c \ pixman-private.h \ pixman-image.c \ pixman-compose.c \ + pixman-compose-accessors.c \ pixman-pict.c \ pixman-utils.c \ pixman-edge.c \ + pixman-edge-accessors.c \ pixman-edge-imp.h \ pixman-trap.c \ pixman-compute-region.c \ @@ -18,15 +20,6 @@ libpixman_1_la_SOURCES = \ libpixmanincludedir = $(includedir)/pixman-1/ libpixmaninclude_HEADERS = pixman.h -# wrapper library -noinst_LTLIBRARIES = libpixmanwrapper.la -libpixmanwrapper_la_SOURCES = \ - pixman-compose.c \ - pixman-edge.c -libpixmanwrapper_la_CFLAGS = $(DEP_CFLAGS) -DPIXMAN_FB_ACCESSORS - - - # mmx code if USE_MMX noinst_LTLIBRARIES += libpixman-mmx.la diff --git a/pixman/pixman-compose-accessors.c b/pixman/pixman-compose-accessors.c new file mode 100644 index 0000000..5393cf4 --- /dev/null +++ b/pixman/pixman-compose-accessors.c @@ -0,0 +1,4 @@ + +#define PIXMAN_FB_ACCESSORS + +#include "pixman-compose.c" diff --git a/pixman/pixman-edge-accessors.c b/pixman/pixman-edge-accessors.c new file mode 100644 index 0000000..ea3a31e --- /dev/null +++ b/pixman/pixman-edge-accessors.c @@ -0,0 +1,4 @@ + +#define PIXMAN_FB_ACCESSORS + +#include "pixman-edge.c" -- 2.7.4