blob: 033232a35a71c37caed7180175052968bd9c4630 [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',
jvanverthc7027ab2016-06-16 09:52:35 -070017 'samples.gypi',
jvanverth9f372462016-04-06 06:08:59 -070018 ],
19 'include_dirs': [
20 '../bench',
21 '../gm',
22 '../include/private',
23 '../src/core',
24 '../src/effects',
25 '../src/gpu',
egdanielf533f112016-06-13 11:30:10 -070026 '../src/image',
jvanverthc7027ab2016-06-16 09:52:35 -070027 '../src/images',
28 '../src/pathops',
jvanverth1d155962016-05-23 13:13:36 -070029 '../src/views/unix',
jvanverth3d6ed3a2016-04-07 11:09:51 -070030 '../tools/timer',
jvanverth9f372462016-04-06 06:08:59 -070031 ],
32 'sources': [
33 '../gm/gm.cpp',
mtkleinada5a442016-08-02 14:28:26 -070034 '<!@(python find.py "*.cpp" ../tools/viewer)',
jvanverth1ba1d372016-08-04 12:30:31 -070035 '<!@(python find.py "*.h" ../tools/viewer)',
jvanverthc7027ab2016-06-16 09:52:35 -070036
37 # views (subset of files for the Android build)
38 '../src/views/SkEvent.cpp',
39 '../src/views/SkEventSink.cpp',
40 '../src/views/SkOSMenu.cpp',
41 '../src/views/SkTagList.cpp',
42 '../src/views/SkTagList.h',
43 '../src/views/SkTouchGesture.cpp',
44 '../src/views/SkView.cpp',
45 '../src/views/SkViewPriv.cpp',
46 '../src/views/SkViewPriv.h',
47 '../src/views/unix/keysym2ucs.c',
jvanverth9f372462016-04-06 06:08:59 -070048 ],
jvanverthc7027ab2016-06-16 09:52:35 -070049 'sources!': [
50 '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
51 '../samplecode/SampleFontCache.cpp', #relies on pthread.h
mtkleinada5a442016-08-02 14:28:26 -070052 ],
jvanverth9f372462016-04-06 06:08:59 -070053 'dependencies': [
54 'flags.gyp:flags',
Brian Osman16adfa32016-10-18 14:42:44 -040055 'flags.gyp:flags_common',
jvanverth9f372462016-04-06 06:08:59 -070056 'gputest.gyp:skgputest',
57 'jsoncpp.gyp:jsoncpp',
58 'skia_lib.gyp:skia_lib',
59 'tools.gyp:crash_handler',
60 'tools.gyp:proc_stats',
61 'tools.gyp:resources',
62 'tools.gyp:sk_tool_utils',
63 'tools.gyp:timer',
64 'tools.gyp:url_data_manager',
65 ],
djsollen12d62a72016-04-21 07:59:44 -070066 'conditions' : [
67 [ 'skia_os == "android"', {
68 'dependencies': [
69 'android_deps.gyp:Android_EntryPoint',
70 'android_deps.gyp:native_app_glue',
71 ],
jvanverthc7027ab2016-06-16 09:52:35 -070072 # views depends on SkOSWindow_android, which we don't want to include
73 # so we only include the minimum set of views files in sources
74 'dependencies!': [
75 'views.gyp:views',
76 ],
djsollen12d62a72016-04-21 07:59:44 -070077 'link_settings': {
78 'libraries': [
79 '-landroid',
80 ],
81 },
82 }],
jvanverth063ece72016-06-17 09:29:14 -070083 [ 'skia_os == "linux" and skia_vulkan == 1', {
jvanverth1d155962016-05-23 13:13:36 -070084 'link_settings': {
85 'libraries': [
86 '-lX11-xcb',
87 ],
88 },
89 }],
jvanverth1ba1d372016-08-04 12:30:31 -070090 [ 'skia_os == "mac"', {
91 'dependencies': [
92 'sdl.gyp:sdl',
93 ],
94 }],
djsollen12d62a72016-04-21 07:59:44 -070095 ['skia_os != "android"', {
jvanverthc7027ab2016-06-16 09:52:35 -070096 'sources/': [
97 ['exclude', '_android.(h|cpp)$'],
98 ['exclude', 'src/views'],
djsollen12d62a72016-04-21 07:59:44 -070099 ],
100 }],
jvanverth1d155962016-05-23 13:13:36 -0700101 ['skia_os != "linux"', {
jvanverthc7027ab2016-06-16 09:52:35 -0700102 'sources/': [
jvanverth1d155962016-05-23 13:13:36 -0700103 ['exclude', '_unix.(h|cpp)$'],
104 ['exclude', 'keysym2ucs.c'],
105 ],
106 }],
djsollen12d62a72016-04-21 07:59:44 -0700107 ['skia_os != "win"', {
108 'sources/': [ ['exclude', '_win.(h|cpp)$'],
109 ],
110 }],
jvanvertha3f3cac2016-07-19 14:17:20 -0700111 ['skia_os != "mac"', {
112 'sources/': [ ['exclude', '_mac.(h|cpp)$'],
113 ],
114 }],
jvanverth063ece72016-06-17 09:29:14 -0700115 ['skia_vulkan == 0', {
116 'sources/': [ ['exclude', 'Vulkan']
117 ],
118 }],
djsollen12d62a72016-04-21 07:59:44 -0700119 ],
jvanverth9f372462016-04-06 06:08:59 -0700120 },
121 ],
122}