blob: 7e5d79e8952926c38c4dad492b2917881bf7398e [file] [log] [blame]
epoger@google.comccdbd2c2011-06-02 14:38:23 +00001# GYP file to build various tools.
2#
3# To build on Linux:
4# ./gyp_skia tools.gyp && make tools
5#
6# Building on other platforms not tested yet.
7#
8{
9 'includes': [
10 'apptype_console.gypi',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000011 ],
12 'targets': [
13 {
14 # Build all executable targets defined below.
15 'target_name': 'tools',
16 'type': 'none',
17 'dependencies': [
edisonn@google.com8ba9a832013-01-18 18:06:22 +000018 'bench_pictures',
19 'filter',
20 'pinspect',
21 'render_pdfs',
22 'render_pictures',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000023 'skdiff',
24 'skhello',
25 'skimage',
26 ],
27 },
28 {
29 'target_name': 'skdiff',
30 'type': 'executable',
31 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000032 '../tools/skdiff.cpp',
33 '../tools/skdiff.h',
34 '../tools/skdiff_html.cpp',
35 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000036 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000037 '../tools/skdiff_utils.cpp',
38 '../tools/skdiff_utils.h',
39 ],
40 'dependencies': [
41 'skia_base_libs.gyp:skia_base_libs',
42 'effects.gyp:effects',
43 'images.gyp:images',
44 ],
45 },
46 {
47 'target_name': 'skimagediff',
48 'type': 'executable',
49 'sources': [
50 '../tools/skdiff.cpp',
51 '../tools/skdiff.h',
52 '../tools/skdiff_html.cpp',
53 '../tools/skdiff_html.h',
54 '../tools/skdiff_image.cpp',
55 '../tools/skdiff_utils.cpp',
56 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000057 ],
58 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000059 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000060 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000061 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000062 ],
63 },
64 {
65 'target_name': 'skhello',
66 'type': 'executable',
67 'sources': [
68 '../tools/skhello.cpp',
69 ],
70 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000071 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000072 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000073 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000074 ],
75 },
76 {
77 'target_name': 'skimage',
78 'type': 'executable',
79 'sources': [
80 '../tools/skimage_main.cpp',
81 ],
82 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000083 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000084 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000085 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000086 ],
87 },
junov@chromium.org777442d2012-06-12 14:56:36 +000088 {
89 'target_name': 'render_pictures',
90 'type': 'executable',
91 'sources': [
92 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +000093 ],
94 'include_dirs': [
95 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +000096 ],
97 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000098 'skia_base_libs.gyp:skia_base_libs',
keyar@chromium.org163b5672012-08-01 17:53:29 +000099 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000100 'tools.gyp:picture_utils',
101 ],
102 },
103 {
reed@google.com006db0f2012-06-27 19:33:29 +0000104 'target_name': 'bench_pictures',
105 'type': 'executable',
106 'sources': [
scroggo@google.com9a412522012-09-07 15:21:18 +0000107 '../bench/SkBenchLogger.h',
108 '../bench/SkBenchLogger.cpp',
109 '../bench/TimerData.h',
110 '../bench/TimerData.cpp',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000111 '../tools/bench_pictures_main.cpp',
scroggo@google.com9a412522012-09-07 15:21:18 +0000112 '../tools/PictureBenchmark.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000113 ],
114 'include_dirs': [
115 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000116 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000117 ],
118 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000119 'skia_base_libs.gyp:skia_base_libs',
edisonn@google.comd966ab92012-09-05 19:43:46 +0000120 'effects.gyp:effects',
reed@google.com006db0f2012-06-27 19:33:29 +0000121 'tools.gyp:picture_utils',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000122 'tools.gyp:picture_renderer',
123 'bench.gyp:bench_timer',
scroggo@google.com9a412522012-09-07 15:21:18 +0000124 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000125 },
126 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000127 'target_name': 'picture_renderer',
128 'type': 'static_library',
129 'sources': [
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000130 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000131 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000132 '../tools/PictureRenderingFlags.h',
133 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000134 '../tools/CopyTilesRenderer.h',
135 '../tools/CopyTilesRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000136 '../tools/SkFlags.h',
137 '../tools/SkFlags.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000138 '../src/pipe/utils/SamplePipeControllers.h',
139 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000140 ],
141 'include_dirs': [
junov@chromium.org9313ca42012-11-02 18:11:49 +0000142 '../src/core/',
borenet@google.comefb1d772012-10-10 19:45:51 +0000143 '../src/pipe/utils/',
144 '../src/utils/',
145 ],
146 'dependencies': [
147 'skia_base_libs.gyp:skia_base_libs',
borenet@google.combc766112012-09-10 16:20:47 +0000148 'effects.gyp:effects',
keyar@chromium.org9299ede2012-08-21 19:05:08 +0000149 'images.gyp:images',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000150 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000151 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000152 'conditions': [
153 ['skia_gpu == 1',
154 {
155 'include_dirs' : [
156 '../src/gpu',
157 ],
158 },
159 ],
160 ],
borenet@google.comefb1d772012-10-10 19:45:51 +0000161 'export_dependent_settings': [
162 'images.gyp:images',
163 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000164 },
165 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000166 'target_name': 'render_pdfs',
167 'type': 'executable',
168 'sources': [
169 '../tools/render_pdfs_main.cpp',
170 '../tools/PdfRenderer.cpp',
171 '../tools/PdfRenderer.h',
172 ],
173 'include_dirs': [
174 '../src/pipe/utils/',
175 '../src/utils/',
176 ],
177 'dependencies': [
178 'core.gyp:core',
179 'effects.gyp:effects',
180 'images.gyp:images',
181 'pdf.gyp:pdf',
182 'ports.gyp:ports',
183 'tools.gyp:picture_utils',
184 ],
185 },
186 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000187 'target_name': 'picture_utils',
188 'type': 'static_library',
189 'sources': [
190 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000191 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000192 ],
193 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000194 'skia_base_libs.gyp:skia_base_libs',
junov@chromium.org777442d2012-06-12 14:56:36 +0000195 ],
196 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000197 {
198 'target_name': 'pinspect',
199 'type': 'executable',
200 'sources': [
201 '../tools/pinspect.cpp',
202 ],
203 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000204 'skia_base_libs.gyp:skia_base_libs',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000205 'effects.gyp:effects',
206 'images.gyp:images',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000207 ],
208 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000209 {
210 'target_name': 'filter',
211 'type': 'executable',
212 'include_dirs' : [
213 '../src/core',
robertphillips@google.com3b0a9fe2013-01-31 15:56:22 +0000214 '../debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000215 ],
216 'sources': [
217 '../tools/filtermain.cpp',
robertphillips@google.comd3d377f2012-12-07 20:56:13 +0000218 '../tools/path_utils.h',
robertphillips@google.com3b0a9fe2013-01-31 15:56:22 +0000219 '../tools/path_utils.cpp',
220 '../debugger/SkDrawCommand.h',
221 '../debugger/SkDrawCommand.cpp',
222 '../debugger/SkDebugCanvas.h',
223 '../debugger/SkDebugCanvas.cpp',
224 '../debugger/SkObjectParser.h',
225 '../debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000226 ],
227 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000228 'skia_base_libs.gyp:skia_base_libs',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000229 'effects.gyp:effects',
230 'images.gyp:images',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000231 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000232 ],
233 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000234 ],
235}
236
237# Local Variables:
238# tab-width:2
239# indent-tabs-mode:nil
240# End:
241# vim: set expandtab tabstop=2 shiftwidth=2: