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