Viewport clipping now works with both GL and Gallium.
[cairo/gpu.git] / test / Makefile.win32
blobb45617bd98c384bd87ffffcc6ec5a5658d3ee242
1 top_srcdir = ..
2 include $(top_srcdir)/build/Makefile.win32.common
3 include $(top_srcdir)/test/Makefile.sources
5 CFLAGS += -I../src -I../boilerplate -I./pdiff
7 LDFLAGS += ./pdiff/pdiff.lib ../src/$(CFG)/cairo-static.lib $(PIXMAN_LIBS) ../boilerplate/$(CFG)/boiler.lib $(EXE_LDFLAGS)
10 TESTCORE_SOURCES = \
11         cairo-test.c \
12         buffer-diff.c \
13         $(NULL)
15 all: cairo-test-suite.exe
17 make-cairo-test-constructors.exe: $(CFG)/make-cairo-test-constructors.obj
18         $(CC) $(OPT) $(MS_MDFLAGS) $(CFG)/make-cairo-test-constructors.obj -Fe"$@" -link $(LDFLAGS) user32.lib /NODEFAULTLIB:library
20 cairo-test-constructors.c: $(test_sources) make-cairo-test-constructors.exe
21         ./make-cairo-test-constructors.exe $(test_sources) > $@
23 SOURCES = $(cairo_test_suite_sources) $(test_sources) cairo-test-constructors.c
25 OBJECTS = $(patsubst %.c, $(CFG)/%-static.obj, $(SOURCES))
27 cairo-test-suite.exe: $(OBJECTS) ./pdiff/pdiff.lib ../boilerplate/$(CFG)/boiler.lib
28         $(CC) $(OPT) $(MS_MDFLAGS) $(OBJECTS) -Fe"$@" -link $(LDFLAGS) $(CAIRO_LIBS) /NODEFAULTLIB:library
30 ./pdiff/pdiff.lib:
31         (cd pdiff ; $(MAKE) -f Makefile.win32)
33 ../boilerplate/$(CFG)/boiler.lib:
34         (cd ../boilerplate ; $(MAKE) -f Makefile.win32)
36 .PHONY: check test html
38 check: cairo-test-suite.exe
39         ./cairo-test-suite.exe
41 # define gen-html so that both 'test' and 'html' targets
42 # can generate html while having different dependencies
43 define gen-html
44 @echo Creating index.html...
45 @perl make-html.pl > index.html
46 endef
48 test: check
49         $(gen-html)
51 html:
52         $(gen-html)