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 | { |
| 13 | 'target_name': 'vulkanviewer', |
| 14 | 'type': 'executable', |
| 15 | 'includes' : [ |
| 16 | 'gmslides.gypi', |
| 17 | ], |
| 18 | 'include_dirs': [ |
| 19 | '../bench', |
| 20 | '../gm', |
| 21 | '../include/private', |
| 22 | '../src/core', |
| 23 | '../src/effects', |
| 24 | '../src/gpu', |
| 25 | '../src/images', |
| 26 | '../src/image', |
jvanverth | 3d6ed3a | 2016-04-07 11:09:51 -0700 | [diff] [blame] | 27 | '../tools/timer', |
jvanverth | 9f37246 | 2016-04-06 06:08:59 -0700 | [diff] [blame] | 28 | ], |
| 29 | 'sources': [ |
| 30 | '../gm/gm.cpp', |
| 31 | '<!@(python find.py ../tools/vulkan "*.cpp")', |
| 32 | ], |
| 33 | 'dependencies': [ |
| 34 | 'flags.gyp:flags', |
| 35 | 'gputest.gyp:skgputest', |
| 36 | 'jsoncpp.gyp:jsoncpp', |
| 37 | 'skia_lib.gyp:skia_lib', |
| 38 | 'tools.gyp:crash_handler', |
| 39 | 'tools.gyp:proc_stats', |
| 40 | 'tools.gyp:resources', |
| 41 | 'tools.gyp:sk_tool_utils', |
| 42 | 'tools.gyp:timer', |
| 43 | 'tools.gyp:url_data_manager', |
| 44 | ], |
djsollen | 12d62a7 | 2016-04-21 07:59:44 -0700 | [diff] [blame] | 45 | 'conditions' : [ |
| 46 | [ 'skia_os == "android"', { |
| 47 | 'dependencies': [ |
| 48 | 'android_deps.gyp:Android_EntryPoint', |
| 49 | 'android_deps.gyp:native_app_glue', |
| 50 | ], |
| 51 | 'link_settings': { |
| 52 | 'libraries': [ |
| 53 | '-landroid', |
| 54 | ], |
| 55 | }, |
| 56 | }], |
| 57 | ['skia_os != "android"', { |
| 58 | 'sources/': [ ['exclude', '_android.(h|cpp)$'], |
| 59 | ], |
| 60 | }], |
| 61 | ['skia_os != "win"', { |
| 62 | 'sources/': [ ['exclude', '_win.(h|cpp)$'], |
| 63 | ], |
| 64 | }], |
| 65 | ], |
jvanverth | 9f37246 | 2016-04-06 06:08:59 -0700 | [diff] [blame] | 66 | }, |
| 67 | ], |
| 68 | } |