blob: 94c9b7339ae940a17d25ebeaf8f3f11da13724a0 [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',
joshualittda7b8432015-05-27 09:19:03 -070020 ],
21 'dependencies': [
22 'flags.gyp:flags_common',
joshualittda7b8432015-05-27 09:19:03 -070023 'skia_lib.gyp:skia_lib',
joshualitt7fe8ee42015-06-01 10:03:54 -070024 'tools.gyp:proc_stats',
joshualittda7b8432015-05-27 09:19:03 -070025 '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 }],
joshualitt030dc842015-06-12 12:51:44 -070057 [ 'skia_os == "android"', {
58 'dependencies': [
59 'android_deps.gyp:Android_VisualBench',
60 'android_deps.gyp:native_app_glue',
61 ],
62 'link_settings': {
63 'libraries': [
64 '-landroid',
65 '-lGLESv2',
66 '-lEGL',
67 ],
68 },
69 }],
joshualittda7b8432015-05-27 09:19:03 -070070 ],
71 },
72 ],
73}