blob: 2f99d1e528f876d272296136984890ce08db302c [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{
bsalomon48297f72015-06-16 12:21:00 -07007 'includes': [
8 'apptype_console.gypi',
9 ],
joshualittda7b8432015-05-27 09:19:03 -070010 'targets': [
11 {
12 'target_name': 'visualbench',
13 'type': 'executable',
14 'mac_bundle' : 1,
15 'include_dirs' : [
16 '../include/gpu',
joshualitt7fe8ee42015-06-01 10:03:54 -070017 '../src/core',
joshualittda7b8432015-05-27 09:19:03 -070018 '../src/images',
19 ],
20 'sources': [
21 '../tools/VisualBench.h',
22 '../tools/VisualBench.cpp',
joshualittda7b8432015-05-27 09:19:03 -070023 ],
24 'dependencies': [
25 'flags.gyp:flags_common',
joshualittda7b8432015-05-27 09:19:03 -070026 'skia_lib.gyp:skia_lib',
joshualitt7fe8ee42015-06-01 10:03:54 -070027 'tools.gyp:proc_stats',
joshualittda7b8432015-05-27 09:19:03 -070028 '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 }],
joshualitt030dc842015-06-12 12:51:44 -070060 [ '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 }],
joshualittda7b8432015-05-27 09:19:03 -070073 ],
74 },
75 ],
76}