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', |
joshualitt | 7fe8ee4 | 2015-06-01 10:03:54 -0700 | [diff] [blame] | 20 | '../src/core', |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 21 | '../src/effects', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 22 | '../src/images', |
| 23 | ], |
| 24 | 'sources': [ |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 25 | '../gm/gm.cpp', |
joshualitt | 91b6f32 | 2015-06-30 06:50:10 -0700 | [diff] [blame] | 26 | '../tools/VisualBench/VisualBench.h', |
| 27 | '../tools/VisualBench/VisualBench.cpp', |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 28 | '../tools/VisualBench/VisualBenchmarkStream.h', |
| 29 | '../tools/VisualBench/VisualBenchmarkStream.cpp', |
| 30 | '../tools/VisualBench/VisualSKPBench.h', |
| 31 | '../tools/VisualBench/VisualSKPBench.cpp', |
| 32 | '<!@(python find.py ../bench "*.cpp")', |
| 33 | ], |
| 34 | 'sources!': [ |
| 35 | '../bench/nanobench.cpp', |
| 36 | '../bench/nanobenchAndroid.cpp', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 37 | ], |
| 38 | 'dependencies': [ |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 39 | 'etc1.gyp:libetc1', |
| 40 | 'flags.gyp:flags', |
| 41 | 'gputest.gyp:skgputest', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 42 | 'skia_lib.gyp:skia_lib', |
joshualitt | 7fe8ee4 | 2015-06-01 10:03:54 -0700 | [diff] [blame] | 43 | 'tools.gyp:proc_stats', |
joshualitt | 962cc98 | 2015-06-30 07:43:14 -0700 | [diff] [blame] | 44 | 'tools.gyp:sk_tool_utils', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 45 | 'tools.gyp:timer', |
| 46 | 'views.gyp:views', |
| 47 | ], |
| 48 | 'conditions' : [ |
joshualitt | 030dc84 | 2015-06-12 12:51:44 -0700 | [diff] [blame] | 49 | [ 'skia_os == "android"', { |
| 50 | 'dependencies': [ |
| 51 | 'android_deps.gyp:Android_VisualBench', |
| 52 | 'android_deps.gyp:native_app_glue', |
| 53 | ], |
| 54 | 'link_settings': { |
| 55 | 'libraries': [ |
| 56 | '-landroid', |
| 57 | '-lGLESv2', |
| 58 | '-lEGL', |
| 59 | ], |
| 60 | }, |
| 61 | }], |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 62 | ], |
| 63 | }, |
| 64 | ], |
| 65 | } |