mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-26 14:40:11 +01:00
It was originally added to make bisecting easier, but has outlived its usefuleness now. Going forward we'll have just a single cairo-version.h header file, the one with the real version numbers. This is needed to fix the case where cairo is being built as a Meson subproject, but also simplifies things in general. Fixes #421
28 lines
919 B
Text
28 lines
919 B
Text
top_srcdir = ..
|
|
include $(top_srcdir)/build/Makefile.win32.common
|
|
include Makefile.win32.features
|
|
|
|
SOURCES = $(enabled_cairo_sources)
|
|
|
|
STATIC_SOURCES = cairo-system.c
|
|
|
|
OBJECTS = $(patsubst %.c, $(CFG)/%.obj, $(SOURCES))
|
|
OBJECTS_STATIC = $(patsubst %cairo-system.obj, %cairo-system-static.obj, $(OBJECTS))
|
|
|
|
static: inform $(CFG)/cairo-static.lib
|
|
dynamic: inform $(CFG)/cairo.dll
|
|
|
|
$(CFG)/cairo.dll: $(OBJECTS)
|
|
@$(LD) $(CAIRO_LDFLAGS) -DLL -OUT:$@ $(CAIRO_LIBS) $(PIXMAN_LIBS) $(OBJECTS)
|
|
|
|
$(CFG)/cairo-static.lib: $(OBJECTS_STATIC)
|
|
@$(AR) $(CAIRO_ARFLAGS) -OUT:$@ $(PIXMAN_LIBS) $(OBJECTS_STATIC)
|
|
|
|
all: inform $(CFG)/cairo.dll $(CFG)/cairo-static.lib
|
|
@echo "Built successfully!"
|
|
@echo "You should copy the following files to a proper place now:"
|
|
@echo ""
|
|
@echo " src/cairo-features.h"
|
|
@for x in $(enabled_cairo_headers); do echo " src/$$x"; done
|
|
@echo " src/$(CFG)/cairo.dll"
|
|
@echo " src/$(CFG)/cairo-static.lib"
|