epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 1 | # GYP file to build various tools. |
| 2 | # |
| 3 | # To build on Linux: |
| 4 | # ./gyp_skia tools.gyp && make tools |
| 5 | # |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 6 | { |
| 7 | 'includes': [ |
| 8 | 'apptype_console.gypi', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 9 | ], |
| 10 | 'targets': [ |
| 11 | { |
| 12 | # Build all executable targets defined below. |
| 13 | 'target_name': 'tools', |
| 14 | 'type': 'none', |
| 15 | 'dependencies': [ |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 16 | 'bbh_shootout', |
edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 17 | 'bench_pictures', |
commit-bot@chromium.org | 15ac322 | 2014-01-13 12:03:47 +0000 | [diff] [blame] | 18 | 'bench_record', |
commit-bot@chromium.org | ba73d28 | 2014-04-11 15:53:39 +0000 | [diff] [blame] | 19 | 'bench_playback', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 20 | 'dump_record', |
edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 21 | 'filter', |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 22 | 'gpuveto', |
commit-bot@chromium.org | 5ccdf01 | 2014-01-02 18:51:38 +0000 | [diff] [blame] | 23 | 'lua_app', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 24 | 'lua_pictures', |
edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 25 | 'pinspect', |
| 26 | 'render_pdfs', |
| 27 | 'render_pictures', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 28 | 'skdiff', |
commit-bot@chromium.org | 5ccdf01 | 2014-01-02 18:51:38 +0000 | [diff] [blame] | 29 | 'skhello', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 30 | 'skpdiff', |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 31 | 'skpinfo', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 32 | 'skpmaker', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 33 | 'skimage', |
halcanary@google.com | fed3037 | 2013-10-04 12:46:45 +0000 | [diff] [blame] | 34 | 'test_image_decoder', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 35 | ], |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 36 | 'conditions': [ |
| 37 | ['skia_shared_lib', |
| 38 | { |
| 39 | 'dependencies': [ |
| 40 | 'sklua', # This can only be built if skia is built as a shared library |
| 41 | ], |
| 42 | }, |
| 43 | ], |
| 44 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 45 | }, |
| 46 | { |
| 47 | 'target_name': 'skdiff', |
| 48 | 'type': 'executable', |
| 49 | 'sources': [ |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 50 | '../tools/skdiff.cpp', |
| 51 | '../tools/skdiff.h', |
| 52 | '../tools/skdiff_html.cpp', |
| 53 | '../tools/skdiff_html.h', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 54 | '../tools/skdiff_main.cpp', |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 55 | '../tools/skdiff_utils.cpp', |
| 56 | '../tools/skdiff_utils.h', |
| 57 | ], |
| 58 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 59 | 'skia_lib.gyp:skia_lib', |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 60 | ], |
| 61 | }, |
| 62 | { |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 63 | 'target_name': 'skpdiff', |
| 64 | 'type': 'executable', |
| 65 | 'sources': [ |
| 66 | '../tools/skpdiff/skpdiff_main.cpp', |
| 67 | '../tools/skpdiff/SkDiffContext.cpp', |
| 68 | '../tools/skpdiff/SkImageDiffer.cpp', |
| 69 | '../tools/skpdiff/SkPMetric.cpp', |
| 70 | '../tools/skpdiff/skpdiff_util.cpp', |
| 71 | '../tools/flags/SkCommandLineFlags.cpp', |
| 72 | ], |
| 73 | 'include_dirs': [ |
djsollen@google.com | efc51b7 | 2013-11-12 18:29:17 +0000 | [diff] [blame] | 74 | '../tools/flags', |
| 75 | '../src/core/', # needed for SkTLList.h |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 76 | ], |
| 77 | 'dependencies': [ |
| 78 | 'skia_lib.gyp:skia_lib', |
| 79 | ], |
| 80 | 'cflags': [ |
| 81 | '-O3', |
| 82 | ], |
| 83 | 'conditions': [ |
| 84 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 85 | 'link_settings': { |
| 86 | 'libraries': [ |
| 87 | '-lrt', |
| 88 | ], |
| 89 | }, |
| 90 | }], |
| 91 | ['skia_opencl', { |
| 92 | 'sources': [ |
| 93 | '../tools/skpdiff/SkCLImageDiffer.cpp', |
| 94 | '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp', |
| 95 | ], |
| 96 | 'conditions': [ |
| 97 | [ 'skia_os == "mac"', { |
| 98 | 'link_settings': { |
| 99 | 'libraries': [ |
| 100 | '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', |
| 101 | ] |
| 102 | } |
| 103 | }, { |
| 104 | 'link_settings': { |
| 105 | 'libraries': [ |
| 106 | '-lOpenCL', |
| 107 | ], |
| 108 | }, |
| 109 | }], |
| 110 | ], |
| 111 | }, { # !skia_opencl |
| 112 | 'sources': [ |
| 113 | '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp', |
| 114 | ], |
| 115 | }], |
| 116 | ], |
| 117 | }, |
| 118 | { |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 119 | 'target_name': 'skpmaker', |
| 120 | 'type': 'executable', |
| 121 | 'sources': [ |
| 122 | '../tools/skpmaker.cpp', |
| 123 | ], |
| 124 | 'include_dirs': [ |
| 125 | '../src/core', |
| 126 | ], |
| 127 | 'dependencies': [ |
| 128 | 'flags.gyp:flags', |
| 129 | 'skia_lib.gyp:skia_lib', |
| 130 | ], |
| 131 | }, |
| 132 | { |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 133 | 'target_name': 'skimagediff', |
| 134 | 'type': 'executable', |
| 135 | 'sources': [ |
| 136 | '../tools/skdiff.cpp', |
| 137 | '../tools/skdiff.h', |
| 138 | '../tools/skdiff_html.cpp', |
| 139 | '../tools/skdiff_html.h', |
| 140 | '../tools/skdiff_image.cpp', |
| 141 | '../tools/skdiff_utils.cpp', |
| 142 | '../tools/skdiff_utils.h', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 143 | ], |
| 144 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 145 | 'skia_lib.gyp:skia_lib', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 146 | ], |
| 147 | }, |
| 148 | { |
| 149 | 'target_name': 'skhello', |
| 150 | 'type': 'executable', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 151 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 152 | 'skia_lib.gyp:skia_lib', |
borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 153 | ], |
| 154 | 'conditions': [ |
| 155 | [ 'skia_os == "nacl"', { |
| 156 | 'sources': [ |
| 157 | '../platform_tools/nacl/src/nacl_hello.cpp', |
| 158 | ], |
| 159 | }, { |
| 160 | 'sources': [ |
| 161 | '../tools/skhello.cpp', |
| 162 | ], |
| 163 | 'dependencies': [ |
borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 164 | 'flags.gyp:flags', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 165 | 'pdf.gyp:pdf', |
borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 166 | ], |
| 167 | }], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 168 | ], |
| 169 | }, |
| 170 | { |
| 171 | 'target_name': 'skimage', |
| 172 | 'type': 'executable', |
| 173 | 'sources': [ |
| 174 | '../tools/skimage_main.cpp', |
| 175 | ], |
scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 176 | 'include_dirs': [ |
| 177 | # For SkBitmapHasher.h |
| 178 | '../src/utils/', |
| 179 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 180 | 'dependencies': [ |
scroggo@google.com | b41ff95 | 2013-04-11 15:53:35 +0000 | [diff] [blame] | 181 | 'flags.gyp:flags', |
scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 182 | 'gm.gyp:gm_expectations', |
scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 183 | 'jsoncpp.gyp:jsoncpp', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 184 | 'skia_lib.gyp:skia_lib', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 185 | ], |
| 186 | }, |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 187 | { |
| 188 | 'target_name': 'skpinfo', |
| 189 | 'type': 'executable', |
| 190 | 'sources': [ |
| 191 | '../tools/skpinfo.cpp', |
| 192 | ], |
| 193 | 'include_dirs': [ |
| 194 | '../tools/flags', |
| 195 | '../src/core/', |
| 196 | ], |
| 197 | 'dependencies': [ |
| 198 | 'flags.gyp:flags', |
| 199 | 'skia_lib.gyp:skia_lib', |
| 200 | ], |
| 201 | }, |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 202 | { |
| 203 | 'target_name': 'gpuveto', |
| 204 | 'type': 'executable', |
| 205 | 'sources': [ |
| 206 | '../tools/gpuveto.cpp', |
| 207 | '../tools/LazyDecodeBitmap.cpp', |
| 208 | ], |
| 209 | 'include_dirs': [ |
| 210 | '../src/core/', |
| 211 | '../src/images', |
| 212 | '../src/lazy', |
| 213 | '../tools/flags', |
| 214 | ], |
| 215 | 'dependencies': [ |
| 216 | 'flags.gyp:flags', |
| 217 | 'skia_lib.gyp:skia_lib', |
| 218 | ], |
| 219 | }, |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 220 | { |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 221 | 'target_name': 'lua_app', |
| 222 | 'type': 'executable', |
| 223 | 'sources': [ |
| 224 | '../tools/lua/lua_app.cpp', |
| 225 | '../src/utils/SkLua.cpp', |
| 226 | ], |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 227 | 'include_dirs': [ |
| 228 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 229 | '../src/gpu/', |
| 230 | '../src/core/', |
| 231 | ], |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 232 | 'dependencies': [ |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 233 | 'effects.gyp:effects', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 234 | 'images.gyp:images', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 235 | 'lua.gyp:lua', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 236 | 'pdf.gyp:pdf', |
| 237 | 'ports.gyp:ports', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 238 | 'skia_lib.gyp:skia_lib', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 239 | ], |
| 240 | }, |
| 241 | { |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 242 | 'target_name': 'lua_pictures', |
| 243 | 'type': 'executable', |
| 244 | 'sources': [ |
| 245 | '../tools/lua/lua_pictures.cpp', |
| 246 | '../src/utils/SkLuaCanvas.cpp', |
reed@google.com | 74ce6f0 | 2013-05-22 15:13:18 +0000 | [diff] [blame] | 247 | '../src/utils/SkLua.cpp', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 248 | ], |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 249 | 'include_dirs': [ |
| 250 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 251 | '../src/gpu/', |
| 252 | '../src/core/', |
| 253 | ], |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 254 | 'dependencies': [ |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 255 | 'effects.gyp:effects', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 256 | 'flags.gyp:flags', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 257 | 'images.gyp:images', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 258 | 'lua.gyp:lua', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 259 | 'tools.gyp:picture_renderer', |
| 260 | 'tools.gyp:picture_utils', |
mike@reedtribe.org | fb85824 | 2013-06-08 16:39:44 +0000 | [diff] [blame] | 261 | 'pdf.gyp:pdf', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 262 | 'ports.gyp:ports', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 263 | 'skia_lib.gyp:skia_lib', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 264 | ], |
| 265 | }, |
| 266 | { |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 267 | 'target_name': 'render_pictures', |
| 268 | 'type': 'executable', |
| 269 | 'sources': [ |
| 270 | '../tools/render_pictures_main.cpp', |
keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 271 | ], |
| 272 | 'include_dirs': [ |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 273 | '../src/core', |
| 274 | '../src/images', |
| 275 | '../src/lazy', |
keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 276 | '../src/pipe/utils/', |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 277 | ], |
| 278 | 'dependencies': [ |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 279 | 'flags.gyp:flags', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 280 | 'skia_lib.gyp:skia_lib', |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 281 | 'tools.gyp:picture_renderer', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 282 | 'tools.gyp:picture_utils', |
| 283 | ], |
| 284 | }, |
| 285 | { |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 286 | 'target_name': 'bench_pictures', |
| 287 | 'type': 'executable', |
| 288 | 'sources': [ |
scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 289 | '../bench/SkBenchLogger.h', |
| 290 | '../bench/SkBenchLogger.cpp', |
| 291 | '../bench/TimerData.h', |
| 292 | '../bench/TimerData.cpp', |
keyar@chromium.org | cf6c44c | 2012-07-09 19:37:40 +0000 | [diff] [blame] | 293 | '../tools/bench_pictures_main.cpp', |
scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 294 | '../tools/PictureBenchmark.cpp', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 295 | ], |
| 296 | 'include_dirs': [ |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 297 | '../src/core/', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 298 | '../bench', |
scroggo@google.com | cc69020 | 2013-03-04 19:56:21 +0000 | [diff] [blame] | 299 | '../src/lazy/', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 300 | ], |
| 301 | 'dependencies': [ |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 302 | 'bench.gyp:bench_timer', |
| 303 | 'flags.gyp:flags', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 304 | 'skia_lib.gyp:skia_lib', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 305 | 'tools.gyp:picture_utils', |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 306 | 'tools.gyp:picture_renderer', |
scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 307 | ], |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 308 | }, |
| 309 | { |
commit-bot@chromium.org | 15ac322 | 2014-01-13 12:03:47 +0000 | [diff] [blame] | 310 | 'target_name': 'bench_record', |
| 311 | 'type': 'executable', |
commit-bot@chromium.org | 16182f7 | 2014-03-28 16:08:18 +0000 | [diff] [blame] | 312 | 'sources': [ |
| 313 | '../tools/bench_record.cpp', |
| 314 | '../tools/LazyDecodeBitmap.cpp', |
| 315 | ], |
| 316 | 'include_dirs': [ |
| 317 | '../src/core/', |
| 318 | '../src/images', |
| 319 | '../src/lazy', |
| 320 | ], |
commit-bot@chromium.org | 15ac322 | 2014-01-13 12:03:47 +0000 | [diff] [blame] | 321 | 'dependencies': [ |
commit-bot@chromium.org | 8400b23 | 2014-04-28 15:30:02 +0000 | [diff] [blame] | 322 | 'bench.gyp:bench_timer', |
commit-bot@chromium.org | 15ac322 | 2014-01-13 12:03:47 +0000 | [diff] [blame] | 323 | 'flags.gyp:flags', |
| 324 | 'skia_lib.gyp:skia_lib', |
commit-bot@chromium.org | e3ff558 | 2014-04-01 16:24:06 +0000 | [diff] [blame] | 325 | 'record.gyp:*', |
commit-bot@chromium.org | 15ac322 | 2014-01-13 12:03:47 +0000 | [diff] [blame] | 326 | ], |
| 327 | }, |
| 328 | { |
commit-bot@chromium.org | ba73d28 | 2014-04-11 15:53:39 +0000 | [diff] [blame] | 329 | 'target_name': 'bench_playback', |
| 330 | 'type': 'executable', |
| 331 | 'sources': [ |
| 332 | '../tools/bench_playback.cpp', |
commit-bot@chromium.org | ba73d28 | 2014-04-11 15:53:39 +0000 | [diff] [blame] | 333 | ], |
| 334 | 'include_dirs': [ |
| 335 | '../src/core/', |
| 336 | '../src/images', |
commit-bot@chromium.org | b17a24f | 2014-04-14 20:33:05 +0000 | [diff] [blame] | 337 | '../src/record', |
commit-bot@chromium.org | ba73d28 | 2014-04-11 15:53:39 +0000 | [diff] [blame] | 338 | ], |
| 339 | 'dependencies': [ |
commit-bot@chromium.org | 8400b23 | 2014-04-28 15:30:02 +0000 | [diff] [blame] | 340 | 'bench.gyp:bench_timer', |
commit-bot@chromium.org | ba73d28 | 2014-04-11 15:53:39 +0000 | [diff] [blame] | 341 | 'flags.gyp:flags', |
| 342 | 'skia_lib.gyp:skia_lib', |
| 343 | 'record.gyp:*', |
| 344 | ], |
| 345 | }, |
| 346 | { |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 347 | 'target_name': 'dump_record', |
| 348 | 'type': 'executable', |
| 349 | 'sources': [ |
| 350 | '../tools/dump_record.cpp', |
commit-bot@chromium.org | 85fd193 | 2014-05-15 16:10:37 +0000 | [diff] [blame] | 351 | '../tools/DumpRecord.cpp', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 352 | '../tools/LazyDecodeBitmap.cpp', |
| 353 | ], |
| 354 | 'include_dirs': [ |
| 355 | '../src/core/', |
| 356 | '../src/images', |
| 357 | '../src/lazy', |
| 358 | '../src/record', |
| 359 | ], |
| 360 | 'dependencies': [ |
commit-bot@chromium.org | 27f6b0d | 2014-05-09 14:59:29 +0000 | [diff] [blame] | 361 | 'bench.gyp:bench_timer', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 362 | 'flags.gyp:flags', |
| 363 | 'record.gyp:*', |
| 364 | 'skia_lib.gyp:skia_lib', |
| 365 | ], |
| 366 | }, |
| 367 | { |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 368 | 'target_name': 'picture_renderer', |
| 369 | 'type': 'static_library', |
| 370 | 'sources': [ |
commit-bot@chromium.org | 90c0fbd | 2014-05-09 03:18:41 +0000 | [diff] [blame] | 371 | '../tools/image_expectations.h', |
| 372 | '../tools/image_expectations.cpp', |
commit-bot@chromium.org | 56799e2 | 2013-07-16 18:21:46 +0000 | [diff] [blame] | 373 | '../tools/LazyDecodeBitmap.cpp', |
scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 374 | '../tools/PictureRenderer.h', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 375 | '../tools/PictureRenderer.cpp', |
scroggo@google.com | 161e1ba | 2013-03-04 16:41:06 +0000 | [diff] [blame] | 376 | '../tools/PictureRenderingFlags.h', |
| 377 | '../tools/PictureRenderingFlags.cpp', |
scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 378 | '../tools/CopyTilesRenderer.h', |
| 379 | '../tools/CopyTilesRenderer.cpp', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 380 | '../src/pipe/utils/SamplePipeControllers.h', |
| 381 | '../src/pipe/utils/SamplePipeControllers.cpp', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 382 | ], |
| 383 | 'include_dirs': [ |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 384 | '../src/core', |
| 385 | '../src/images', |
| 386 | '../src/lazy', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 387 | '../src/pipe/utils/', |
| 388 | '../src/utils/', |
| 389 | ], |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 390 | 'direct_dependent_settings': { |
| 391 | 'include_dirs': [ |
commit-bot@chromium.org | 90c0fbd | 2014-05-09 03:18:41 +0000 | [diff] [blame] | 392 | # needed for JSON headers used within image_expectations.h |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 393 | '../third_party/externals/jsoncpp-chromium/overrides/include/', |
| 394 | '../third_party/externals/jsoncpp/include/', |
| 395 | ], |
| 396 | }, |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 397 | 'dependencies': [ |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 398 | 'flags.gyp:flags', |
| 399 | 'jsoncpp.gyp:jsoncpp', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 400 | 'skia_lib.gyp:skia_lib', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 401 | 'tools.gyp:picture_utils', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 402 | ], |
robertphillips@google.com | fe1b536 | 2013-02-07 19:45:46 +0000 | [diff] [blame] | 403 | 'conditions': [ |
| 404 | ['skia_gpu == 1', |
| 405 | { |
| 406 | 'include_dirs' : [ |
| 407 | '../src/gpu', |
| 408 | ], |
robertphillips@google.com | 94d8f1e | 2013-12-18 17:25:33 +0000 | [diff] [blame] | 409 | 'dependencies': [ |
| 410 | 'gputest.gyp:skgputest', |
| 411 | ], |
robertphillips@google.com | fe1b536 | 2013-02-07 19:45:46 +0000 | [diff] [blame] | 412 | }, |
| 413 | ], |
| 414 | ], |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 415 | }, |
| 416 | { |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 417 | 'target_name': 'render_pdfs', |
| 418 | 'type': 'executable', |
| 419 | 'sources': [ |
| 420 | '../tools/render_pdfs_main.cpp', |
| 421 | '../tools/PdfRenderer.cpp', |
| 422 | '../tools/PdfRenderer.h', |
| 423 | ], |
| 424 | 'include_dirs': [ |
| 425 | '../src/pipe/utils/', |
| 426 | '../src/utils/', |
| 427 | ], |
| 428 | 'dependencies': [ |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 429 | 'pdf.gyp:pdf', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 430 | 'skia_lib.gyp:skia_lib', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 431 | 'tools.gyp:picture_utils', |
| 432 | ], |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 433 | 'conditions': [ |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 434 | ['skia_win_debuggers_path and skia_os == "win"', |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 435 | { |
| 436 | 'dependencies': [ |
| 437 | 'tools.gyp:win_dbghelp', |
| 438 | ], |
| 439 | }, |
| 440 | ], |
| 441 | # VS static libraries don't have a linker option. We must set a global |
| 442 | # project linker option, or add it to each executable. |
| 443 | ['skia_win_debuggers_path and skia_os == "win" and ' |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 444 | 'skia_arch_width == 64', |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 445 | { |
| 446 | 'msvs_settings': { |
| 447 | 'VCLinkerTool': { |
| 448 | 'AdditionalDependencies': [ |
| 449 | '<(skia_win_debuggers_path)/x64/DbgHelp.lib', |
| 450 | ], |
| 451 | }, |
| 452 | }, |
| 453 | }, |
| 454 | ], |
| 455 | ['skia_win_debuggers_path and skia_os == "win" and ' |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 456 | 'skia_arch_width == 32', |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 457 | { |
| 458 | 'msvs_settings': { |
| 459 | 'VCLinkerTool': { |
| 460 | 'AdditionalDependencies': [ |
| 461 | '<(skia_win_debuggers_path)/DbgHelp.lib', |
| 462 | ], |
| 463 | }, |
| 464 | }, |
| 465 | }, |
| 466 | ], |
| 467 | ], |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 468 | }, |
| 469 | { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 470 | 'target_name': 'picture_utils', |
| 471 | 'type': 'static_library', |
| 472 | 'sources': [ |
| 473 | '../tools/picture_utils.cpp', |
borenet@google.com | e21795e | 2012-09-14 14:34:28 +0000 | [diff] [blame] | 474 | '../tools/picture_utils.h', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 475 | ], |
| 476 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 477 | 'skia_lib.gyp:skia_lib', |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 478 | ], |
reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 479 | 'direct_dependent_settings': { |
| 480 | 'include_dirs': [ |
reed@google.com | 9bf99c3 | 2013-05-15 20:07:22 +0000 | [diff] [blame] | 481 | '../tools/', |
reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 482 | ], |
| 483 | }, |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 484 | }, |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 485 | { |
| 486 | 'target_name': 'pinspect', |
| 487 | 'type': 'executable', |
| 488 | 'sources': [ |
| 489 | '../tools/pinspect.cpp', |
| 490 | ], |
| 491 | 'dependencies': [ |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 492 | 'flags.gyp:flags', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 493 | 'skia_lib.gyp:skia_lib', |
commit-bot@chromium.org | 826ec81 | 2013-06-12 18:28:36 +0000 | [diff] [blame] | 494 | 'tools.gyp:picture_renderer', |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 495 | ], |
| 496 | }, |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 497 | { |
commit-bot@chromium.org | 6645cde | 2013-07-19 18:54:04 +0000 | [diff] [blame] | 498 | 'target_name': 'bbh_shootout', |
| 499 | 'type': 'executable', |
| 500 | 'include_dirs': [ |
| 501 | '../bench', |
| 502 | '../tools/' |
| 503 | ], |
| 504 | 'sources': [ |
| 505 | '../tools/bbh_shootout.cpp', |
| 506 | |
| 507 | # Bench code: |
| 508 | '../bench/TimerData.h', |
| 509 | '../bench/TimerData.cpp', |
| 510 | ], |
| 511 | 'dependencies': [ |
commit-bot@chromium.org | 6645cde | 2013-07-19 18:54:04 +0000 | [diff] [blame] | 512 | 'bench.gyp:bench_timer', |
commit-bot@chromium.org | 6645cde | 2013-07-19 18:54:04 +0000 | [diff] [blame] | 513 | 'flags.gyp:flags', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 514 | 'skia_lib.gyp:skia_lib', |
| 515 | 'tools.gyp:picture_renderer', |
| 516 | 'tools.gyp:picture_utils', |
commit-bot@chromium.org | 6645cde | 2013-07-19 18:54:04 +0000 | [diff] [blame] | 517 | ], |
| 518 | }, |
| 519 | { |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 520 | 'target_name': 'filter', |
| 521 | 'type': 'executable', |
| 522 | 'include_dirs' : [ |
| 523 | '../src/core', |
fmalita@google.com | 4df1673 | 2013-06-13 21:25:45 +0000 | [diff] [blame] | 524 | '../src/utils/debugger', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 525 | ], |
| 526 | 'sources': [ |
| 527 | '../tools/filtermain.cpp', |
robertphillips@google.com | d3d377f | 2012-12-07 20:56:13 +0000 | [diff] [blame] | 528 | '../tools/path_utils.h', |
robertphillips@google.com | 3b0a9fe | 2013-01-31 15:56:22 +0000 | [diff] [blame] | 529 | '../tools/path_utils.cpp', |
fmalita@google.com | 86681b3 | 2013-06-13 20:59:14 +0000 | [diff] [blame] | 530 | '../src/utils/debugger/SkDrawCommand.h', |
| 531 | '../src/utils/debugger/SkDrawCommand.cpp', |
| 532 | '../src/utils/debugger/SkDebugCanvas.h', |
| 533 | '../src/utils/debugger/SkDebugCanvas.cpp', |
| 534 | '../src/utils/debugger/SkObjectParser.h', |
| 535 | '../src/utils/debugger/SkObjectParser.cpp', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 536 | ], |
| 537 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 538 | 'skia_lib.gyp:skia_lib', |
djsollen@google.com | a09e883 | 2012-11-13 18:50:33 +0000 | [diff] [blame] | 539 | 'tools.gyp:picture_utils', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 540 | ], |
| 541 | }, |
halcanary@google.com | fed3037 | 2013-10-04 12:46:45 +0000 | [diff] [blame] | 542 | { |
| 543 | 'target_name': 'test_image_decoder', |
| 544 | 'type': 'executable', |
| 545 | 'sources': [ |
| 546 | '../tools/test_image_decoder.cpp', |
| 547 | ], |
| 548 | 'dependencies': [ |
| 549 | 'skia_lib.gyp:skia_lib', |
| 550 | ], |
| 551 | }, |
edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 552 | ], |
| 553 | 'conditions': [ |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 554 | ['skia_shared_lib', |
| 555 | { |
| 556 | 'targets': [ |
| 557 | { |
| 558 | 'target_name': 'sklua', |
| 559 | 'product_name': 'skia', |
| 560 | 'product_prefix': '', |
| 561 | 'product_dir': '<(PRODUCT_DIR)/', |
| 562 | 'type': 'shared_library', |
| 563 | 'sources': [ |
| 564 | '../src/utils/SkLuaCanvas.cpp', |
| 565 | '../src/utils/SkLua.cpp', |
| 566 | ], |
| 567 | 'include_dirs': [ |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 568 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 569 | '../src/gpu/', |
| 570 | '../src/core/', |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 571 | '../third_party/lua/src/', |
| 572 | ], |
| 573 | 'dependencies': [ |
| 574 | 'lua.gyp:lua', |
| 575 | 'pdf.gyp:pdf', |
| 576 | 'skia_lib.gyp:skia_lib', |
| 577 | ], |
| 578 | 'conditions': [ |
| 579 | ['skia_os != "win"', |
| 580 | { |
| 581 | 'ldflags': [ |
| 582 | '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags', |
| 583 | ], |
| 584 | }, |
| 585 | ], |
| 586 | ], |
| 587 | }, |
| 588 | ], |
| 589 | }, |
| 590 | ], |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 591 | ['skia_win_debuggers_path and skia_os == "win"', |
edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 592 | { |
| 593 | 'targets': [ |
| 594 | { |
| 595 | 'target_name': 'win_dbghelp', |
| 596 | 'type': 'static_library', |
| 597 | 'defines': [ |
| 598 | 'SK_CDB_PATH="<(skia_win_debuggers_path)"', |
| 599 | ], |
| 600 | 'sources': [ |
| 601 | '../tools/win_dbghelp.h', |
| 602 | '../tools/win_dbghelp.cpp', |
| 603 | ], |
| 604 | }, |
| 605 | ], |
| 606 | }, |
| 607 | ], |
bungeman@google.com | 07a69f8 | 2013-04-02 14:12:38 +0000 | [diff] [blame] | 608 | ['skia_os == "win"', |
| 609 | { |
| 610 | 'targets': [ |
| 611 | { |
| 612 | 'target_name': 'win_lcid', |
| 613 | 'type': 'executable', |
| 614 | 'sources': [ |
| 615 | '../tools/win_lcid.cpp', |
| 616 | ], |
| 617 | }, |
| 618 | ], |
| 619 | }, |
| 620 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 621 | ], |
| 622 | } |