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