blob: 0cdb3197a02847662067431d2f08ca82cb0c547e [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': [
18 'skdiff',
19 'skhello',
20 'skimage',
junov@chromium.org777442d2012-06-12 14:56:36 +000021 'render_pictures',
reed@google.com006db0f2012-06-27 19:33:29 +000022 'bench_pictures',
reed@google.com1bdf7fe2012-06-14 18:58:40 +000023 'pinspect',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +000024 'filter',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000025 ],
26 },
27 {
28 'target_name': 'skdiff',
29 'type': 'executable',
30 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000031 '../tools/skdiff.cpp',
32 '../tools/skdiff.h',
33 '../tools/skdiff_html.cpp',
34 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000035 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000036 '../tools/skdiff_utils.cpp',
37 '../tools/skdiff_utils.h',
38 ],
39 'dependencies': [
40 'skia_base_libs.gyp:skia_base_libs',
41 'effects.gyp:effects',
42 'images.gyp:images',
43 ],
44 },
45 {
46 'target_name': 'skimagediff',
47 'type': 'executable',
48 'sources': [
49 '../tools/skdiff.cpp',
50 '../tools/skdiff.h',
51 '../tools/skdiff_html.cpp',
52 '../tools/skdiff_html.h',
53 '../tools/skdiff_image.cpp',
54 '../tools/skdiff_utils.cpp',
55 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000056 ],
57 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000058 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000059 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000060 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000061 ],
62 },
63 {
64 'target_name': 'skhello',
65 'type': 'executable',
66 'sources': [
67 '../tools/skhello.cpp',
68 ],
69 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000070 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000071 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000072 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000073 ],
74 },
75 {
76 'target_name': 'skimage',
77 'type': 'executable',
78 'sources': [
79 '../tools/skimage_main.cpp',
80 ],
81 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000082 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000083 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000084 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000085 ],
86 },
junov@chromium.org777442d2012-06-12 14:56:36 +000087 {
88 'target_name': 'render_pictures',
89 'type': 'executable',
90 'sources': [
91 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +000092 ],
93 'include_dirs': [
94 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +000095 ],
96 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000097 'skia_base_libs.gyp:skia_base_libs',
keyar@chromium.org163b5672012-08-01 17:53:29 +000098 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000099 'tools.gyp:picture_utils',
100 ],
101 },
102 {
reed@google.com006db0f2012-06-27 19:33:29 +0000103 'target_name': 'bench_pictures',
104 'type': 'executable',
105 'sources': [
scroggo@google.com9a412522012-09-07 15:21:18 +0000106 '../bench/SkBenchLogger.h',
107 '../bench/SkBenchLogger.cpp',
108 '../bench/TimerData.h',
109 '../bench/TimerData.cpp',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000110 '../tools/bench_pictures_main.cpp',
scroggo@google.com9a412522012-09-07 15:21:18 +0000111 '../tools/PictureBenchmark.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000112 ],
113 'include_dirs': [
114 '../bench',
115 ],
116 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000117 'skia_base_libs.gyp:skia_base_libs',
edisonn@google.comd966ab92012-09-05 19:43:46 +0000118 'effects.gyp:effects',
reed@google.com006db0f2012-06-27 19:33:29 +0000119 'tools.gyp:picture_utils',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000120 'tools.gyp:picture_renderer',
121 'bench.gyp:bench_timer',
scroggo@google.com9a412522012-09-07 15:21:18 +0000122 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000123 },
124 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000125 'target_name': 'picture_renderer',
126 'type': 'static_library',
127 'sources': [
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000128 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000129 '../tools/PictureRenderer.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000130 '../tools/CopyTilesRenderer.h',
131 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000132 '../src/pipe/utils/SamplePipeControllers.h',
133 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000134 ],
135 'include_dirs': [
junov@chromium.org9313ca42012-11-02 18:11:49 +0000136 '../src/core/',
borenet@google.comefb1d772012-10-10 19:45:51 +0000137 '../src/pipe/utils/',
138 '../src/utils/',
139 ],
140 'dependencies': [
141 'skia_base_libs.gyp:skia_base_libs',
borenet@google.combc766112012-09-10 16:20:47 +0000142 'effects.gyp:effects',
keyar@chromium.org9299ede2012-08-21 19:05:08 +0000143 'images.gyp:images',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000144 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000145 ],
146 'export_dependent_settings': [
147 'images.gyp:images',
148 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000149 },
150 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000151 'target_name': 'render_pdfs',
152 'type': 'executable',
153 'sources': [
154 '../tools/render_pdfs_main.cpp',
155 '../tools/PdfRenderer.cpp',
156 '../tools/PdfRenderer.h',
157 ],
158 'include_dirs': [
159 '../src/pipe/utils/',
160 '../src/utils/',
161 ],
162 'dependencies': [
163 'core.gyp:core',
164 'effects.gyp:effects',
165 'images.gyp:images',
166 'pdf.gyp:pdf',
167 'ports.gyp:ports',
168 'tools.gyp:picture_utils',
169 ],
170 },
171 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000172 'target_name': 'picture_utils',
173 'type': 'static_library',
174 'sources': [
175 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000176 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000177 ],
178 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000179 'skia_base_libs.gyp:skia_base_libs',
junov@chromium.org777442d2012-06-12 14:56:36 +0000180 ],
181 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000182 {
183 'target_name': 'pinspect',
184 'type': 'executable',
185 'sources': [
186 '../tools/pinspect.cpp',
187 ],
188 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000189 'skia_base_libs.gyp:skia_base_libs',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000190 'effects.gyp:effects',
191 'images.gyp:images',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000192 ],
193 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000194 {
195 'target_name': 'filter',
196 'type': 'executable',
197 'include_dirs' : [
198 '../src/core',
199 ],
200 'sources': [
201 '../tools/filtermain.cpp',
robertphillips@google.comd3d377f2012-12-07 20:56:13 +0000202 '../tools/path_utils.cpp',
203 '../tools/path_utils.h',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000204 ],
205 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000206 'skia_base_libs.gyp:skia_base_libs',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000207 'effects.gyp:effects',
208 'images.gyp:images',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000209 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000210 ],
211 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000212 ],
213}
214
215# Local Variables:
216# tab-width:2
217# indent-tabs-mode:nil
218# End:
219# vim: set expandtab tabstop=2 shiftwidth=2: