joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 1 | # Copyright 2015 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 visual bench tool |
| 6 | { |
bsalomon | 48297f7 | 2015-06-16 12:21:00 -0700 | [diff] [blame^] | 7 | 'includes': [ |
| 8 | 'apptype_console.gypi', |
| 9 | ], |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 10 | 'targets': [ |
| 11 | { |
| 12 | 'target_name': 'visualbench', |
| 13 | 'type': 'executable', |
| 14 | 'mac_bundle' : 1, |
| 15 | 'include_dirs' : [ |
| 16 | '../include/gpu', |
joshualitt | 7fe8ee4 | 2015-06-01 10:03:54 -0700 | [diff] [blame] | 17 | '../src/core', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 18 | '../src/images', |
| 19 | ], |
| 20 | 'sources': [ |
| 21 | '../tools/VisualBench.h', |
| 22 | '../tools/VisualBench.cpp', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 23 | ], |
| 24 | 'dependencies': [ |
| 25 | 'flags.gyp:flags_common', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 26 | 'skia_lib.gyp:skia_lib', |
joshualitt | 7fe8ee4 | 2015-06-01 10:03:54 -0700 | [diff] [blame] | 27 | 'tools.gyp:proc_stats', |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 28 | 'tools.gyp:timer', |
| 29 | 'views.gyp:views', |
| 30 | ], |
| 31 | 'conditions' : [ |
| 32 | [ 'skia_os == "win"', { |
| 33 | 'sources' : [ |
| 34 | '../src/views/win/SkOSWindow_Win.cpp', |
| 35 | '../src/views/win/skia_win.cpp', |
| 36 | ], |
| 37 | }], |
| 38 | [ 'skia_os == "mac"', { |
| 39 | 'sources': [ |
| 40 | '../example/mac/HelloWorldNSView.mm', |
| 41 | '../example/mac/HelloWorldDelegate.mm', |
| 42 | |
| 43 | '../src/views/mac/SkEventNotifier.mm', |
| 44 | '../src/views/mac/skia_mac.mm', |
| 45 | '../src/views/mac/SkNSView.mm', |
| 46 | '../src/views/mac/SkOptionsTableView.mm', |
| 47 | '../src/views/mac/SkOSWindow_Mac.mm', |
| 48 | '../src/views/mac/SkTextFieldCell.m', |
| 49 | ], |
| 50 | 'include_dirs' : [ |
| 51 | '../src/views/mac/' |
| 52 | ], |
| 53 | 'xcode_settings' : { |
| 54 | 'INFOPLIST_FILE' : '../example/mac/HelloWorld-Info.plist', |
| 55 | }, |
| 56 | 'mac_bundle_resources' : [ |
| 57 | '../example/mac/HelloWorld.xib' |
| 58 | ], |
| 59 | }], |
joshualitt | 030dc84 | 2015-06-12 12:51:44 -0700 | [diff] [blame] | 60 | [ 'skia_os == "android"', { |
| 61 | 'dependencies': [ |
| 62 | 'android_deps.gyp:Android_VisualBench', |
| 63 | 'android_deps.gyp:native_app_glue', |
| 64 | ], |
| 65 | 'link_settings': { |
| 66 | 'libraries': [ |
| 67 | '-landroid', |
| 68 | '-lGLESv2', |
| 69 | '-lEGL', |
| 70 | ], |
| 71 | }, |
| 72 | }], |
joshualitt | da7b843 | 2015-05-27 09:19:03 -0700 | [diff] [blame] | 73 | ], |
| 74 | }, |
| 75 | ], |
| 76 | } |