summaryrefslogtreecommitdiff
path: root/libs/cairo-1.16.0/src/Makefile.win32
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-10-12 12:03:23 -0500
committersanine <sanine.not@pm.me>2022-10-12 12:03:23 -0500
commit530ffd0b7d3c39757b20f00716e486b5caf89aff (patch)
tree76b35fdf57317038acf6b828871f6ae25fce2ebe /libs/cairo-1.16.0/src/Makefile.win32
parent3dbe9332e47c143a237db12440f134caebd1cfbe (diff)
add cairo
Diffstat (limited to 'libs/cairo-1.16.0/src/Makefile.win32')
-rw-r--r--libs/cairo-1.16.0/src/Makefile.win3229
1 files changed, 29 insertions, 0 deletions
diff --git a/libs/cairo-1.16.0/src/Makefile.win32 b/libs/cairo-1.16.0/src/Makefile.win32
new file mode 100644
index 0000000..864791f
--- /dev/null
+++ b/libs/cairo-1.16.0/src/Makefile.win32
@@ -0,0 +1,29 @@
+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 " cairo-version.h (NOTE: toplevel, not the src/cairo-version.h one!)"
+ @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"