blob: 69c6cae11ad576442452d287850aded69fc19d5b [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': [
34 'core.gyp:core',
djsollen@google.com41b46be2012-03-23 19:36:53 +000035 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000036 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000037 'ports.gyp:ports',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000038 'utils.gyp:utils',
39 ],
40 },
41 {
42 'target_name': 'skhello',
43 'type': 'executable',
44 'sources': [
45 '../tools/skhello.cpp',
46 ],
47 'dependencies': [
48 'core.gyp:core',
djsollen@google.com41b46be2012-03-23 19:36:53 +000049 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000050 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000051 'ports.gyp:ports',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000052 'utils.gyp:utils',
53 ],
54 },
55 {
56 'target_name': 'skimage',
57 'type': 'executable',
58 'sources': [
59 '../tools/skimage_main.cpp',
60 ],
61 'dependencies': [
62 'core.gyp:core',
djsollen@google.com41b46be2012-03-23 19:36:53 +000063 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000064 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000065 'ports.gyp:ports',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000066 'utils.gyp:utils',
67 ],
68 },
junov@chromium.org777442d2012-06-12 14:56:36 +000069 {
70 'target_name': 'render_pictures',
71 'type': 'executable',
72 'sources': [
73 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +000074 ],
75 'include_dirs': [
76 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +000077 ],
78 'dependencies': [
79 'core.gyp:core',
junov@chromium.org777442d2012-06-12 14:56:36 +000080 'ports.gyp:ports',
keyar@chromium.org163b5672012-08-01 17:53:29 +000081 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000082 'tools.gyp:picture_utils',
83 ],
84 },
85 {
reed@google.com006db0f2012-06-27 19:33:29 +000086 'target_name': 'bench_pictures',
87 'type': 'executable',
88 'sources': [
scroggo@google.com9a412522012-09-07 15:21:18 +000089 '../bench/SkBenchLogger.h',
90 '../bench/SkBenchLogger.cpp',
91 '../bench/TimerData.h',
92 '../bench/TimerData.cpp',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +000093 '../tools/bench_pictures_main.cpp',
scroggo@google.com9a412522012-09-07 15:21:18 +000094 '../tools/PictureBenchmark.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +000095 ],
96 'include_dirs': [
97 '../bench',
98 ],
99 'dependencies': [
100 'core.gyp:core',
edisonn@google.comd966ab92012-09-05 19:43:46 +0000101 'effects.gyp:effects',
reed@google.com006db0f2012-06-27 19:33:29 +0000102 'ports.gyp:ports',
reed@google.com006db0f2012-06-27 19:33:29 +0000103 'tools.gyp:picture_utils',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000104 'tools.gyp:picture_renderer',
105 'bench.gyp:bench_timer',
scroggo@google.com9a412522012-09-07 15:21:18 +0000106 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000107 },
108 {
109 'target_name': 'picture_renderer',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000110 'type': 'static_library',
111 'sources': [
112 '../tools/PictureRenderer.cpp',
113 '../src/pipe/utils/SamplePipeControllers.h',
114 '../src/pipe/utils/SamplePipeControllers.cpp',
115 ],
keyar@chromium.orgb00a85b2012-08-20 15:49:47 +0000116 'include_dirs': [
scroggo@google.com58b4ead2012-08-31 16:15:22 +0000117 '../src/pipe/utils/',
118 '../src/utils/',
keyar@chromium.orgb00a85b2012-08-20 15:49:47 +0000119 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000120 'dependencies': [
121 'core.gyp:core',
borenet@google.combc766112012-09-10 16:20:47 +0000122 'effects.gyp:effects',
keyar@chromium.org9299ede2012-08-21 19:05:08 +0000123 'images.gyp:images',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000124 'tools.gyp:picture_utils',
scroggo@google.com58b4ead2012-08-31 16:15:22 +0000125 'utils.gyp:utils',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000126 ],
keyar@chromium.org9299ede2012-08-21 19:05:08 +0000127 'export_dependent_settings': [
128 'images.gyp:images',
129 ],
keyar@chromium.orgb00a85b2012-08-20 15:49:47 +0000130 'conditions': [
131 ['skia_gpu == 1', {
132 'dependencies': [
133 'gpu.gyp:gr',
134 'gpu.gyp:skgr',
135 ],
136 'export_dependent_settings': [
137 'gpu.gyp:gr',
138 ],
139 }],
140 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000141 },
142 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000143 'target_name': 'picture_utils',
144 'type': 'static_library',
145 'sources': [
146 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000147 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000148 ],
149 'dependencies': [
150 'core.gyp:core',
junov@chromium.org777442d2012-06-12 14:56:36 +0000151 ],
152 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000153 {
154 'target_name': 'pinspect',
155 'type': 'executable',
156 'sources': [
157 '../tools/pinspect.cpp',
158 ],
159 'dependencies': [
160 'core.gyp:core',
161 'effects.gyp:effects',
162 'images.gyp:images',
163 'ports.gyp:ports',
164 'utils.gyp:utils',
165 ],
166 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000167 {
168 'target_name': 'filter',
169 'type': 'executable',
170 'include_dirs' : [
171 '../src/core',
172 ],
173 'sources': [
174 '../tools/filtermain.cpp',
175 ],
176 'dependencies': [
177 'core.gyp:core',
178 'effects.gyp:effects',
179 'images.gyp:images',
180 'ports.gyp:ports',
181 'utils.gyp:utils',
182 ],
183 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000184 ],
185}
186
187# Local Variables:
188# tab-width:2
189# indent-tabs-mode:nil
190# End:
191# vim: set expandtab tabstop=2 shiftwidth=2: