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