aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/bench.gyp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-02 14:03:32 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-02 14:03:32 +0000
commitcf8fb1f6f03fc77f9927564f9ef9abeeeec508d2 (patch)
tree7534f5f2edd97cd61f18ee35ae4a14407a53453e /gyp/bench.gyp
parentf2a9e58858423be9cbfa72e01e8284754e7d6381 (diff)
Create GPU-less build of Skia.
git-svn-id: http://skia.googlecode.com/svn/trunk@4912 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp/bench.gyp')
-rw-r--r--gyp/bench.gyp28
1 files changed, 22 insertions, 6 deletions
diff --git a/gyp/bench.gyp b/gyp/bench.gyp
index dcf9b5f8c2..44ebbf2d0e 100644
--- a/gyp/bench.gyp
+++ b/gyp/bench.gyp
@@ -10,7 +10,6 @@
'type': 'executable',
'include_dirs' : [
'../src/core',
- '../src/gpu',
],
'includes': [
'bench.gypi'
@@ -18,13 +17,24 @@
'dependencies': [
'core.gyp:core',
'effects.gyp:effects',
- 'gpu.gyp:gr',
- 'gpu.gyp:skgr',
'images.gyp:images',
'ports.gyp:ports',
'utils.gyp:utils',
'bench_timer',
],
+ 'conditions': [
+ ['skia_gpu == 1',
+ {
+ 'include_dirs' : [
+ '../src/gpu',
+ ],
+ 'dependencies': [
+ 'gpu.gyp:gr',
+ 'gpu.gyp:skgr',
+ ],
+ },
+ ],
+ ],
},
{
'target_name' : 'bench_timer',
@@ -38,8 +48,6 @@
'../bench/BenchSysTimer_posix.cpp',
'../bench/BenchSysTimer_windows.h',
'../bench/BenchSysTimer_windows.cpp',
- '../bench/BenchGpuTimer_gl.h',
- '../bench/BenchGpuTimer_gl.cpp',
],
'include_dirs': [
'../src/core',
@@ -47,7 +55,6 @@
],
'dependencies': [
'core.gyp:core',
- 'gpu.gyp:gr',
],
'conditions': [
[ 'skia_os != "mac"', {
@@ -75,6 +82,15 @@
'../bench/BenchSysTimer_windows.cpp',
],
}],
+ ['skia_gpu == 1', {
+ 'dependencies': [
+ 'gpu.gyp:gr',
+ ],
+ 'sources': [
+ '../bench/BenchGpuTimer_gl.h',
+ '../bench/BenchGpuTimer_gl.cpp',
+ ],
+ }],
],
}
],