mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-14 14:28:17 +02:00
Move test-specific stuff out of boilerplate/ and back into test/
This now gives us two separate libtool convenience libraries, so they have to have separate names now: libcairoboilerplate.la and libcairotest.la.
This commit is contained in:
parent
9547521885
commit
d52a1f762d
7 changed files with 20 additions and 13 deletions
|
|
@ -1,23 +1,19 @@
|
||||||
noinst_LTLIBRARIES = libcairotest.la
|
noinst_LTLIBRARIES = libcairoboilerplate.la
|
||||||
|
|
||||||
libcairotest_la_SOURCES =\
|
libcairoboilerplate_la_SOURCES =\
|
||||||
cairo-boilerplate.c \
|
cairo-boilerplate.c \
|
||||||
cairo-bolierplate.h \
|
cairo-bolierplate.h \
|
||||||
buffer-diff.c \
|
|
||||||
buffer-diff.h \
|
|
||||||
cairo-test.c \
|
|
||||||
cairo-test.h \
|
|
||||||
xmalloc.c \
|
xmalloc.c \
|
||||||
xmalloc.h
|
xmalloc.h
|
||||||
|
|
||||||
if CAIRO_HAS_BEOS_SURFACE
|
if CAIRO_HAS_BEOS_SURFACE
|
||||||
libcairotest_la_SOURCES += cairo-test-beos.cpp cairo-test-beos.h
|
libcairoboilerplate_la_SOURCES += cairo-test-beos.cpp cairo-test-beos.h
|
||||||
# BeOS system headers trigger this warning
|
# BeOS system headers trigger this warning
|
||||||
libcairotest_la_CXXFLAGS = -Wno-multichar
|
libcairoboilerplate_la_CXXFLAGS = -Wno-multichar
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if CAIRO_HAS_DIRECTFB_SURFACE
|
if CAIRO_HAS_DIRECTFB_SURFACE
|
||||||
libcairotest_la_SOURCES += cairo-test-directfb.c cairo-test-directfb.h
|
libcairoboilerplate_la_SOURCES += cairo-test-directfb.c cairo-test-directfb.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# We're using _GNU_SOURCE to get the prototype for asprintf. This may
|
# We're using _GNU_SOURCE to get the prototype for asprintf. This may
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "cairo-test.h"
|
#include "cairo-boilerplate.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
|
|
||||||
void *
|
void *
|
||||||
|
|
@ -36,7 +36,7 @@ xmalloc (size_t size)
|
||||||
|
|
||||||
buf = malloc (size);
|
buf = malloc (size);
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
cairo_test_log ("Error: Out of memory. Exiting.\n");
|
CAIRO_BOILERPLATE_LOG ("Error: Out of memory. Exiting.\n");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -50,7 +50,7 @@ xcalloc (size_t nmemb, size_t size)
|
||||||
|
|
||||||
buf = calloc (nmemb, size);
|
buf = calloc (nmemb, size);
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
cairo_test_log ("Error: Out of memory. Exiting\n");
|
CAIRO_BOILERPLATE_LOG ("Error: Out of memory. Exiting\n");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -375,12 +375,23 @@ SUPPORT_PROGS =
|
||||||
# problem.
|
# problem.
|
||||||
INCLUDES = \
|
INCLUDES = \
|
||||||
-D_GNU_SOURCE \
|
-D_GNU_SOURCE \
|
||||||
|
-I$(srcdir) \
|
||||||
-I$(top_srcdir)/boilerplate \
|
-I$(top_srcdir)/boilerplate \
|
||||||
-I$(top_srcdir)/pixman/src \
|
-I$(top_srcdir)/pixman/src \
|
||||||
-I$(top_srcdir)/src \
|
-I$(top_srcdir)/src \
|
||||||
$(CAIRO_CFLAGS)
|
$(CAIRO_CFLAGS)
|
||||||
|
|
||||||
LDADD = $(top_builddir)/boilerplate/libcairotest.la $(top_builddir)/src/libcairo.la
|
EXTRA_LTLIBRARIES = libcairotest.la
|
||||||
|
|
||||||
|
libcairotest_la_SOURCES =\
|
||||||
|
buffer-diff.c \
|
||||||
|
buffer-diff.h \
|
||||||
|
cairo-test.c \
|
||||||
|
cairo-test.h
|
||||||
|
|
||||||
|
LDADD = libcairotest.la \
|
||||||
|
$(top_builddir)/boilerplate/libcairoboilerplate.la \
|
||||||
|
$(top_builddir)/src/libcairo.la
|
||||||
|
|
||||||
if CAIRO_CAN_TEST_GLITZ_AGL_SURFACE
|
if CAIRO_CAN_TEST_GLITZ_AGL_SURFACE
|
||||||
LDADD += $(GLITZ_AGL_LIBS)
|
LDADD += $(GLITZ_AGL_LIBS)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue