scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 1 | # Copyright 2015 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
bsalomon | 3e79124 | 2014-12-17 13:43:13 -0800 | [diff] [blame] | 5 | # GYP file to build various tools. |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 6 | # |
| 7 | # To build on Linux: |
| 8 | # ./gyp_skia tools.gyp && make tools |
| 9 | # |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 10 | { |
| 11 | 'includes': [ |
| 12 | 'apptype_console.gypi', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 13 | ], |
| 14 | 'targets': [ |
| 15 | { |
| 16 | # Build all executable targets defined below. |
| 17 | 'target_name': 'tools', |
| 18 | 'type': 'none', |
| 19 | 'dependencies': [ |
edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 20 | 'bench_pictures', |
caryclark | 7da2e55 | 2015-05-12 08:36:48 -0700 | [diff] [blame] | 21 | 'chrome_fuzz', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 22 | 'dump_record', |
edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 23 | 'filter', |
mtklein | 60c0475 | 2015-07-08 10:06:01 -0700 | [diff] [blame] | 24 | 'flatten', |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 25 | 'gpuveto', |
commit-bot@chromium.org | 5ccdf01 | 2014-01-02 18:51:38 +0000 | [diff] [blame] | 26 | 'lua_app', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 27 | 'lua_pictures', |
reed | a816d95 | 2014-12-17 13:08:17 -0800 | [diff] [blame] | 28 | 'imgconv', |
edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 29 | 'pinspect', |
| 30 | 'render_pdfs', |
| 31 | 'render_pictures', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 32 | 'skdiff', |
commit-bot@chromium.org | 5ccdf01 | 2014-01-02 18:51:38 +0000 | [diff] [blame] | 33 | 'skhello', |
fmalita | 93957f4 | 2015-01-30 09:03:29 -0800 | [diff] [blame] | 34 | 'skp2svg', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 35 | 'skpdiff', |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 36 | 'skpinfo', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 37 | 'skpmaker', |
halcanary@google.com | fed3037 | 2013-10-04 12:46:45 +0000 | [diff] [blame] | 38 | 'test_image_decoder', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 39 | 'test_public_includes', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 40 | ], |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 41 | 'conditions': [ |
| 42 | ['skia_shared_lib', |
| 43 | { |
| 44 | 'dependencies': [ |
| 45 | 'sklua', # This can only be built if skia is built as a shared library |
| 46 | ], |
| 47 | }, |
| 48 | ], |
| 49 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 50 | }, |
mtklein | 9a0d6d6 | 2014-12-15 12:47:51 -0800 | [diff] [blame] | 51 | { |
caryclark | 7da2e55 | 2015-05-12 08:36:48 -0700 | [diff] [blame] | 52 | 'target_name': 'chrome_fuzz', |
| 53 | 'type': 'executable', |
| 54 | 'sources': [ |
| 55 | '../tools/chrome_fuzz.cpp', |
| 56 | ], |
| 57 | 'dependencies': [ |
| 58 | 'skia_lib.gyp:skia_lib', |
| 59 | ], |
| 60 | }, |
| 61 | { |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 62 | 'target_name': 'crash_handler', |
| 63 | 'type': 'static_library', |
| 64 | 'sources': [ '../tools/CrashHandler.cpp' ], |
| 65 | 'dependencies': [ 'skia_lib.gyp:skia_lib' ], |
| 66 | 'direct_dependent_settings': { |
| 67 | 'include_dirs': [ '../tools' ], |
| 68 | }, |
scroggo | ac928f2 | 2015-02-10 08:13:26 -0800 | [diff] [blame] | 69 | 'conditions': [ |
| 70 | [ 'skia_is_bot', { |
| 71 | 'defines': [ 'SK_CRASH_HANDLER' ], |
| 72 | }], |
| 73 | ], |
| 74 | |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 75 | 'all_dependent_settings': { |
| 76 | 'msvs_settings': { |
| 77 | 'VCLinkerTool': { |
| 78 | 'AdditionalDependencies': [ 'Dbghelp.lib' ], |
| 79 | } |
| 80 | }, |
| 81 | } |
| 82 | }, |
| 83 | { |
| 84 | 'target_name': 'resources', |
| 85 | 'type': 'static_library', |
| 86 | 'sources': [ '../tools/Resources.cpp' ], |
| 87 | 'dependencies': [ |
| 88 | 'flags.gyp:flags', |
| 89 | 'skia_lib.gyp:skia_lib', |
| 90 | ], |
| 91 | 'direct_dependent_settings': { |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 92 | 'include_dirs': [ '../tools', ], |
| 93 | }, |
| 94 | }, |
| 95 | { |
| 96 | 'target_name': 'sk_tool_utils', |
| 97 | 'type': 'static_library', |
caryclark | 5fb6bd4 | 2014-06-23 11:25:00 -0700 | [diff] [blame] | 98 | 'sources': [ |
| 99 | '../tools/sk_tool_utils.cpp', |
| 100 | '../tools/sk_tool_utils_font.cpp', |
| 101 | ], |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 102 | 'include_dirs': [ |
| 103 | '../src/fonts', |
| 104 | ], |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 105 | 'dependencies': [ |
mtklein | ada972d | 2014-07-31 08:31:56 -0700 | [diff] [blame] | 106 | 'resources', |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 107 | 'flags.gyp:flags', |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 108 | 'skia_lib.gyp:skia_lib', |
| 109 | ], |
| 110 | 'direct_dependent_settings': { |
| 111 | 'include_dirs': [ '../tools', ], |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 112 | }, |
| 113 | }, |
| 114 | { |
| 115 | 'target_name' : 'timer', |
| 116 | 'type': 'static_library', |
| 117 | 'sources': [ |
| 118 | '../tools/timer/Timer.cpp', |
| 119 | '../tools/timer/TimerData.cpp', |
| 120 | ], |
| 121 | 'include_dirs': [ |
| 122 | '../src/core', |
| 123 | '../src/gpu', |
| 124 | ], |
| 125 | 'direct_dependent_settings': { |
| 126 | 'include_dirs': ['../tools/timer'], |
| 127 | }, |
| 128 | 'dependencies': [ |
| 129 | 'skia_lib.gyp:skia_lib', |
| 130 | 'jsoncpp.gyp:jsoncpp', |
| 131 | ], |
| 132 | 'conditions': [ |
| 133 | ['skia_gpu == 1', { |
| 134 | 'sources': [ '../tools/timer/GpuTimer.cpp' ], |
| 135 | }], |
| 136 | [ 'skia_os in ["mac", "ios"]', { |
| 137 | 'sources': [ '../tools/timer/SysTimer_mach.cpp' ], |
| 138 | }], |
| 139 | [ 'skia_os == "win"', { |
| 140 | 'sources': [ '../tools/timer/SysTimer_windows.cpp' ], |
| 141 | }], |
| 142 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', { |
| 143 | 'sources': [ '../tools/timer/SysTimer_posix.cpp' ], |
| 144 | }], |
| 145 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 146 | 'link_settings': { 'libraries': [ '-lrt' ] }, |
| 147 | }], |
| 148 | ], |
| 149 | }, |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 150 | { |
| 151 | 'target_name': 'skdiff', |
| 152 | 'type': 'executable', |
| 153 | 'sources': [ |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 154 | '../tools/skdiff.cpp', |
| 155 | '../tools/skdiff.h', |
| 156 | '../tools/skdiff_html.cpp', |
| 157 | '../tools/skdiff_html.h', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 158 | '../tools/skdiff_main.cpp', |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 159 | '../tools/skdiff_utils.cpp', |
| 160 | '../tools/skdiff_utils.h', |
| 161 | ], |
| 162 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 163 | 'skia_lib.gyp:skia_lib', |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 164 | ], |
| 165 | }, |
| 166 | { |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 167 | 'target_name': 'skpdiff', |
| 168 | 'type': 'executable', |
| 169 | 'sources': [ |
| 170 | '../tools/skpdiff/skpdiff_main.cpp', |
| 171 | '../tools/skpdiff/SkDiffContext.cpp', |
| 172 | '../tools/skpdiff/SkImageDiffer.cpp', |
| 173 | '../tools/skpdiff/SkPMetric.cpp', |
| 174 | '../tools/skpdiff/skpdiff_util.cpp', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 175 | ], |
| 176 | 'include_dirs': [ |
djsollen@google.com | efc51b7 | 2013-11-12 18:29:17 +0000 | [diff] [blame] | 177 | '../src/core/', # needed for SkTLList.h |
stephana | 21b342d | 2014-08-13 10:36:06 -0700 | [diff] [blame] | 178 | '../tools/', # needed for picture_utils::replace_char |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 179 | ], |
| 180 | 'dependencies': [ |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 181 | 'flags.gyp:flags', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 182 | 'skia_lib.gyp:skia_lib', |
stephana | 21b342d | 2014-08-13 10:36:06 -0700 | [diff] [blame] | 183 | 'tools.gyp:picture_utils', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 184 | ], |
| 185 | 'cflags': [ |
| 186 | '-O3', |
| 187 | ], |
| 188 | 'conditions': [ |
| 189 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 190 | 'link_settings': { |
| 191 | 'libraries': [ |
| 192 | '-lrt', |
borenet | 283714f | 2015-06-25 08:05:19 -0700 | [diff] [blame] | 193 | '-pthread', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 194 | ], |
| 195 | }, |
| 196 | }], |
| 197 | ['skia_opencl', { |
| 198 | 'sources': [ |
| 199 | '../tools/skpdiff/SkCLImageDiffer.cpp', |
| 200 | '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp', |
| 201 | ], |
| 202 | 'conditions': [ |
| 203 | [ 'skia_os == "mac"', { |
| 204 | 'link_settings': { |
| 205 | 'libraries': [ |
| 206 | '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', |
| 207 | ] |
| 208 | } |
| 209 | }, { |
| 210 | 'link_settings': { |
| 211 | 'libraries': [ |
| 212 | '-lOpenCL', |
| 213 | ], |
| 214 | }, |
| 215 | }], |
| 216 | ], |
| 217 | }, { # !skia_opencl |
| 218 | 'sources': [ |
| 219 | '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp', |
| 220 | ], |
| 221 | }], |
| 222 | ], |
| 223 | }, |
| 224 | { |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 225 | 'target_name': 'skpmaker', |
| 226 | 'type': 'executable', |
| 227 | 'sources': [ |
| 228 | '../tools/skpmaker.cpp', |
| 229 | ], |
| 230 | 'include_dirs': [ |
| 231 | '../src/core', |
| 232 | ], |
| 233 | 'dependencies': [ |
| 234 | 'flags.gyp:flags', |
| 235 | 'skia_lib.gyp:skia_lib', |
| 236 | ], |
| 237 | }, |
| 238 | { |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 239 | 'target_name': 'skimagediff', |
| 240 | 'type': 'executable', |
| 241 | 'sources': [ |
| 242 | '../tools/skdiff.cpp', |
| 243 | '../tools/skdiff.h', |
| 244 | '../tools/skdiff_html.cpp', |
| 245 | '../tools/skdiff_html.h', |
| 246 | '../tools/skdiff_image.cpp', |
| 247 | '../tools/skdiff_utils.cpp', |
| 248 | '../tools/skdiff_utils.h', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 249 | ], |
| 250 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 251 | 'skia_lib.gyp:skia_lib', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 252 | ], |
| 253 | }, |
| 254 | { |
| 255 | 'target_name': 'skhello', |
| 256 | 'type': 'executable', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 257 | 'dependencies': [ |
borenet | 4808757 | 2015-04-02 12:16:36 -0700 | [diff] [blame] | 258 | 'flags.gyp:flags', |
| 259 | 'pdf.gyp:pdf', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 260 | 'skia_lib.gyp:skia_lib', |
borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 261 | ], |
borenet | 4808757 | 2015-04-02 12:16:36 -0700 | [diff] [blame] | 262 | 'sources': [ |
| 263 | '../tools/skhello.cpp', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 264 | ], |
| 265 | }, |
| 266 | { |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 267 | 'target_name': 'skpinfo', |
| 268 | 'type': 'executable', |
| 269 | 'sources': [ |
| 270 | '../tools/skpinfo.cpp', |
| 271 | ], |
| 272 | 'include_dirs': [ |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 273 | '../src/core/', |
| 274 | ], |
| 275 | 'dependencies': [ |
| 276 | 'flags.gyp:flags', |
| 277 | 'skia_lib.gyp:skia_lib', |
| 278 | ], |
| 279 | }, |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 280 | { |
mtklein | 60c0475 | 2015-07-08 10:06:01 -0700 | [diff] [blame] | 281 | 'target_name': 'flatten', |
| 282 | 'type': 'executable', |
| 283 | 'sources': [ |
| 284 | '../tools/flatten.cpp', |
| 285 | ], |
| 286 | 'dependencies': [ |
| 287 | 'skia_lib.gyp:skia_lib', |
| 288 | ], |
| 289 | }, |
| 290 | { |
fmalita | 2aafe6f | 2015-02-06 12:51:10 -0800 | [diff] [blame] | 291 | # Superseded by dm, should be removed. |
fmalita | 93957f4 | 2015-01-30 09:03:29 -0800 | [diff] [blame] | 292 | 'target_name': 'skp2svg', |
| 293 | 'type': 'executable', |
| 294 | 'sources': [ |
fmalita | 2aafe6f | 2015-02-06 12:51:10 -0800 | [diff] [blame] | 295 | '../src/svg/skp2svg.cpp', |
fmalita | 93957f4 | 2015-01-30 09:03:29 -0800 | [diff] [blame] | 296 | '../tools/LazyDecodeBitmap.cpp', |
| 297 | ], |
| 298 | 'include_dirs': [ |
| 299 | '../src/core/', |
| 300 | '../src/lazy/', |
| 301 | '../tools/', |
| 302 | ], |
| 303 | 'dependencies': [ |
| 304 | 'flags.gyp:flags', |
| 305 | 'skia_lib.gyp:skia_lib', |
fmalita | 2aafe6f | 2015-02-06 12:51:10 -0800 | [diff] [blame] | 306 | 'svg.gyp:svg', |
fmalita | 93957f4 | 2015-01-30 09:03:29 -0800 | [diff] [blame] | 307 | 'xml.gyp:xml', |
| 308 | ], |
| 309 | }, |
| 310 | { |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 311 | 'target_name': 'gpuveto', |
| 312 | 'type': 'executable', |
| 313 | 'sources': [ |
| 314 | '../tools/gpuveto.cpp', |
| 315 | '../tools/LazyDecodeBitmap.cpp', |
| 316 | ], |
| 317 | 'include_dirs': [ |
| 318 | '../src/core/', |
| 319 | '../src/images', |
| 320 | '../src/lazy', |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 321 | ], |
| 322 | 'dependencies': [ |
| 323 | 'flags.gyp:flags', |
| 324 | 'skia_lib.gyp:skia_lib', |
| 325 | ], |
| 326 | }, |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 327 | { |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 328 | 'target_name': 'lua_app', |
| 329 | 'type': 'executable', |
| 330 | 'sources': [ |
| 331 | '../tools/lua/lua_app.cpp', |
| 332 | '../src/utils/SkLua.cpp', |
| 333 | ], |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 334 | 'include_dirs': [ |
| 335 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 336 | '../src/gpu/', |
| 337 | '../src/core/', |
| 338 | ], |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 339 | 'dependencies': [ |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 340 | 'effects.gyp:effects', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 341 | 'images.gyp:images', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 342 | 'lua.gyp:lua', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 343 | 'pdf.gyp:pdf', |
| 344 | 'ports.gyp:ports', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 345 | 'skia_lib.gyp:skia_lib', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 346 | ], |
| 347 | }, |
| 348 | { |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 349 | 'target_name': 'lua_pictures', |
| 350 | 'type': 'executable', |
| 351 | 'sources': [ |
| 352 | '../tools/lua/lua_pictures.cpp', |
| 353 | '../src/utils/SkLuaCanvas.cpp', |
reed@google.com | 74ce6f0 | 2013-05-22 15:13:18 +0000 | [diff] [blame] | 354 | '../src/utils/SkLua.cpp', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 355 | ], |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 356 | 'include_dirs': [ |
| 357 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 358 | '../src/gpu/', |
| 359 | '../src/core/', |
| 360 | ], |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 361 | 'dependencies': [ |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 362 | 'effects.gyp:effects', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 363 | 'flags.gyp:flags', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 364 | 'images.gyp:images', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 365 | 'lua.gyp:lua', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 366 | 'tools.gyp:picture_renderer', |
| 367 | 'tools.gyp:picture_utils', |
mike@reedtribe.org | fb85824 | 2013-06-08 16:39:44 +0000 | [diff] [blame] | 368 | 'pdf.gyp:pdf', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 369 | 'ports.gyp:ports', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 370 | 'skia_lib.gyp:skia_lib', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 371 | ], |
| 372 | }, |
| 373 | { |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 374 | 'target_name': 'render_pictures', |
| 375 | 'type': 'executable', |
| 376 | 'sources': [ |
| 377 | '../tools/render_pictures_main.cpp', |
keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 378 | ], |
| 379 | 'include_dirs': [ |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 380 | '../src/core', |
| 381 | '../src/images', |
| 382 | '../src/lazy', |
keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 383 | '../src/pipe/utils/', |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 384 | ], |
| 385 | 'dependencies': [ |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 386 | 'flags.gyp:flags', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 387 | 'skia_lib.gyp:skia_lib', |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 388 | 'tools.gyp:picture_renderer', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 389 | 'tools.gyp:picture_utils', |
| 390 | ], |
| 391 | }, |
| 392 | { |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 393 | 'target_name': 'bench_pictures', |
| 394 | 'type': 'executable', |
| 395 | 'sources': [ |
tfarina | f168b86 | 2014-06-19 12:32:29 -0700 | [diff] [blame] | 396 | '../bench/BenchLogger.cpp', |
| 397 | '../bench/BenchLogger.h', |
commit-bot@chromium.org | 37c772a | 2014-05-29 17:10:24 +0000 | [diff] [blame] | 398 | '../tools/PictureBenchmark.cpp', |
| 399 | '../tools/PictureResultsWriter.h', |
keyar@chromium.org | cf6c44c | 2012-07-09 19:37:40 +0000 | [diff] [blame] | 400 | '../tools/bench_pictures_main.cpp', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 401 | ], |
| 402 | 'include_dirs': [ |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 403 | '../src/core/', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 404 | '../bench', |
scroggo@google.com | cc69020 | 2013-03-04 19:56:21 +0000 | [diff] [blame] | 405 | '../src/lazy/', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 406 | ], |
| 407 | 'dependencies': [ |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 408 | 'timer', |
| 409 | 'crash_handler', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 410 | 'flags.gyp:flags', |
commit-bot@chromium.org | 37c772a | 2014-05-29 17:10:24 +0000 | [diff] [blame] | 411 | 'jsoncpp.gyp:jsoncpp', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 412 | 'skia_lib.gyp:skia_lib', |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 413 | 'tools.gyp:picture_renderer', |
mtklein | 30e6e2a | 2014-06-18 11:44:15 -0700 | [diff] [blame] | 414 | 'tools.gyp:picture_utils', |
scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 415 | ], |
scroggo | 3eb258d | 2014-07-17 06:58:28 -0700 | [diff] [blame] | 416 | 'conditions': [ |
| 417 | ['skia_android_framework == 1', { |
| 418 | 'libraries': [ '-lskia' ], |
| 419 | }], |
| 420 | ], |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 421 | }, |
| 422 | { |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 423 | 'target_name': 'dump_record', |
| 424 | 'type': 'executable', |
| 425 | 'sources': [ |
| 426 | '../tools/dump_record.cpp', |
commit-bot@chromium.org | 85fd193 | 2014-05-15 16:10:37 +0000 | [diff] [blame] | 427 | '../tools/DumpRecord.cpp', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 428 | '../tools/LazyDecodeBitmap.cpp', |
| 429 | ], |
| 430 | 'include_dirs': [ |
| 431 | '../src/core/', |
| 432 | '../src/images', |
| 433 | '../src/lazy', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 434 | ], |
| 435 | 'dependencies': [ |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 436 | 'timer', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 437 | 'flags.gyp:flags', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 438 | 'skia_lib.gyp:skia_lib', |
| 439 | ], |
| 440 | }, |
| 441 | { |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 442 | 'target_name': 'picture_renderer', |
| 443 | 'type': 'static_library', |
| 444 | 'sources': [ |
commit-bot@chromium.org | 90c0fbd | 2014-05-09 03:18:41 +0000 | [diff] [blame] | 445 | '../tools/image_expectations.h', |
| 446 | '../tools/image_expectations.cpp', |
commit-bot@chromium.org | 56799e2 | 2013-07-16 18:21:46 +0000 | [diff] [blame] | 447 | '../tools/LazyDecodeBitmap.cpp', |
scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 448 | '../tools/PictureRenderer.h', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 449 | '../tools/PictureRenderer.cpp', |
scroggo@google.com | 161e1ba | 2013-03-04 16:41:06 +0000 | [diff] [blame] | 450 | '../tools/PictureRenderingFlags.h', |
| 451 | '../tools/PictureRenderingFlags.cpp', |
scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 452 | '../tools/CopyTilesRenderer.h', |
| 453 | '../tools/CopyTilesRenderer.cpp', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 454 | '../src/pipe/utils/SamplePipeControllers.h', |
| 455 | '../src/pipe/utils/SamplePipeControllers.cpp', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 456 | ], |
| 457 | 'include_dirs': [ |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 458 | '../src/core', |
| 459 | '../src/images', |
| 460 | '../src/lazy', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 461 | '../src/pipe/utils/', |
| 462 | '../src/utils/', |
| 463 | ], |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 464 | 'direct_dependent_settings': { |
| 465 | 'include_dirs': [ |
commit-bot@chromium.org | 90c0fbd | 2014-05-09 03:18:41 +0000 | [diff] [blame] | 466 | # needed for JSON headers used within image_expectations.h |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 467 | '../third_party/externals/jsoncpp-chromium/overrides/include/', |
| 468 | '../third_party/externals/jsoncpp/include/', |
| 469 | ], |
| 470 | }, |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 471 | 'dependencies': [ |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 472 | 'flags.gyp:flags', |
| 473 | 'jsoncpp.gyp:jsoncpp', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 474 | 'skia_lib.gyp:skia_lib', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 475 | 'tools.gyp:picture_utils', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 476 | ], |
robertphillips@google.com | fe1b536 | 2013-02-07 19:45:46 +0000 | [diff] [blame] | 477 | 'conditions': [ |
| 478 | ['skia_gpu == 1', |
| 479 | { |
| 480 | 'include_dirs' : [ |
| 481 | '../src/gpu', |
| 482 | ], |
robertphillips@google.com | 94d8f1e | 2013-12-18 17:25:33 +0000 | [diff] [blame] | 483 | 'dependencies': [ |
| 484 | 'gputest.gyp:skgputest', |
| 485 | ], |
djsollen | e454521 | 2014-11-13 11:12:41 -0800 | [diff] [blame] | 486 | 'export_dependent_settings': [ |
| 487 | 'gputest.gyp:skgputest', |
| 488 | ], |
robertphillips@google.com | fe1b536 | 2013-02-07 19:45:46 +0000 | [diff] [blame] | 489 | }, |
| 490 | ], |
| 491 | ], |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 492 | }, |
| 493 | { |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 494 | 'target_name': 'render_pdfs', |
| 495 | 'type': 'executable', |
| 496 | 'sources': [ |
| 497 | '../tools/render_pdfs_main.cpp', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 498 | ], |
| 499 | 'include_dirs': [ |
halcanary | 0bef17a | 2014-08-07 07:24:47 -0700 | [diff] [blame] | 500 | '../src/core', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 501 | '../src/pipe/utils/', |
| 502 | '../src/utils/', |
| 503 | ], |
| 504 | 'dependencies': [ |
halcanary | 0bef17a | 2014-08-07 07:24:47 -0700 | [diff] [blame] | 505 | 'flags.gyp:flags', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 506 | 'pdf.gyp:pdf', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 507 | 'skia_lib.gyp:skia_lib', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 508 | 'tools.gyp:picture_utils', |
mtklein | afb4379 | 2014-08-19 15:55:55 -0700 | [diff] [blame] | 509 | 'tools.gyp:proc_stats', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 510 | ], |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 511 | 'conditions': [ |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 512 | ['skia_win_debuggers_path and skia_os == "win"', |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 513 | { |
| 514 | 'dependencies': [ |
| 515 | 'tools.gyp:win_dbghelp', |
| 516 | ], |
| 517 | }, |
| 518 | ], |
| 519 | # VS static libraries don't have a linker option. We must set a global |
| 520 | # project linker option, or add it to each executable. |
| 521 | ['skia_win_debuggers_path and skia_os == "win" and ' |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 522 | 'skia_arch_width == 64', |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 523 | { |
| 524 | 'msvs_settings': { |
| 525 | 'VCLinkerTool': { |
| 526 | 'AdditionalDependencies': [ |
| 527 | '<(skia_win_debuggers_path)/x64/DbgHelp.lib', |
| 528 | ], |
| 529 | }, |
| 530 | }, |
| 531 | }, |
| 532 | ], |
| 533 | ['skia_win_debuggers_path and skia_os == "win" and ' |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 534 | 'skia_arch_width == 32', |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 535 | { |
| 536 | 'msvs_settings': { |
| 537 | 'VCLinkerTool': { |
| 538 | 'AdditionalDependencies': [ |
| 539 | '<(skia_win_debuggers_path)/DbgHelp.lib', |
| 540 | ], |
| 541 | }, |
| 542 | }, |
| 543 | }, |
| 544 | ], |
| 545 | ], |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 546 | }, |
| 547 | { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 548 | 'target_name': 'picture_utils', |
| 549 | 'type': 'static_library', |
| 550 | 'sources': [ |
| 551 | '../tools/picture_utils.cpp', |
borenet@google.com | e21795e | 2012-09-14 14:34:28 +0000 | [diff] [blame] | 552 | '../tools/picture_utils.h', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 553 | ], |
| 554 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 555 | 'skia_lib.gyp:skia_lib', |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 556 | ], |
reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 557 | 'direct_dependent_settings': { |
| 558 | 'include_dirs': [ |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 559 | '../tools/', |
reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 560 | ], |
| 561 | }, |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 562 | }, |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 563 | { |
| 564 | 'target_name': 'pinspect', |
| 565 | 'type': 'executable', |
| 566 | 'sources': [ |
| 567 | '../tools/pinspect.cpp', |
| 568 | ], |
| 569 | 'dependencies': [ |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 570 | 'flags.gyp:flags', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 571 | 'skia_lib.gyp:skia_lib', |
commit-bot@chromium.org | 826ec81 | 2013-06-12 18:28:36 +0000 | [diff] [blame] | 572 | 'tools.gyp:picture_renderer', |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 573 | ], |
| 574 | }, |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 575 | { |
reed | a816d95 | 2014-12-17 13:08:17 -0800 | [diff] [blame] | 576 | 'target_name': 'imgconv', |
| 577 | 'type': 'executable', |
| 578 | 'sources': [ |
| 579 | '../tools/imgconv.cpp', |
| 580 | ], |
| 581 | 'dependencies': [ |
| 582 | 'flags.gyp:flags', |
| 583 | 'skia_lib.gyp:skia_lib', |
| 584 | ], |
| 585 | }, |
| 586 | { |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 587 | 'target_name': 'filter', |
| 588 | 'type': 'executable', |
| 589 | 'include_dirs' : [ |
| 590 | '../src/core', |
fmalita@google.com | 4df1673 | 2013-06-13 21:25:45 +0000 | [diff] [blame] | 591 | '../src/utils/debugger', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 592 | ], |
| 593 | 'sources': [ |
| 594 | '../tools/filtermain.cpp', |
fmalita@google.com | 86681b3 | 2013-06-13 20:59:14 +0000 | [diff] [blame] | 595 | '../src/utils/debugger/SkDrawCommand.h', |
| 596 | '../src/utils/debugger/SkDrawCommand.cpp', |
| 597 | '../src/utils/debugger/SkDebugCanvas.h', |
| 598 | '../src/utils/debugger/SkDebugCanvas.cpp', |
| 599 | '../src/utils/debugger/SkObjectParser.h', |
| 600 | '../src/utils/debugger/SkObjectParser.cpp', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 601 | ], |
| 602 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 603 | 'skia_lib.gyp:skia_lib', |
djsollen@google.com | a09e883 | 2012-11-13 18:50:33 +0000 | [diff] [blame] | 604 | 'tools.gyp:picture_utils', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 605 | ], |
| 606 | }, |
halcanary@google.com | fed3037 | 2013-10-04 12:46:45 +0000 | [diff] [blame] | 607 | { |
| 608 | 'target_name': 'test_image_decoder', |
| 609 | 'type': 'executable', |
| 610 | 'sources': [ |
| 611 | '../tools/test_image_decoder.cpp', |
| 612 | ], |
| 613 | 'dependencies': [ |
| 614 | 'skia_lib.gyp:skia_lib', |
| 615 | ], |
| 616 | }, |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 617 | { |
mtklein | afb4379 | 2014-08-19 15:55:55 -0700 | [diff] [blame] | 618 | 'target_name': 'proc_stats', |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 619 | 'type': 'static_library', |
| 620 | 'sources': [ |
| 621 | '../tools/ProcStats.h', |
| 622 | '../tools/ProcStats.cpp', |
| 623 | ], |
| 624 | 'direct_dependent_settings': { |
| 625 | 'include_dirs': [ '../tools', ], |
| 626 | }, |
| 627 | }, |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 628 | { |
| 629 | 'target_name': 'test_public_includes', |
| 630 | 'type': 'static_library', |
djsollen | c87dd2c | 2014-11-14 11:11:46 -0800 | [diff] [blame] | 631 | # Ensure that our public headers don't have unused params so that clients |
| 632 | # (e.g. Android) that include us can build with these warnings enabled |
| 633 | 'cflags!': [ '-Wno-unused-parameter' ], |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 634 | 'variables': { |
| 635 | 'includes_to_test': [ |
| 636 | '<(skia_include_path)/animator', |
| 637 | '<(skia_include_path)/c', |
| 638 | '<(skia_include_path)/config', |
| 639 | '<(skia_include_path)/core', |
| 640 | '<(skia_include_path)/effects', |
| 641 | '<(skia_include_path)/gpu', |
| 642 | '<(skia_include_path)/images', |
| 643 | '<(skia_include_path)/pathops', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 644 | '<(skia_include_path)/pipe', |
| 645 | '<(skia_include_path)/ports', |
fmalita | 02c8fd0 | 2015-02-06 08:43:51 -0800 | [diff] [blame] | 646 | '<(skia_include_path)/svg/parser', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 647 | '<(skia_include_path)/utils', |
| 648 | '<(skia_include_path)/views', |
| 649 | '<(skia_include_path)/xml', |
| 650 | ], |
| 651 | 'paths_to_ignore': [ |
| 652 | '<(skia_include_path)/gpu/gl/GrGLConfig_chrome.h', |
mtklein | a669bc7 | 2015-02-02 12:22:07 -0800 | [diff] [blame] | 653 | '<(skia_include_path)/ports/SkAtomics_std.h', |
| 654 | '<(skia_include_path)/ports/SkAtomics_atomic.h', |
mtklein | a64c48f | 2015-01-21 13:13:31 -0800 | [diff] [blame] | 655 | '<(skia_include_path)/ports/SkAtomics_sync.h', |
bungeman | 0b1de26 | 2015-06-17 07:55:59 -0700 | [diff] [blame] | 656 | '<(skia_include_path)/ports/SkFontMgr_fontconfig.h', |
mtklein | a64c48f | 2015-01-21 13:13:31 -0800 | [diff] [blame] | 657 | '<(skia_include_path)/ports/SkMutex_pthread.h', |
| 658 | '<(skia_include_path)/ports/SkMutex_win.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 659 | '<(skia_include_path)/ports/SkTypeface_mac.h', |
| 660 | '<(skia_include_path)/ports/SkTypeface_win.h', |
| 661 | '<(skia_include_path)/utils/ios', |
| 662 | '<(skia_include_path)/utils/mac', |
| 663 | '<(skia_include_path)/utils/win', |
| 664 | '<(skia_include_path)/utils/SkDebugUtils.h', |
| 665 | '<(skia_include_path)/utils/SkJSONCPP.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 666 | '<(skia_include_path)/views/animated', |
| 667 | '<(skia_include_path)/views/SkOSWindow_Android.h', |
| 668 | '<(skia_include_path)/views/SkOSWindow_iOS.h', |
| 669 | '<(skia_include_path)/views/SkOSWindow_Mac.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 670 | '<(skia_include_path)/views/SkOSWindow_SDL.h', |
| 671 | '<(skia_include_path)/views/SkOSWindow_Unix.h', |
| 672 | '<(skia_include_path)/views/SkOSWindow_Win.h', |
| 673 | '<(skia_include_path)/views/SkWindow.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 674 | ], |
| 675 | }, |
| 676 | 'include_dirs': [ |
| 677 | '<@(includes_to_test)', |
| 678 | ], |
| 679 | 'sources': [ |
| 680 | # unused_param_test.cpp is generated by the action below. |
| 681 | '<(INTERMEDIATE_DIR)/test_public_includes.cpp', |
| 682 | ], |
| 683 | 'actions': [ |
| 684 | { |
| 685 | 'action_name': 'generate_includes_cpp', |
| 686 | 'inputs': [ |
| 687 | '../tools/generate_includes_cpp.py', |
| 688 | '<@(includes_to_test)', |
| 689 | # This causes the gyp generator on mac to fail |
| 690 | #'<@(paths_to_ignore)', |
| 691 | ], |
| 692 | 'outputs': [ |
| 693 | '<(INTERMEDIATE_DIR)/test_public_includes.cpp', |
| 694 | ], |
| 695 | 'action': ['python', '../tools/generate_includes_cpp.py', |
| 696 | '--ignore', '<(paths_to_ignore)', |
| 697 | '<@(_outputs)', '<@(includes_to_test)'], |
| 698 | }, |
| 699 | ], |
| 700 | }, |
edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 701 | ], |
| 702 | 'conditions': [ |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 703 | ['skia_shared_lib', |
| 704 | { |
| 705 | 'targets': [ |
| 706 | { |
| 707 | 'target_name': 'sklua', |
| 708 | 'product_name': 'skia', |
| 709 | 'product_prefix': '', |
| 710 | 'product_dir': '<(PRODUCT_DIR)/', |
| 711 | 'type': 'shared_library', |
| 712 | 'sources': [ |
| 713 | '../src/utils/SkLuaCanvas.cpp', |
| 714 | '../src/utils/SkLua.cpp', |
| 715 | ], |
| 716 | 'include_dirs': [ |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 717 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 718 | '../src/gpu/', |
| 719 | '../src/core/', |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 720 | '../third_party/lua/src/', |
| 721 | ], |
| 722 | 'dependencies': [ |
| 723 | 'lua.gyp:lua', |
| 724 | 'pdf.gyp:pdf', |
| 725 | 'skia_lib.gyp:skia_lib', |
| 726 | ], |
| 727 | 'conditions': [ |
| 728 | ['skia_os != "win"', |
| 729 | { |
| 730 | 'ldflags': [ |
| 731 | '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags', |
| 732 | ], |
| 733 | }, |
| 734 | ], |
| 735 | ], |
| 736 | }, |
| 737 | ], |
| 738 | }, |
| 739 | ], |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 740 | ['skia_win_debuggers_path and skia_os == "win"', |
edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 741 | { |
| 742 | 'targets': [ |
| 743 | { |
| 744 | 'target_name': 'win_dbghelp', |
| 745 | 'type': 'static_library', |
| 746 | 'defines': [ |
| 747 | 'SK_CDB_PATH="<(skia_win_debuggers_path)"', |
| 748 | ], |
| 749 | 'sources': [ |
| 750 | '../tools/win_dbghelp.h', |
| 751 | '../tools/win_dbghelp.cpp', |
| 752 | ], |
| 753 | }, |
| 754 | ], |
| 755 | }, |
| 756 | ], |
bungeman@google.com | 07a69f8 | 2013-04-02 14:12:38 +0000 | [diff] [blame] | 757 | ['skia_os == "win"', |
| 758 | { |
| 759 | 'targets': [ |
| 760 | { |
| 761 | 'target_name': 'win_lcid', |
| 762 | 'type': 'executable', |
| 763 | 'sources': [ |
| 764 | '../tools/win_lcid.cpp', |
| 765 | ], |
| 766 | }, |
| 767 | ], |
| 768 | }, |
| 769 | ], |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 770 | ['skia_os == "mac"', |
| 771 | { |
| 772 | 'targets': [ |
| 773 | { |
| 774 | 'target_name': 'create_test_font', |
| 775 | 'type': 'executable', |
| 776 | 'sources': [ |
| 777 | '../tools/create_test_font.cpp', |
| 778 | ], |
| 779 | 'include_dirs': [ |
| 780 | '../src/core', |
| 781 | ], |
| 782 | 'dependencies': [ |
| 783 | 'flags.gyp:flags', |
| 784 | 'skia_lib.gyp:skia_lib', |
| 785 | 'resources', |
| 786 | ], |
| 787 | }, |
| 788 | ], |
| 789 | }, |
| 790 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 791 | ], |
| 792 | } |