blob: 6f419712b5213cd4416d73b73b4ce7a635d76198 [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': [
31 '../tools/skdiff_main.cpp',
32 ],
33 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000034 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000035 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000036 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000037 ],
38 },
39 {
40 'target_name': 'skhello',
41 'type': 'executable',
42 'sources': [
43 '../tools/skhello.cpp',
44 ],
45 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000046 'skia_base_libs.gyp:skia_base_libs',
djsollen@google.com41b46be2012-03-23 19:36:53 +000047 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000048 'images.gyp:images',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000049 ],
50 },
51 {
52 'target_name': 'skimage',
53 'type': 'executable',
54 'sources': [
55 '../tools/skimage_main.cpp',
56 ],
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 },
junov@chromium.org777442d2012-06-12 14:56:36 +000063 {
64 'target_name': 'render_pictures',
65 'type': 'executable',
66 'sources': [
67 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +000068 ],
69 'include_dirs': [
70 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +000071 ],
72 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000073 'skia_base_libs.gyp:skia_base_libs',
keyar@chromium.org163b5672012-08-01 17:53:29 +000074 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000075 'tools.gyp:picture_utils',
76 ],
77 },
78 {
reed@google.com006db0f2012-06-27 19:33:29 +000079 'target_name': 'bench_pictures',
80 'type': 'executable',
81 'sources': [
scroggo@google.com9a412522012-09-07 15:21:18 +000082 '../bench/SkBenchLogger.h',
83 '../bench/SkBenchLogger.cpp',
84 '../bench/TimerData.h',
85 '../bench/TimerData.cpp',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +000086 '../tools/bench_pictures_main.cpp',
scroggo@google.com9a412522012-09-07 15:21:18 +000087 '../tools/PictureBenchmark.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +000088 ],
89 'include_dirs': [
90 '../bench',
91 ],
92 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +000093 'skia_base_libs.gyp:skia_base_libs',
edisonn@google.comd966ab92012-09-05 19:43:46 +000094 'effects.gyp:effects',
reed@google.com006db0f2012-06-27 19:33:29 +000095 'tools.gyp:picture_utils',
keyar@chromium.org163b5672012-08-01 17:53:29 +000096 'tools.gyp:picture_renderer',
97 'bench.gyp:bench_timer',
scroggo@google.com9a412522012-09-07 15:21:18 +000098 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +000099 },
100 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000101 'target_name': 'picture_renderer',
102 'type': 'static_library',
103 'sources': [
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000104 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000105 '../tools/PictureRenderer.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000106 '../tools/CopyTilesRenderer.h',
107 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000108 '../src/pipe/utils/SamplePipeControllers.h',
109 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000110 ],
111 'include_dirs': [
junov@chromium.org9313ca42012-11-02 18:11:49 +0000112 '../src/core/',
borenet@google.comefb1d772012-10-10 19:45:51 +0000113 '../src/pipe/utils/',
114 '../src/utils/',
115 ],
116 'dependencies': [
117 'skia_base_libs.gyp:skia_base_libs',
borenet@google.combc766112012-09-10 16:20:47 +0000118 'effects.gyp:effects',
keyar@chromium.org9299ede2012-08-21 19:05:08 +0000119 'images.gyp:images',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000120 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000121 ],
122 'export_dependent_settings': [
123 'images.gyp:images',
124 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000125 },
126 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000127 'target_name': 'render_pdfs',
128 'type': 'executable',
129 'sources': [
130 '../tools/render_pdfs_main.cpp',
131 '../tools/PdfRenderer.cpp',
132 '../tools/PdfRenderer.h',
133 ],
134 'include_dirs': [
135 '../src/pipe/utils/',
136 '../src/utils/',
137 ],
138 'dependencies': [
139 'core.gyp:core',
140 'effects.gyp:effects',
141 'images.gyp:images',
142 'pdf.gyp:pdf',
143 'ports.gyp:ports',
144 'tools.gyp:picture_utils',
145 ],
146 },
147 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000148 'target_name': 'picture_utils',
149 'type': 'static_library',
150 'sources': [
151 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000152 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000153 ],
154 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000155 'skia_base_libs.gyp:skia_base_libs',
junov@chromium.org777442d2012-06-12 14:56:36 +0000156 ],
157 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000158 {
159 'target_name': 'pinspect',
160 'type': 'executable',
161 'sources': [
162 '../tools/pinspect.cpp',
163 ],
164 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000165 'skia_base_libs.gyp:skia_base_libs',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000166 'effects.gyp:effects',
167 'images.gyp:images',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000168 ],
169 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000170 {
171 'target_name': 'filter',
172 'type': 'executable',
173 'include_dirs' : [
174 '../src/core',
175 ],
176 'sources': [
177 '../tools/filtermain.cpp',
178 ],
179 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000180 'skia_base_libs.gyp:skia_base_libs',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000181 'effects.gyp:effects',
182 'images.gyp:images',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000183 ],
184 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000185 ],
186}
187
188# Local Variables:
189# tab-width:2
190# indent-tabs-mode:nil
191# End:
192# vim: set expandtab tabstop=2 shiftwidth=2: