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