blob: 4deffc2fbc809899a1c37e5004df88b6e732bd39 [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': [
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000104 '../tools/PictureRenderer.cpp',
105 '../src/pipe/utils/SamplePipeControllers.h',
106 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000107 ],
108 'include_dirs': [
109 '../src/pipe/utils/',
110 '../src/utils/',
111 ],
112 'dependencies': [
113 'skia_base_libs.gyp:skia_base_libs',
borenet@google.combc766112012-09-10 16:20:47 +0000114 'effects.gyp:effects',
keyar@chromium.org9299ede2012-08-21 19:05:08 +0000115 'images.gyp:images',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000116 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000117 ],
118 'export_dependent_settings': [
119 'images.gyp:images',
120 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000121 },
122 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000123 'target_name': 'render_pdfs',
124 'type': 'executable',
125 'sources': [
126 '../tools/render_pdfs_main.cpp',
127 '../tools/PdfRenderer.cpp',
128 '../tools/PdfRenderer.h',
129 ],
130 'include_dirs': [
131 '../src/pipe/utils/',
132 '../src/utils/',
133 ],
134 'dependencies': [
135 'core.gyp:core',
136 'effects.gyp:effects',
137 'images.gyp:images',
138 'pdf.gyp:pdf',
139 'ports.gyp:ports',
140 'tools.gyp:picture_utils',
141 ],
142 },
143 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000144 'target_name': 'picture_utils',
145 'type': 'static_library',
146 'sources': [
147 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000148 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000149 ],
150 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000151 'skia_base_libs.gyp:skia_base_libs',
junov@chromium.org777442d2012-06-12 14:56:36 +0000152 ],
153 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000154 {
155 'target_name': 'pinspect',
156 'type': 'executable',
157 'sources': [
158 '../tools/pinspect.cpp',
159 ],
160 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000161 'skia_base_libs.gyp:skia_base_libs',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000162 'effects.gyp:effects',
163 'images.gyp:images',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000164 ],
165 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000166 {
167 'target_name': 'filter',
168 'type': 'executable',
169 'include_dirs' : [
170 '../src/core',
171 ],
172 'sources': [
173 '../tools/filtermain.cpp',
174 ],
175 'dependencies': [
borenet@google.comefb1d772012-10-10 19:45:51 +0000176 'skia_base_libs.gyp:skia_base_libs',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000177 'effects.gyp:effects',
178 'images.gyp:images',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000179 ],
180 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000181 ],
182}
183
184# Local Variables:
185# tab-width:2
186# indent-tabs-mode:nil
187# End:
188# vim: set expandtab tabstop=2 shiftwidth=2: