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