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