aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-01-26 11:24:32 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-26 11:24:32 -0800
commit878fa0204bc246ec5fbaca4aa3c81aaefccc30a1 (patch)
treefaef3e19c04dbabc482d43d33c4c2d15bc173639 /gyp
parent4b952751c093801675307df6f3c4c25749e72925 (diff)
Factor out checkerboard function in gm and sampleapp into tools.
Diffstat (limited to 'gyp')
-rw-r--r--gyp/SampleApp.gyp1
-rw-r--r--gyp/gmslides.gypi3
-rw-r--r--gyp/tools.gyp7
3 files changed, 11 insertions, 0 deletions
diff --git a/gyp/SampleApp.gyp b/gyp/SampleApp.gyp
index 7767835437..f961f1182b 100644
--- a/gyp/SampleApp.gyp
+++ b/gyp/SampleApp.gyp
@@ -152,6 +152,7 @@
'skia_lib.gyp:skia_lib',
'tools.gyp:resources',
'tools.gyp:sk_tool_utils',
+ 'tools.gyp:checkerboard',
'views.gyp:views',
'views_animated.gyp:views_animated',
'xml.gyp:xml',
diff --git a/gyp/gmslides.gypi b/gyp/gmslides.gypi
index abcb86767b..e716644750 100644
--- a/gyp/gmslides.gypi
+++ b/gyp/gmslides.gypi
@@ -7,6 +7,9 @@
'../src/images',
'../src/lazy',
],
+ 'dependencies': [
+ 'tools.gyp:checkerboard',
+ ],
'conditions': [
# If we're building SampleApp on the bots, no need to link in the GM slides.
# We're not going to run it; we're only making sure it still builds.
diff --git a/gyp/tools.gyp b/gyp/tools.gyp
index 1b196a75b1..8d2c7037b1 100644
--- a/gyp/tools.gyp
+++ b/gyp/tools.gyp
@@ -89,6 +89,13 @@
},
},
{
+ 'target_name': 'checkerboard',
+ 'type': 'static_library',
+ 'sources': [ '../tools/Checkerboard.cpp', ],
+ 'dependencies': [ 'skia_lib.gyp:skia_lib', ],
+ 'direct_dependent_settings': { 'include_dirs': [ '../tools', ], },
+ },
+ {
'target_name' : 'timer',
'type': 'static_library',
'sources': [