OLD | NEW |
1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 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 performance testbench. | 5 # GYP file to build performance testbench. |
6 # | 6 # |
7 { | 7 { |
8 'includes': [ | 8 'includes': [ |
9 'apptype_console.gypi', | 9 'apptype_console.gypi', |
10 ], | 10 ], |
11 'targets': [ | 11 'targets': [ |
12 { | 12 { |
13 'target_name': 'viewer', | 13 'target_name': 'viewer', |
14 'type': 'executable', | 14 'type': 'executable', |
15 'includes' : [ | 15 'includes' : [ |
16 'gmslides.gypi', | 16 'gmslides.gypi', |
| 17 'samples.gypi', |
17 ], | 18 ], |
18 'include_dirs': [ | 19 'include_dirs': [ |
19 '../bench', | 20 '../bench', |
20 '../gm', | 21 '../gm', |
21 '../include/views', | |
22 '../include/private', | 22 '../include/private', |
23 '../src/core', | 23 '../src/core', |
24 '../src/effects', | 24 '../src/effects', |
25 '../src/gpu', | 25 '../src/gpu', |
| 26 '../src/image', |
26 '../src/images', | 27 '../src/images', |
27 '../src/image', | 28 '../src/pathops', |
28 '../src/views/unix', | 29 '../src/views/unix', |
29 '../tools/timer', | 30 '../tools/timer', |
30 ], | 31 ], |
31 'sources': [ | 32 'sources': [ |
32 '../gm/gm.cpp', | 33 '../gm/gm.cpp', |
| 34 '<!@(python find.py ../tools/viewer "*.cpp")', |
| 35 |
| 36 # views (subset of files for the Android build) |
| 37 '../src/views/SkEvent.cpp', |
| 38 '../src/views/SkEventSink.cpp', |
| 39 '../src/views/SkOSMenu.cpp', |
| 40 '../src/views/SkTagList.cpp', |
| 41 '../src/views/SkTagList.h', |
33 '../src/views/SkTouchGesture.cpp', | 42 '../src/views/SkTouchGesture.cpp', |
| 43 '../src/views/SkView.cpp', |
| 44 '../src/views/SkViewPriv.cpp', |
| 45 '../src/views/SkViewPriv.h', |
34 '../src/views/unix/keysym2ucs.c', | 46 '../src/views/unix/keysym2ucs.c', |
35 '<!@(python find.py ../tools/viewer "*.cpp")', | |
36 ], | 47 ], |
| 48 'sources!': [ |
| 49 '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't c
ompile |
| 50 '../samplecode/SampleFontCache.cpp', #relies on pthread.h |
| 51 ], |
37 'dependencies': [ | 52 'dependencies': [ |
38 'flags.gyp:flags', | 53 'flags.gyp:flags', |
39 'gputest.gyp:skgputest', | 54 'gputest.gyp:skgputest', |
40 'jsoncpp.gyp:jsoncpp', | 55 'jsoncpp.gyp:jsoncpp', |
41 'skia_lib.gyp:skia_lib', | 56 'skia_lib.gyp:skia_lib', |
42 'tools.gyp:crash_handler', | 57 'tools.gyp:crash_handler', |
43 'tools.gyp:proc_stats', | 58 'tools.gyp:proc_stats', |
44 'tools.gyp:resources', | 59 'tools.gyp:resources', |
45 'tools.gyp:sk_tool_utils', | 60 'tools.gyp:sk_tool_utils', |
46 'tools.gyp:timer', | 61 'tools.gyp:timer', |
47 'tools.gyp:url_data_manager', | 62 'tools.gyp:url_data_manager', |
48 ], | 63 ], |
49 'conditions' : [ | 64 'conditions' : [ |
50 [ 'skia_os == "android"', { | 65 [ 'skia_os == "android"', { |
51 'dependencies': [ | 66 'dependencies': [ |
52 'android_deps.gyp:Android_EntryPoint', | 67 'android_deps.gyp:Android_EntryPoint', |
53 'android_deps.gyp:native_app_glue', | 68 'android_deps.gyp:native_app_glue', |
54 ], | 69 ], |
| 70 # views depends on SkOSWindow_android, which we don't want to include |
| 71 # so we only include the minimum set of views files in sources |
| 72 'dependencies!': [ |
| 73 'views.gyp:views', |
| 74 ], |
55 'link_settings': { | 75 'link_settings': { |
56 'libraries': [ | 76 'libraries': [ |
57 '-landroid', | 77 '-landroid', |
58 ], | 78 ], |
59 }, | 79 }, |
60 }], | 80 }], |
61 [ 'skia_os == "linux"', { | 81 [ 'skia_os == "linux"', { |
62 'link_settings': { | 82 'link_settings': { |
63 'libraries': [ | 83 'libraries': [ |
64 '-lX11-xcb', | 84 '-lX11-xcb', |
65 ], | 85 ], |
66 }, | 86 }, |
67 }], | 87 }], |
68 ['skia_os != "android"', { | 88 ['skia_os != "android"', { |
69 'sources/': [ ['exclude', '_android.(h|cpp)$'], | 89 'sources/': [ |
| 90 ['exclude', '_android.(h|cpp)$'], |
| 91 ['exclude', 'src/views'], |
70 ], | 92 ], |
71 }], | 93 }], |
72 ['skia_os != "linux"', { | 94 ['skia_os != "linux"', { |
73 'sources/': [ | 95 'sources/': [ |
74 ['exclude', '_unix.(h|cpp)$'], | 96 ['exclude', '_unix.(h|cpp)$'], |
75 ['exclude', 'keysym2ucs.c'], | 97 ['exclude', 'keysym2ucs.c'], |
76 ], | 98 ], |
77 }], | 99 }], |
78 ['skia_os != "win"', { | 100 ['skia_os != "win"', { |
79 'sources/': [ ['exclude', '_win.(h|cpp)$'], | 101 'sources/': [ ['exclude', '_win.(h|cpp)$'], |
80 ], | 102 ], |
81 }], | 103 }], |
82 ], | 104 ], |
83 }, | 105 }, |
84 ], | 106 ], |
85 } | 107 } |
OLD | NEW |