]> git.pld-linux.org Git - packages/graphene.git/blob - graphene-bench.patch
- new
[packages/graphene.git] / graphene-bench.patch
1 --- graphene-0.99.2/src/bench/Makefile.am.orig  2014-06-23 12:40:39.000000000 +0200
2 +++ graphene-0.99.2/src/bench/Makefile.am       2014-07-26 23:00:42.822085470 +0200
3 @@ -11,9 +11,17 @@
4  noinst_LTLIBRARIES =
5  TESTS =
6  
7 +SIMD_CFLAGS=
8 +if BUILD_WITH_SSE2
9 +SIMD_CFLAGS+=$(SSE2_CFLAGS)
10 +endif
11 +if BUILD_WITH_ARM_NEON
12 +SIMD_CFLAGS+=$(NEON_CFLAGS)
13 +endif
14 +
15  # common library for benchmark utilities
16  libgraphene_bench_la_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src -DG_LOG_DOMAIN=\"Graphene-Bench\"
17 -libgraphene_bench_la_CFLAGS = $(GRAPHENE_CFLAGS) $(MAINTAINER_CFLAGS)
18 +libgraphene_bench_la_CFLAGS = $(GRAPHENE_CFLAGS) $(MAINTAINER_CFLAGS) $(SIMD_CFLAGS)
19  libgraphene_bench_la_LIBADD = $(GRAPHENE_LIBS)
20  libgraphene_bench_la_SOURCES = graphene-bench-utils.h graphene-bench-utils.c
21  noinst_LTLIBRARIES += libgraphene-bench.la
22 @@ -39,7 +47,8 @@
23  bench_backends += sse
24  
25  matrix_sse_SOURCES = matrix.c
26 -matrix_sse_CPPFLAGS = -DGRAPHENE_BENCHMARK=1 -DGRAPHENE_HAS_SSE=1 -DIMPL=\"sse\"
27 +matrix_sse_CFLAGS = $(SSE2_CFLAGS) $(GLIB_CFLAGS)
28 +matrix_sse_CPPFLAGS = -DGRAPHENE_BENCHMARK=1 -DGRAPHENE_COMPILATION=1 -DGRAPHENE_HAS_SSE=1 -DIMPL=\"sse\"
29  noinst_PROGRAMS += matrix-sse
30  
31  benchmark-sse: matrix-sse$(EXEEXT)
This page took 0.036571 seconds and 3 git commands to generate.