jvanverth | 9f37246 | 2016-04-06 06:08:59 -0700 | [diff] [blame] | 1 | # Copyright 2016 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 performance testbench. |
| 6 | # |
| 7 | { |
| 8 | 'includes': [ |
| 9 | 'apptype_console.gypi', |
| 10 | ], |
| 11 | 'targets': [ |
| 12 | { |
jvanverth | 3452426 | 2016-05-04 13:49:13 -0700 | [diff] [blame] | 13 | 'target_name': 'viewer', |
jvanverth | 9f37246 | 2016-04-06 06:08:59 -0700 | [diff] [blame] | 14 | 'type': 'executable', |
| 15 | 'includes' : [ |
| 16 | 'gmslides.gypi', |
| 17 | ], |
| 18 | 'include_dirs': [ |
| 19 | '../bench', |
| 20 | '../gm', |
liyuqian | d3cdbca | 2016-05-17 12:44:20 -0700 | [diff] [blame] | 21 | '../include/views', |
jvanverth | 9f37246 | 2016-04-06 06:08:59 -0700 | [diff] [blame] | 22 | '../include/private', |
| 23 | '../src/core', |
| 24 | '../src/effects', |
| 25 | '../src/gpu', |
jvanverth | 76963e7 | 2016-06-13 09:31:26 -0700 | [diff] [blame] | 26 | '../src/images', |
egdaniel | f533f11 | 2016-06-13 11:30:10 -0700 | [diff] [blame] | 27 | '../src/image', |
jvanverth | 1d15596 | 2016-05-23 13:13:36 -0700 | [diff] [blame] | 28 | '../src/views/unix', |
jvanverth | 3d6ed3a | 2016-04-07 11:09:51 -0700 | [diff] [blame] | 29 | '../tools/timer', |
jvanverth | 9f37246 | 2016-04-06 06:08:59 -0700 | [diff] [blame] | 30 | ], |
| 31 | 'sources': [ |
| 32 | '../gm/gm.cpp', |
egdaniel | f533f11 | 2016-06-13 11:30:10 -0700 | [diff] [blame] | 33 | '../src/views/SkTouchGesture.cpp', |
jvanverth | 1d15596 | 2016-05-23 13:13:36 -0700 | [diff] [blame] | 34 | '../src/views/unix/keysym2ucs.c', |
jvanverth | 3452426 | 2016-05-04 13:49:13 -0700 | [diff] [blame] | 35 | '<!@(python find.py ../tools/viewer "*.cpp")', |
jvanverth | 9f37246 | 2016-04-06 06:08:59 -0700 | [diff] [blame] | 36 | ], |
| 37 | 'dependencies': [ |
| 38 | 'flags.gyp:flags', |
| 39 | 'gputest.gyp:skgputest', |
| 40 | 'jsoncpp.gyp:jsoncpp', |
| 41 | 'skia_lib.gyp:skia_lib', |
| 42 | 'tools.gyp:crash_handler', |
| 43 | 'tools.gyp:proc_stats', |
| 44 | 'tools.gyp:resources', |
| 45 | 'tools.gyp:sk_tool_utils', |
| 46 | 'tools.gyp:timer', |
| 47 | 'tools.gyp:url_data_manager', |
| 48 | ], |
djsollen | 12d62a7 | 2016-04-21 07:59:44 -0700 | [diff] [blame] | 49 | 'conditions' : [ |
| 50 | [ 'skia_os == "android"', { |
| 51 | 'dependencies': [ |
| 52 | 'android_deps.gyp:Android_EntryPoint', |
| 53 | 'android_deps.gyp:native_app_glue', |
| 54 | ], |
| 55 | 'link_settings': { |
| 56 | 'libraries': [ |
| 57 | '-landroid', |
| 58 | ], |
| 59 | }, |
| 60 | }], |
jvanverth | 1d15596 | 2016-05-23 13:13:36 -0700 | [diff] [blame] | 61 | [ 'skia_os == "linux"', { |
| 62 | 'link_settings': { |
| 63 | 'libraries': [ |
| 64 | '-lX11-xcb', |
| 65 | ], |
| 66 | }, |
| 67 | }], |
djsollen | 12d62a7 | 2016-04-21 07:59:44 -0700 | [diff] [blame] | 68 | ['skia_os != "android"', { |
| 69 | 'sources/': [ ['exclude', '_android.(h|cpp)$'], |
| 70 | ], |
| 71 | }], |
jvanverth | 1d15596 | 2016-05-23 13:13:36 -0700 | [diff] [blame] | 72 | ['skia_os != "linux"', { |
| 73 | 'sources/': [ |
| 74 | ['exclude', '_unix.(h|cpp)$'], |
| 75 | ['exclude', 'keysym2ucs.c'], |
| 76 | ], |
| 77 | }], |
djsollen | 12d62a7 | 2016-04-21 07:59:44 -0700 | [diff] [blame] | 78 | ['skia_os != "win"', { |
| 79 | 'sources/': [ ['exclude', '_win.(h|cpp)$'], |
| 80 | ], |
| 81 | }], |
| 82 | ], |
jvanverth | 9f37246 | 2016-04-06 06:08:59 -0700 | [diff] [blame] | 83 | }, |
| 84 | ], |
| 85 | } |