diff options
author | sanine <sanine.not@pm.me> | 2022-10-12 12:03:23 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-10-12 12:03:23 -0500 |
commit | 530ffd0b7d3c39757b20f00716e486b5caf89aff (patch) | |
tree | 76b35fdf57317038acf6b828871f6ae25fce2ebe /libs/cairo-1.16.0/test/Makefile.win32 | |
parent | 3dbe9332e47c143a237db12440f134caebd1cfbe (diff) |
add cairo
Diffstat (limited to 'libs/cairo-1.16.0/test/Makefile.win32')
-rw-r--r-- | libs/cairo-1.16.0/test/Makefile.win32 | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/libs/cairo-1.16.0/test/Makefile.win32 b/libs/cairo-1.16.0/test/Makefile.win32 new file mode 100644 index 0000000..ba8ea5b --- /dev/null +++ b/libs/cairo-1.16.0/test/Makefile.win32 @@ -0,0 +1,55 @@ +top_srcdir = .. +include $(top_srcdir)/build/Makefile.win32.common +include $(top_srcdir)/test/Makefile.sources + +CFLAGS += \ + -I$(top_srcdir)/boilerplate \ + -I$(top_srcdir)/util/cairo-script/ \ + -I./pdiff \ + $(NULL) + +TEST_LIBS = \ + ./pdiff/$(CFG)/pdiff.lib \ + $(top_builddir)/boilerplate/$(CFG)/boiler.lib \ + $(top_builddir)/src/$(CFG)/cairo-static.lib \ + $(NULL) + +all: inform $(CFG)/cairo-test-suite.exe + +cairo-test-constructors.c: Makefile.sources Makefile.win32 $(test_sources) make-cairo-test-constructors.sh + sh ./make-cairo-test-constructors.sh $(test_sources) > $@ + +SOURCES = $(cairo_test_suite_sources) $(test_sources) cairo-test-constructors.c + +OBJECTS = $(patsubst %.c, $(CFG)/%-static.obj, $(SOURCES)) + +ANY2PPM_OBJS = \ + $(CFG)/any2ppm-static.obj \ + $(top_builddir)/util/cairo-script/$(CFG)/libcairo-script-interpreter.lib \ + $(top_builddir)/src/$(CFG)/cairo-static.lib \ + $(NULL) + +$(CFG)/cairo-test-suite.exe: $(OBJECTS) $(TEST_LIBS) + @$(LD) $(CAIRO_LDFLAGS) -OUT:$@ $(OBJECTS) $(TEST_LIBS) $(CAIRO_LIBS) + +$(CFG)/any2ppm.exe: $(ANY2PPM_OBJS) + $(LD) $(CAIRO_LDFLAGS) -OUT:$@ $^ $(CAIRO_LIBS) + +./pdiff/$(CFG)/pdiff.lib: + $(MAKE) -C pdiff -f Makefile.win32 + +$(top_builddir)/src/$(CFG)/cairo-static.lib: + $(MAKE) -C $(top_srcdir)/src -f Makefile.win32 + +$(top_builddir)/boilerplate/$(CFG)/boiler.lib: + $(MAKE) -C $(top_srcdir)/boilerplate -f Makefile.win32 + +$(top_builddir)/util/cairo-script/$(CFG)/libcairo-script-interpreter.lib: + $(MAKE) -C $(top_srcdir)/util/cairo-script -f Makefile.win32 + +.PHONY: check test + +check: inform $(CFG)/any2ppm.exe $(CFG)/cairo-test-suite.exe + @ANY2PPM=$(CFG)\\any2ppm.exe $(CFG)/cairo-test-suite.exe + +test: inform check |