blob: 45d98c224ecd87c916ffd25b5e2560f90934cc13 [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',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000024 ],
25 },
26 {
27 'target_name': 'skdiff',
28 'type': 'executable',
29 'sources': [
30 '../tools/skdiff_main.cpp',
31 ],
32 'dependencies': [
33 'core.gyp:core',
djsollen@google.com41b46be2012-03-23 19:36:53 +000034 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000035 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000036 'ports.gyp:ports',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000037 'utils.gyp:utils',
38 ],
39 },
40 {
41 'target_name': 'skhello',
42 'type': 'executable',
43 'sources': [
44 '../tools/skhello.cpp',
45 ],
46 'dependencies': [
47 'core.gyp:core',
djsollen@google.com41b46be2012-03-23 19:36:53 +000048 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000049 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000050 'ports.gyp:ports',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000051 'utils.gyp:utils',
52 ],
53 },
54 {
55 'target_name': 'skimage',
56 'type': 'executable',
57 'sources': [
58 '../tools/skimage_main.cpp',
59 ],
60 'dependencies': [
61 'core.gyp:core',
djsollen@google.com41b46be2012-03-23 19:36:53 +000062 'effects.gyp:effects',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000063 'images.gyp:images',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000064 'ports.gyp:ports',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000065 'utils.gyp:utils',
66 ],
67 },
junov@chromium.org777442d2012-06-12 14:56:36 +000068 {
69 'target_name': 'render_pictures',
70 'type': 'executable',
71 'sources': [
72 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +000073 ],
74 'include_dirs': [
75 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +000076 ],
77 'dependencies': [
78 'core.gyp:core',
junov@chromium.org777442d2012-06-12 14:56:36 +000079 'ports.gyp:ports',
keyar@chromium.org163b5672012-08-01 17:53:29 +000080 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +000081 'tools.gyp:picture_utils',
82 ],
83 },
84 {
reed@google.com006db0f2012-06-27 19:33:29 +000085 'target_name': 'bench_pictures',
86 'type': 'executable',
87 'sources': [
scroggo@google.com9a412522012-09-07 15:21:18 +000088 '../bench/SkBenchLogger.h',
89 '../bench/SkBenchLogger.cpp',
90 '../bench/TimerData.h',
91 '../bench/TimerData.cpp',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +000092 '../tools/bench_pictures_main.cpp',
scroggo@google.com9a412522012-09-07 15:21:18 +000093 '../tools/PictureBenchmark.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +000094 ],
95 'include_dirs': [
96 '../bench',
97 ],
98 'dependencies': [
99 'core.gyp:core',
edisonn@google.comd966ab92012-09-05 19:43:46 +0000100 'effects.gyp:effects',
reed@google.com006db0f2012-06-27 19:33:29 +0000101 'ports.gyp:ports',
reed@google.com006db0f2012-06-27 19:33:29 +0000102 'tools.gyp:picture_utils',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000103 'tools.gyp:picture_renderer',
104 'bench.gyp:bench_timer',
scroggo@google.com9a412522012-09-07 15:21:18 +0000105 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000106 },
107 {
108 'target_name': 'picture_renderer',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000109 'type': 'static_library',
110 'sources': [
111 '../tools/PictureRenderer.cpp',
112 '../src/pipe/utils/SamplePipeControllers.h',
113 '../src/pipe/utils/SamplePipeControllers.cpp',
114 ],
keyar@chromium.orgb00a85b2012-08-20 15:49:47 +0000115 'include_dirs': [
scroggo@google.com58b4ead2012-08-31 16:15:22 +0000116 '../src/pipe/utils/',
117 '../src/utils/',
keyar@chromium.orgb00a85b2012-08-20 15:49:47 +0000118 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000119 'dependencies': [
120 'core.gyp:core',
keyar@chromium.org9299ede2012-08-21 19:05:08 +0000121 'images.gyp:images',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000122 'tools.gyp:picture_utils',
scroggo@google.com58b4ead2012-08-31 16:15:22 +0000123 'utils.gyp:utils',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000124 ],
keyar@chromium.org9299ede2012-08-21 19:05:08 +0000125 'export_dependent_settings': [
126 'images.gyp:images',
127 ],
keyar@chromium.orgb00a85b2012-08-20 15:49:47 +0000128 'conditions': [
129 ['skia_gpu == 1', {
130 'dependencies': [
131 'gpu.gyp:gr',
132 'gpu.gyp:skgr',
133 ],
134 'export_dependent_settings': [
135 'gpu.gyp:gr',
136 ],
137 }],
138 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000139 },
140 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000141 'target_name': 'picture_utils',
142 'type': 'static_library',
143 'sources': [
144 '../tools/picture_utils.cpp',
145 ],
146 'dependencies': [
147 'core.gyp:core',
junov@chromium.org777442d2012-06-12 14:56:36 +0000148 ],
149 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000150 {
151 'target_name': 'pinspect',
152 'type': 'executable',
153 'sources': [
154 '../tools/pinspect.cpp',
155 ],
156 'dependencies': [
157 'core.gyp:core',
158 'effects.gyp:effects',
159 'images.gyp:images',
160 'ports.gyp:ports',
161 'utils.gyp:utils',
162 ],
163 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000164 ],
165}
166
167# Local Variables:
168# tab-width:2
169# indent-tabs-mode:nil
170# End:
171# vim: set expandtab tabstop=2 shiftwidth=2: