joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 1 | # Copyright 2015 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | # GYP file to build visual bench tool |
| 6 | { |
bsalomon | 48297f7 | 2015-06-16 12:21:00 -0700 | [diff] [blame] | 7 | 'includes': [ |
| 8 | 'apptype_console.gypi', |
| 9 | ], |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 10 | 'targets': [ |
| 11 | { |
| 12 | 'target_name': 'visualbench', |
| 13 | 'type': 'executable', |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 14 | 'includes' : [ |
| 15 | 'gmslides.gypi', |
| 16 | ], |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 17 | 'include_dirs' : [ |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 18 | '../bench', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 19 | '../include/gpu', |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 20 | '../include/private', |
joshualitt | 7fe8ee4 | 2015-06-01 10:03:54 -0700 | [diff] [blame] | 21 | '../src/core', |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 22 | '../src/effects', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 23 | '../src/images', |
| 24 | ], |
| 25 | 'sources': [ |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 26 | '../gm/gm.cpp', |
joshualitt | 189aef7 | 2015-09-08 07:08:11 -0700 | [diff] [blame] | 27 | '<!@(python find.py ../tools/VisualBench "*.cpp")', |
| 28 | '<!@(python find.py ../tools/VisualBench "*.h")', |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 29 | '<!@(python find.py ../bench "*.cpp")', |
| 30 | ], |
| 31 | 'sources!': [ |
| 32 | '../bench/nanobench.cpp', |
| 33 | '../bench/nanobenchAndroid.cpp', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 34 | ], |
| 35 | 'dependencies': [ |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 36 | 'etc1.gyp:libetc1', |
| 37 | 'flags.gyp:flags', |
joshualitt | 892b0c3 | 2015-08-18 12:13:34 -0700 | [diff] [blame] | 38 | 'jsoncpp.gyp:jsoncpp', |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 39 | 'gputest.gyp:skgputest', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 40 | 'skia_lib.gyp:skia_lib', |
msarett | 7f69144 | 2015-09-22 11:56:16 -0700 | [diff] [blame] | 41 | 'tools.gyp:bitmap_region_decoder', |
joshualitt | 7fe8ee4 | 2015-06-01 10:03:54 -0700 | [diff] [blame] | 42 | 'tools.gyp:proc_stats', |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 43 | 'tools.gyp:sk_tool_utils', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 44 | 'tools.gyp:timer', |
| 45 | 'views.gyp:views', |
| 46 | ], |
| 47 | 'conditions' : [ |
joshualitt | 030dc84 | 2015-06-12 12:51:44 -0700 | [diff] [blame] | 48 | [ 'skia_os == "android"', { |
| 49 | 'dependencies': [ |
| 50 | 'android_deps.gyp:Android_VisualBench', |
| 51 | 'android_deps.gyp:native_app_glue', |
| 52 | ], |
| 53 | 'link_settings': { |
| 54 | 'libraries': [ |
| 55 | '-landroid', |
| 56 | '-lGLESv2', |
| 57 | '-lEGL', |
| 58 | ], |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 59 | }, |
joshualitt | 030dc84 | 2015-06-12 12:51:44 -0700 | [diff] [blame] | 60 | }], |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 61 | ], |
| 62 | }, |
| 63 | ], |
| 64 | } |