From 878fa0204bc246ec5fbaca4aa3c81aaefccc30a1 Mon Sep 17 00:00:00 2001 From: halcanary Date: Mon, 26 Jan 2015 11:24:32 -0800 Subject: Factor out checkerboard function in gm and sampleapp into tools. Review URL: https://codereview.chromium.org/834303005 --- gyp/SampleApp.gyp | 1 + gyp/gmslides.gypi | 3 +++ gyp/tools.gyp | 7 +++++++ 3 files changed, 11 insertions(+) (limited to 'gyp') 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 @@ -88,6 +88,13 @@ 'include_dirs': [ '../tools', ], }, }, + { + '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', -- cgit v1.2.3