blob: 012281a68ede5151270166237710570ef6b05e04 [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',
jvanverth34524262016-05-04 13:49:13 -070034 '<!@(python find.py ../tools/viewer "*.cpp")',
jvanverthc7027ab2016-06-16 09:52:35 -070035
36 # views (subset of files for the Android build)
37 '../src/views/SkEvent.cpp',
38 '../src/views/SkEventSink.cpp',
39 '../src/views/SkOSMenu.cpp',
40 '../src/views/SkTagList.cpp',
41 '../src/views/SkTagList.h',
42 '../src/views/SkTouchGesture.cpp',
43 '../src/views/SkView.cpp',
44 '../src/views/SkViewPriv.cpp',
45 '../src/views/SkViewPriv.h',
46 '../src/views/unix/keysym2ucs.c',
jvanverth9f372462016-04-06 06:08:59 -070047 ],
jvanverthc7027ab2016-06-16 09:52:35 -070048 'sources!': [
49 '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
50 '../samplecode/SampleFontCache.cpp', #relies on pthread.h
51 ],
jvanverth9f372462016-04-06 06:08:59 -070052 'dependencies': [
53 'flags.gyp:flags',
54 'gputest.gyp:skgputest',
55 'jsoncpp.gyp:jsoncpp',
56 'skia_lib.gyp:skia_lib',
57 'tools.gyp:crash_handler',
58 'tools.gyp:proc_stats',
59 'tools.gyp:resources',
60 'tools.gyp:sk_tool_utils',
61 'tools.gyp:timer',
62 'tools.gyp:url_data_manager',
63 ],
djsollen12d62a72016-04-21 07:59:44 -070064 'conditions' : [
65 [ 'skia_os == "android"', {
66 'dependencies': [
67 'android_deps.gyp:Android_EntryPoint',
68 'android_deps.gyp:native_app_glue',
69 ],
jvanverthc7027ab2016-06-16 09:52:35 -070070 # views depends on SkOSWindow_android, which we don't want to include
71 # so we only include the minimum set of views files in sources
72 'dependencies!': [
73 'views.gyp:views',
74 ],
djsollen12d62a72016-04-21 07:59:44 -070075 'link_settings': {
76 'libraries': [
77 '-landroid',
78 ],
79 },
80 }],
jvanverth1d155962016-05-23 13:13:36 -070081 [ 'skia_os == "linux"', {
82 'link_settings': {
83 'libraries': [
84 '-lX11-xcb',
85 ],
86 },
87 }],
djsollen12d62a72016-04-21 07:59:44 -070088 ['skia_os != "android"', {
jvanverthc7027ab2016-06-16 09:52:35 -070089 'sources/': [
90 ['exclude', '_android.(h|cpp)$'],
91 ['exclude', 'src/views'],
djsollen12d62a72016-04-21 07:59:44 -070092 ],
93 }],
jvanverth1d155962016-05-23 13:13:36 -070094 ['skia_os != "linux"', {
jvanverthc7027ab2016-06-16 09:52:35 -070095 'sources/': [
jvanverth1d155962016-05-23 13:13:36 -070096 ['exclude', '_unix.(h|cpp)$'],
97 ['exclude', 'keysym2ucs.c'],
98 ],
99 }],
djsollen12d62a72016-04-21 07:59:44 -0700100 ['skia_os != "win"', {
101 'sources/': [ ['exclude', '_win.(h|cpp)$'],
102 ],
103 }],
104 ],
jvanverth9f372462016-04-06 06:08:59 -0700105 },
106 ],
107}