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