blob: ee0321a937dec760c956290d39b028093578ae46 [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',
14 '../src/images',
15 ],
16 'sources': [
17 '../tools/VisualBench.h',
18 '../tools/VisualBench.cpp',
19 '../src/images/SkForceLinking.cpp',
20 ],
21 'dependencies': [
22 'flags.gyp:flags_common',
23 'images.gyp:images',
24 'skia_lib.gyp:skia_lib',
25 'tools.gyp:timer',
26 'views.gyp:views',
27 ],
28 'conditions' : [
29 [ 'skia_os == "win"', {
30 'sources' : [
31 '../src/views/win/SkOSWindow_Win.cpp',
32 '../src/views/win/skia_win.cpp',
33 ],
34 }],
35 [ 'skia_os == "mac"', {
36 'sources': [
37 '../example/mac/HelloWorldNSView.mm',
38 '../example/mac/HelloWorldDelegate.mm',
39
40 '../src/views/mac/SkEventNotifier.mm',
41 '../src/views/mac/skia_mac.mm',
42 '../src/views/mac/SkNSView.mm',
43 '../src/views/mac/SkOptionsTableView.mm',
44 '../src/views/mac/SkOSWindow_Mac.mm',
45 '../src/views/mac/SkTextFieldCell.m',
46 ],
47 'include_dirs' : [
48 '../src/views/mac/'
49 ],
50 'xcode_settings' : {
51 'INFOPLIST_FILE' : '../example/mac/HelloWorld-Info.plist',
52 },
53 'mac_bundle_resources' : [
54 '../example/mac/HelloWorld.xib'
55 ],
56 }],
57 ],
58 },
59 ],
60}