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