blob: ebc34e28521ce91206d46d304c978f21db3a1b6b [file] [log] [blame]
joshualittda7b8432015-05-27 09:19:03 -07001# 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{
7 'targets': [
8 {
9 'target_name': 'visualbench',
10 'type': 'executable',
11 'mac_bundle' : 1,
12 'include_dirs' : [
13 '../include/gpu',
joshualitt7fe8ee42015-06-01 10:03:54 -070014 '../src/core',
joshualittda7b8432015-05-27 09:19:03 -070015 '../src/images',
16 ],
17 'sources': [
18 '../tools/VisualBench.h',
19 '../tools/VisualBench.cpp',
20 '../src/images/SkForceLinking.cpp',
21 ],
22 'dependencies': [
23 'flags.gyp:flags_common',
24 'images.gyp:images',
25 'skia_lib.gyp:skia_lib',
joshualitt7fe8ee42015-06-01 10:03:54 -070026 'tools.gyp:proc_stats',
joshualittda7b8432015-05-27 09:19:03 -070027 'tools.gyp:timer',
28 'views.gyp:views',
29 ],
30 'conditions' : [
31 [ 'skia_os == "win"', {
32 'sources' : [
33 '../src/views/win/SkOSWindow_Win.cpp',
34 '../src/views/win/skia_win.cpp',
35 ],
36 }],
37 [ 'skia_os == "mac"', {
38 'sources': [
39 '../example/mac/HelloWorldNSView.mm',
40 '../example/mac/HelloWorldDelegate.mm',
41
42 '../src/views/mac/SkEventNotifier.mm',
43 '../src/views/mac/skia_mac.mm',
44 '../src/views/mac/SkNSView.mm',
45 '../src/views/mac/SkOptionsTableView.mm',
46 '../src/views/mac/SkOSWindow_Mac.mm',
47 '../src/views/mac/SkTextFieldCell.m',
48 ],
49 'include_dirs' : [
50 '../src/views/mac/'
51 ],
52 'xcode_settings' : {
53 'INFOPLIST_FILE' : '../example/mac/HelloWorld-Info.plist',
54 },
55 'mac_bundle_resources' : [
56 '../example/mac/HelloWorld.xib'
57 ],
58 }],
59 ],
60 },
61 ],
62}