From a1ebff0dcbb52cd9eba2bf953b3ba251df6dd787 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Wed, 29 Jun 2011 14:14:38 +0200 Subject: [PATCH] win32: Build benchmarks Add the makefile rules needed to compile lowlevel-blt-bench on win32 and fix the compilation errors. --- test/Makefile.win32 | 5 ++++- test/lowlevel-blt-bench.c | 6 ++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/test/Makefile.win32 b/test/Makefile.win32 index c71afe1..a62b6fc 100644 --- a/test/Makefile.win32 +++ b/test/Makefile.win32 @@ -35,6 +35,7 @@ SOURCES = \ scaling-test.c \ affine-test.c \ composite.c \ + lowlevel-blt-bench.c \ utils.c TESTS = \ @@ -56,6 +57,8 @@ TESTS = \ $(CFG_VAR)/affine-test.exe \ $(CFG_VAR)/composite.exe +BENCHMARKS = \ + $(CFG_VAR)/lowlevel-blt-bench.exe OBJECTS = $(patsubst %.c, $(CFG_VAR)/%.obj, $(SOURCES)) @@ -66,7 +69,7 @@ $(CFG_VAR)/%.obj: %.c $(CFG_VAR)/%.exe: $(CFG_VAR)/%.obj $(LINK) /NOLOGO /OUT:$@ $< $(CFG_VAR)/utils.obj $(TEST_LDADD) -all: $(OBJECTS) $(TESTS) +all: $(OBJECTS) $(TESTS) $(BENCHMARKS) @exit 0 clean: diff --git a/test/lowlevel-blt-bench.c b/test/lowlevel-blt-bench.c index b00e487..099e434 100644 --- a/test/lowlevel-blt-bench.c +++ b/test/lowlevel-blt-bench.c @@ -26,11 +26,9 @@ #include #include -#ifdef HAVE_CONFIG_H -#include -#endif +#define PIXMAN_USE_INTERNAL_API +#include -#include "pixman-private.h" #include "utils.h" #define SOLID_FLAG 1 -- 2.7.4