blob: 1013e070ae0c9bd043c3100232e8a08bd8edd317 [file] [log] [blame]
jvanverth9f372462016-04-06 06:08:59 -07001# Copyright 2016 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 performance testbench.
6#
7{
8 'includes': [
9 'apptype_console.gypi',
10 ],
11 'targets': [
12 {
jvanverth34524262016-05-04 13:49:13 -070013 'target_name': 'viewer',
jvanverth9f372462016-04-06 06:08:59 -070014 'type': 'executable',
15 'includes' : [
16 'gmslides.gypi',
17 ],
18 'include_dirs': [
19 '../bench',
20 '../gm',
liyuqiand3cdbca2016-05-17 12:44:20 -070021 '../include/views',
jvanverth9f372462016-04-06 06:08:59 -070022 '../include/private',
23 '../src/core',
24 '../src/effects',
25 '../src/gpu',
jvanverth76963e72016-06-13 09:31:26 -070026 '../src/images',
egdanielf533f112016-06-13 11:30:10 -070027 '../src/image',
jvanverth1d155962016-05-23 13:13:36 -070028 '../src/views/unix',
jvanverth3d6ed3a2016-04-07 11:09:51 -070029 '../tools/timer',
jvanverth9f372462016-04-06 06:08:59 -070030 ],
31 'sources': [
32 '../gm/gm.cpp',
egdanielf533f112016-06-13 11:30:10 -070033 '../src/views/SkTouchGesture.cpp',
jvanverth1d155962016-05-23 13:13:36 -070034 '../src/views/unix/keysym2ucs.c',
jvanverth34524262016-05-04 13:49:13 -070035 '<!@(python find.py ../tools/viewer "*.cpp")',
jvanverth9f372462016-04-06 06:08:59 -070036 ],
37 'dependencies': [
38 'flags.gyp:flags',
39 'gputest.gyp:skgputest',
40 'jsoncpp.gyp:jsoncpp',
41 'skia_lib.gyp:skia_lib',
42 'tools.gyp:crash_handler',
43 'tools.gyp:proc_stats',
44 'tools.gyp:resources',
45 'tools.gyp:sk_tool_utils',
46 'tools.gyp:timer',
47 'tools.gyp:url_data_manager',
48 ],
djsollen12d62a72016-04-21 07:59:44 -070049 'conditions' : [
50 [ 'skia_os == "android"', {
51 'dependencies': [
52 'android_deps.gyp:Android_EntryPoint',
53 'android_deps.gyp:native_app_glue',
54 ],
55 'link_settings': {
56 'libraries': [
57 '-landroid',
58 ],
59 },
60 }],
jvanverth1d155962016-05-23 13:13:36 -070061 [ 'skia_os == "linux"', {
62 'link_settings': {
63 'libraries': [
64 '-lX11-xcb',
65 ],
66 },
67 }],
djsollen12d62a72016-04-21 07:59:44 -070068 ['skia_os != "android"', {
69 'sources/': [ ['exclude', '_android.(h|cpp)$'],
70 ],
71 }],
jvanverth1d155962016-05-23 13:13:36 -070072 ['skia_os != "linux"', {
73 'sources/': [
74 ['exclude', '_unix.(h|cpp)$'],
75 ['exclude', 'keysym2ucs.c'],
76 ],
77 }],
djsollen12d62a72016-04-21 07:59:44 -070078 ['skia_os != "win"', {
79 'sources/': [ ['exclude', '_win.(h|cpp)$'],
80 ],
81 }],
82 ],
jvanverth9f372462016-04-06 06:08:59 -070083 },
84 ],
85}