| 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 ], | 17 ], |
| 18 'include_dirs': [ | 18 'include_dirs': [ |
| 19 '../bench', | 19 '../bench', |
| 20 '../gm', | 20 '../gm', |
| 21 '../include/views', | 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/images', | 26 '../src/images', |
| 27 '../src/image', | 27 '../src/image', |
| 28 '../src/views/unix', |
| 28 '../tools/timer', | 29 '../tools/timer', |
| 29 ], | 30 ], |
| 30 'sources': [ | 31 'sources': [ |
| 31 '../gm/gm.cpp', | 32 '../gm/gm.cpp', |
| 32 '../src/views/SkTouchGesture.cpp', | 33 '../src/views/SkTouchGesture.cpp', |
| 34 '../src/views/unix/keysym2ucs.c', |
| 33 '<!@(python find.py ../tools/viewer "*.cpp")', | 35 '<!@(python find.py ../tools/viewer "*.cpp")', |
| 34 ], | 36 ], |
| 35 'dependencies': [ | 37 'dependencies': [ |
| 36 'flags.gyp:flags', | 38 'flags.gyp:flags', |
| 37 'gputest.gyp:skgputest', | 39 'gputest.gyp:skgputest', |
| 38 'jsoncpp.gyp:jsoncpp', | 40 'jsoncpp.gyp:jsoncpp', |
| 39 'skia_lib.gyp:skia_lib', | 41 'skia_lib.gyp:skia_lib', |
| 40 'tools.gyp:crash_handler', | 42 'tools.gyp:crash_handler', |
| 41 'tools.gyp:proc_stats', | 43 'tools.gyp:proc_stats', |
| 42 'tools.gyp:resources', | 44 'tools.gyp:resources', |
| 43 'tools.gyp:sk_tool_utils', | 45 'tools.gyp:sk_tool_utils', |
| 44 'tools.gyp:timer', | 46 'tools.gyp:timer', |
| 45 'tools.gyp:url_data_manager', | 47 'tools.gyp:url_data_manager', |
| 46 ], | 48 ], |
| 47 'conditions' : [ | 49 'conditions' : [ |
| 48 [ 'skia_os == "android"', { | 50 [ 'skia_os == "android"', { |
| 49 'dependencies': [ | 51 'dependencies': [ |
| 50 'android_deps.gyp:Android_EntryPoint', | 52 'android_deps.gyp:Android_EntryPoint', |
| 51 'android_deps.gyp:native_app_glue', | 53 'android_deps.gyp:native_app_glue', |
| 52 ], | 54 ], |
| 53 'link_settings': { | 55 'link_settings': { |
| 54 'libraries': [ | 56 'libraries': [ |
| 55 '-landroid', | 57 '-landroid', |
| 56 ], | 58 ], |
| 57 }, | 59 }, |
| 58 }], | 60 }], |
| 61 [ 'skia_os == "linux"', { |
| 62 'link_settings': { |
| 63 'libraries': [ |
| 64 '-lX11-xcb', |
| 65 ], |
| 66 }, |
| 67 }], |
| 59 ['skia_os != "android"', { | 68 ['skia_os != "android"', { |
| 60 'sources/': [ ['exclude', '_android.(h|cpp)$'], | 69 'sources/': [ ['exclude', '_android.(h|cpp)$'], |
| 61 ], | 70 ], |
| 62 }], | 71 }], |
| 72 ['skia_os != "linux"', { |
| 73 'sources/': [ |
| 74 ['exclude', '_unix.(h|cpp)$'], |
| 75 ['exclude', 'keysym2ucs.c'], |
| 76 ], |
| 77 }], |
| 63 ['skia_os != "win"', { | 78 ['skia_os != "win"', { |
| 64 'sources/': [ ['exclude', '_win.(h|cpp)$'], | 79 'sources/': [ ['exclude', '_win.(h|cpp)$'], |
| 65 ], | 80 ], |
| 66 }], | 81 }], |
| 67 ], | 82 ], |
| 68 }, | 83 }, |
| 69 ], | 84 ], |
| 70 } | 85 } |
| OLD | NEW |