3c2360ff9d
Before, cairo-util.h would combine pixman and cairo includes. X11 and Wayland compositors uses this to load an image as a pixman_image_t but are forced to include cairo headers. Clients use load_cairo_surface to load images as cairo_surface_t's, but are forced to include pixman.h. We move the load_image pixman prototype to its own header, so compositors can get at the pixman prototype without including cairo.h and clients can include the cairo based function without including pixman.h.
32 lines
625 B
Makefile
32 lines
625 B
Makefile
noinst_LTLIBRARIES = libshared.la libshared-cairo.la
|
|
|
|
libshared_la_CFLAGS = $(GCC_CFLAGS)
|
|
|
|
libshared_la_SOURCES = \
|
|
config-parser.c \
|
|
option-parser.c \
|
|
config-parser.h \
|
|
os-compatibility.c \
|
|
os-compatibility.h
|
|
|
|
libshared_cairo_la_CFLAGS = \
|
|
$(GCC_CFLAGS) \
|
|
$(PIXMAN_CFLAGS) \
|
|
$(CAIRO_CFLAGS) \
|
|
$(PNG_CFLAGS) \
|
|
$(WEBP_CFLAGS)
|
|
|
|
libshared_cairo_la_LIBADD = \
|
|
$(PIXMAN_LIBS) \
|
|
$(CAIRO_LIBS) \
|
|
$(PNG_LIBS) \
|
|
$(WEBP_LIBS) \
|
|
$(JPEG_LIBS)
|
|
|
|
libshared_cairo_la_SOURCES = \
|
|
$(libshared_la_SOURCES) \
|
|
image-loader.c \
|
|
image-loader.h \
|
|
cairo-util.c \
|
|
cairo-util.h
|