mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 06:08:02 +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-bolierplate.h \
|
||||
buffer-diff.c \
|
||||
buffer-diff.h \
|
||||
cairo-test.c \
|
||||
cairo-test.h \
|
||||
xmalloc.c \
|
||||
xmalloc.h
|
||||
|
||||
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
|
||||
libcairotest_la_CXXFLAGS = -Wno-multichar
|
||||
libcairoboilerplate_la_CXXFLAGS = -Wno-multichar
|
||||
endif
|
||||
|
||||
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
|
||||
|
||||
# We're using _GNU_SOURCE to get the prototype for asprintf. This may
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "cairo-test.h"
|
||||
#include "cairo-boilerplate.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
void *
|
||||
|
|
@ -36,7 +36,7 @@ xmalloc (size_t size)
|
|||
|
||||
buf = malloc (size);
|
||||
if (!buf) {
|
||||
cairo_test_log ("Error: Out of memory. Exiting.\n");
|
||||
CAIRO_BOILERPLATE_LOG ("Error: Out of memory. Exiting.\n");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ xcalloc (size_t nmemb, size_t size)
|
|||
|
||||
buf = calloc (nmemb, size);
|
||||
if (!buf) {
|
||||
cairo_test_log ("Error: Out of memory. Exiting\n");
|
||||
CAIRO_BOILERPLATE_LOG ("Error: Out of memory. Exiting\n");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -375,12 +375,23 @@ SUPPORT_PROGS =
|
|||
# problem.
|
||||
INCLUDES = \
|
||||
-D_GNU_SOURCE \
|
||||
-I$(srcdir) \
|
||||
-I$(top_srcdir)/boilerplate \
|
||||
-I$(top_srcdir)/pixman/src \
|
||||
-I$(top_srcdir)/src \
|
||||
$(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
|
||||
LDADD += $(GLITZ_AGL_LIBS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue