blob: 4317b8adb3b481bced9fe7e6a693b46769877608 [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',
55 'gputest.gyp:skgputest',
56 'jsoncpp.gyp:jsoncpp',
57 'skia_lib.gyp:skia_lib',
58 'tools.gyp:crash_handler',
59 'tools.gyp:proc_stats',
60 'tools.gyp:resources',
61 'tools.gyp:sk_tool_utils',
62 'tools.gyp:timer',
63 'tools.gyp:url_data_manager',
64 ],
djsollen12d62a72016-04-21 07:59:44 -070065 'conditions' : [
66 [ 'skia_os == "android"', {
67 'dependencies': [
68 'android_deps.gyp:Android_EntryPoint',
69 'android_deps.gyp:native_app_glue',
70 ],
jvanverthc7027ab2016-06-16 09:52:35 -070071 # views depends on SkOSWindow_android, which we don't want to include
72 # so we only include the minimum set of views files in sources
73 'dependencies!': [
74 'views.gyp:views',
75 ],
djsollen12d62a72016-04-21 07:59:44 -070076 'link_settings': {
77 'libraries': [
78 '-landroid',
79 ],
80 },
81 }],
jvanverth063ece72016-06-17 09:29:14 -070082 [ 'skia_os == "linux" and skia_vulkan == 1', {
jvanverth1d155962016-05-23 13:13:36 -070083 'link_settings': {
84 'libraries': [
85 '-lX11-xcb',
86 ],
87 },
88 }],
jvanverth1ba1d372016-08-04 12:30:31 -070089 [ 'skia_os == "mac"', {
90 'dependencies': [
91 'sdl.gyp:sdl',
92 ],
93 }],
djsollen12d62a72016-04-21 07:59:44 -070094 ['skia_os != "android"', {
jvanverthc7027ab2016-06-16 09:52:35 -070095 'sources/': [
96 ['exclude', '_android.(h|cpp)$'],
97 ['exclude', 'src/views'],
djsollen12d62a72016-04-21 07:59:44 -070098 ],
99 }],
jvanverth1d155962016-05-23 13:13:36 -0700100 ['skia_os != "linux"', {
jvanverthc7027ab2016-06-16 09:52:35 -0700101 'sources/': [
jvanverth1d155962016-05-23 13:13:36 -0700102 ['exclude', '_unix.(h|cpp)$'],
103 ['exclude', 'keysym2ucs.c'],
104 ],
105 }],
djsollen12d62a72016-04-21 07:59:44 -0700106 ['skia_os != "win"', {
107 'sources/': [ ['exclude', '_win.(h|cpp)$'],
108 ],
109 }],
jvanvertha3f3cac2016-07-19 14:17:20 -0700110 ['skia_os != "mac"', {
111 'sources/': [ ['exclude', '_mac.(h|cpp)$'],
112 ],
113 }],
jvanverth063ece72016-06-17 09:29:14 -0700114 ['skia_vulkan == 0', {
115 'sources/': [ ['exclude', 'Vulkan']
116 ],
117 }],
djsollen12d62a72016-04-21 07:59:44 -0700118 ],
jvanverth9f372462016-04-06 06:08:59 -0700119 },
120 ],
121}