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': [ |
caryclark | 7da2e55 | 2015-05-12 08:36:48 -0700 | [diff] [blame] | 20 | 'chrome_fuzz', |
mtklein | 2f2903d | 2015-11-18 11:06:37 -0800 | [diff] [blame] | 21 | 'dump_record', |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 22 | 'gpuveto', |
robertphillips | 9c4909b | 2015-10-19 06:39:17 -0700 | [diff] [blame] | 23 | 'imgblur', |
| 24 | 'imgconv', |
| 25 | 'imgslice', |
commit-bot@chromium.org | 5ccdf01 | 2014-01-02 18:51:38 +0000 | [diff] [blame] | 26 | 'lua_app', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 27 | 'lua_pictures', |
edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 28 | 'pinspect', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 29 | 'skdiff', |
commit-bot@chromium.org | 5ccdf01 | 2014-01-02 18:51:38 +0000 | [diff] [blame] | 30 | 'skhello', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 31 | 'skpdiff', |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 32 | 'skpinfo', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 33 | 'skpmaker', |
halcanary@google.com | fed3037 | 2013-10-04 12:46:45 +0000 | [diff] [blame] | 34 | 'test_image_decoder', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 35 | 'test_public_includes', |
caryclark | 5ef194c | 2015-08-31 09:22:38 -0700 | [diff] [blame] | 36 | 'whitelist_typefaces', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 37 | ], |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 38 | 'conditions': [ |
| 39 | ['skia_shared_lib', |
| 40 | { |
| 41 | 'dependencies': [ |
| 42 | 'sklua', # This can only be built if skia is built as a shared library |
| 43 | ], |
| 44 | }, |
| 45 | ], |
| 46 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 47 | }, |
mtklein | 9a0d6d6 | 2014-12-15 12:47:51 -0800 | [diff] [blame] | 48 | { |
mtklein | 2f2903d | 2015-11-18 11:06:37 -0800 | [diff] [blame] | 49 | 'target_name': 'dump_record', |
| 50 | 'type': 'executable', |
| 51 | 'sources': [ |
| 52 | '../tools/dump_record.cpp', |
| 53 | '../tools/DumpRecord.cpp', |
| 54 | ], |
| 55 | 'include_dirs': [ |
| 56 | '../include/private', |
| 57 | '../src/core', |
| 58 | ], |
| 59 | 'dependencies': [ |
| 60 | 'flags.gyp:flags', |
| 61 | 'lazy_decode_bitmap', |
| 62 | 'skia_lib.gyp:skia_lib', |
| 63 | ], |
| 64 | }, |
| 65 | { |
caryclark | 7da2e55 | 2015-05-12 08:36:48 -0700 | [diff] [blame] | 66 | 'target_name': 'chrome_fuzz', |
| 67 | 'type': 'executable', |
| 68 | 'sources': [ |
| 69 | '../tools/chrome_fuzz.cpp', |
| 70 | ], |
| 71 | 'dependencies': [ |
| 72 | 'skia_lib.gyp:skia_lib', |
| 73 | ], |
| 74 | }, |
| 75 | { |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 76 | 'target_name': 'crash_handler', |
| 77 | 'type': 'static_library', |
| 78 | 'sources': [ '../tools/CrashHandler.cpp' ], |
| 79 | 'dependencies': [ 'skia_lib.gyp:skia_lib' ], |
| 80 | 'direct_dependent_settings': { |
| 81 | 'include_dirs': [ '../tools' ], |
| 82 | }, |
scroggo | ac928f2 | 2015-02-10 08:13:26 -0800 | [diff] [blame] | 83 | 'conditions': [ |
| 84 | [ 'skia_is_bot', { |
| 85 | 'defines': [ 'SK_CRASH_HANDLER' ], |
| 86 | }], |
| 87 | ], |
| 88 | |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 89 | 'all_dependent_settings': { |
| 90 | 'msvs_settings': { |
| 91 | 'VCLinkerTool': { |
| 92 | 'AdditionalDependencies': [ 'Dbghelp.lib' ], |
| 93 | } |
| 94 | }, |
| 95 | } |
| 96 | }, |
| 97 | { |
| 98 | 'target_name': 'resources', |
| 99 | 'type': 'static_library', |
| 100 | 'sources': [ '../tools/Resources.cpp' ], |
| 101 | 'dependencies': [ |
| 102 | 'flags.gyp:flags', |
| 103 | 'skia_lib.gyp:skia_lib', |
| 104 | ], |
| 105 | 'direct_dependent_settings': { |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 106 | 'include_dirs': [ '../tools', ], |
| 107 | }, |
| 108 | }, |
| 109 | { |
| 110 | 'target_name': 'sk_tool_utils', |
| 111 | 'type': 'static_library', |
caryclark | 5fb6bd4 | 2014-06-23 11:25:00 -0700 | [diff] [blame] | 112 | 'sources': [ |
| 113 | '../tools/sk_tool_utils.cpp', |
| 114 | '../tools/sk_tool_utils_font.cpp', |
| 115 | ], |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 116 | 'include_dirs': [ |
herb | 62a69c2 | 2015-09-29 11:47:45 -0700 | [diff] [blame] | 117 | '../include/private', |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 118 | '../src/fonts', |
robertphillips | 2f0dbc7 | 2015-08-20 05:15:06 -0700 | [diff] [blame] | 119 | '../src/core', |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 120 | ], |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 121 | 'dependencies': [ |
mtklein | ada972d | 2014-07-31 08:31:56 -0700 | [diff] [blame] | 122 | 'resources', |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 123 | 'flags.gyp:flags', |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 124 | 'skia_lib.gyp:skia_lib', |
| 125 | ], |
| 126 | 'direct_dependent_settings': { |
| 127 | 'include_dirs': [ '../tools', ], |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 128 | }, |
| 129 | }, |
| 130 | { |
| 131 | 'target_name' : 'timer', |
| 132 | 'type': 'static_library', |
mtklein | 33eefcd | 2015-10-23 07:02:06 -0700 | [diff] [blame] | 133 | 'sources': [ '../tools/timer/Timer.cpp' ], |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 134 | 'direct_dependent_settings': { |
| 135 | 'include_dirs': ['../tools/timer'], |
| 136 | }, |
mtklein | 33eefcd | 2015-10-23 07:02:06 -0700 | [diff] [blame] | 137 | 'dependencies': [ 'skia_lib.gyp:skia_lib' ], |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 138 | }, |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 139 | { |
| 140 | 'target_name': 'skdiff', |
| 141 | 'type': 'executable', |
| 142 | 'sources': [ |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 143 | '../tools/skdiff.cpp', |
| 144 | '../tools/skdiff.h', |
| 145 | '../tools/skdiff_html.cpp', |
| 146 | '../tools/skdiff_html.h', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 147 | '../tools/skdiff_main.cpp', |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 148 | '../tools/skdiff_utils.cpp', |
| 149 | '../tools/skdiff_utils.h', |
| 150 | ], |
| 151 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 152 | 'skia_lib.gyp:skia_lib', |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 153 | ], |
| 154 | }, |
| 155 | { |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 156 | 'target_name': 'skpdiff', |
| 157 | 'type': 'executable', |
| 158 | 'sources': [ |
| 159 | '../tools/skpdiff/skpdiff_main.cpp', |
| 160 | '../tools/skpdiff/SkDiffContext.cpp', |
| 161 | '../tools/skpdiff/SkImageDiffer.cpp', |
| 162 | '../tools/skpdiff/SkPMetric.cpp', |
| 163 | '../tools/skpdiff/skpdiff_util.cpp', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 164 | ], |
| 165 | 'include_dirs': [ |
mtklein | fd8ed69 | 2015-07-28 09:54:52 -0700 | [diff] [blame] | 166 | '../include/private', |
djsollen@google.com | efc51b7 | 2013-11-12 18:29:17 +0000 | [diff] [blame] | 167 | '../src/core/', # needed for SkTLList.h |
stephana | 21b342d | 2014-08-13 10:36:06 -0700 | [diff] [blame] | 168 | '../tools/', # needed for picture_utils::replace_char |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 169 | ], |
| 170 | 'dependencies': [ |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 171 | 'flags.gyp:flags', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 172 | 'skia_lib.gyp:skia_lib', |
stephana | 21b342d | 2014-08-13 10:36:06 -0700 | [diff] [blame] | 173 | 'tools.gyp:picture_utils', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 174 | ], |
| 175 | 'cflags': [ |
| 176 | '-O3', |
| 177 | ], |
| 178 | 'conditions': [ |
| 179 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 180 | 'link_settings': { |
| 181 | 'libraries': [ |
| 182 | '-lrt', |
borenet | 283714f | 2015-06-25 08:05:19 -0700 | [diff] [blame] | 183 | '-pthread', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 184 | ], |
| 185 | }, |
| 186 | }], |
| 187 | ['skia_opencl', { |
| 188 | 'sources': [ |
| 189 | '../tools/skpdiff/SkCLImageDiffer.cpp', |
| 190 | '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp', |
| 191 | ], |
| 192 | 'conditions': [ |
| 193 | [ 'skia_os == "mac"', { |
| 194 | 'link_settings': { |
| 195 | 'libraries': [ |
| 196 | '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', |
| 197 | ] |
| 198 | } |
| 199 | }, { |
| 200 | 'link_settings': { |
| 201 | 'libraries': [ |
| 202 | '-lOpenCL', |
| 203 | ], |
| 204 | }, |
| 205 | }], |
| 206 | ], |
| 207 | }, { # !skia_opencl |
| 208 | 'sources': [ |
| 209 | '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp', |
| 210 | ], |
| 211 | }], |
| 212 | ], |
| 213 | }, |
| 214 | { |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 215 | 'target_name': 'skpmaker', |
| 216 | 'type': 'executable', |
| 217 | 'sources': [ |
| 218 | '../tools/skpmaker.cpp', |
| 219 | ], |
| 220 | 'include_dirs': [ |
mtklein | fd8ed69 | 2015-07-28 09:54:52 -0700 | [diff] [blame] | 221 | '../include/private', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 222 | '../src/core', |
| 223 | ], |
| 224 | 'dependencies': [ |
| 225 | 'flags.gyp:flags', |
| 226 | 'skia_lib.gyp:skia_lib', |
| 227 | ], |
| 228 | }, |
| 229 | { |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 230 | 'target_name': 'skimagediff', |
| 231 | 'type': 'executable', |
| 232 | 'sources': [ |
| 233 | '../tools/skdiff.cpp', |
| 234 | '../tools/skdiff.h', |
| 235 | '../tools/skdiff_html.cpp', |
| 236 | '../tools/skdiff_html.h', |
| 237 | '../tools/skdiff_image.cpp', |
| 238 | '../tools/skdiff_utils.cpp', |
| 239 | '../tools/skdiff_utils.h', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 240 | ], |
| 241 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 242 | 'skia_lib.gyp:skia_lib', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 243 | ], |
| 244 | }, |
| 245 | { |
| 246 | 'target_name': 'skhello', |
| 247 | 'type': 'executable', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 248 | 'dependencies': [ |
borenet | 4808757 | 2015-04-02 12:16:36 -0700 | [diff] [blame] | 249 | 'flags.gyp:flags', |
| 250 | 'pdf.gyp:pdf', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 251 | 'skia_lib.gyp:skia_lib', |
borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 252 | ], |
borenet | 4808757 | 2015-04-02 12:16:36 -0700 | [diff] [blame] | 253 | 'sources': [ |
| 254 | '../tools/skhello.cpp', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 255 | ], |
| 256 | }, |
| 257 | { |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 258 | 'target_name': 'skpinfo', |
| 259 | 'type': 'executable', |
| 260 | 'sources': [ |
| 261 | '../tools/skpinfo.cpp', |
| 262 | ], |
| 263 | 'include_dirs': [ |
mtklein | fd8ed69 | 2015-07-28 09:54:52 -0700 | [diff] [blame] | 264 | '../include/private', |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 265 | '../src/core/', |
| 266 | ], |
| 267 | 'dependencies': [ |
| 268 | 'flags.gyp:flags', |
| 269 | 'skia_lib.gyp:skia_lib', |
| 270 | ], |
| 271 | }, |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 272 | { |
robertphillips | 9c4909b | 2015-10-19 06:39:17 -0700 | [diff] [blame] | 273 | 'target_name': 'imgblur', |
| 274 | 'type': 'executable', |
| 275 | 'sources': [ |
| 276 | '../tools/imgblur.cpp', |
| 277 | ], |
| 278 | 'include_dirs': [ |
| 279 | '../include/core', |
| 280 | ], |
| 281 | 'dependencies': [ |
| 282 | 'flags.gyp:flags', |
| 283 | 'flags.gyp:flags_common', |
| 284 | 'skia_lib.gyp:skia_lib', |
| 285 | 'tools.gyp:sk_tool_utils', |
| 286 | ], |
| 287 | }, |
| 288 | { |
robertphillips | 5ce341f | 2015-09-18 09:04:43 -0700 | [diff] [blame] | 289 | 'target_name': 'imgslice', |
| 290 | 'type': 'executable', |
| 291 | 'sources': [ |
| 292 | '../tools/imgslice.cpp', |
| 293 | ], |
| 294 | 'include_dirs': [ |
| 295 | '../include/core', |
| 296 | ], |
| 297 | 'dependencies': [ |
| 298 | 'flags.gyp:flags', |
| 299 | 'skia_lib.gyp:skia_lib', |
| 300 | ], |
| 301 | }, |
| 302 | { |
mtklein | 0c768a2 | 2015-10-20 14:29:10 -0700 | [diff] [blame] | 303 | 'target_name': 'lazy_decode_bitmap', |
| 304 | 'type': 'static_library', |
| 305 | 'sources': [ '../tools/LazyDecodeBitmap.cpp' ], |
| 306 | 'include_dirs': [ |
| 307 | '../include/private', |
| 308 | '../src/core', |
| 309 | '../src/lazy', |
| 310 | ], |
| 311 | 'dependencies': [ |
| 312 | 'flags.gyp:flags', |
| 313 | 'skia_lib.gyp:skia_lib' |
| 314 | ], |
fmalita | 93957f4 | 2015-01-30 09:03:29 -0800 | [diff] [blame] | 315 | }, |
| 316 | { |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 317 | 'target_name': 'gpuveto', |
| 318 | 'type': 'executable', |
| 319 | 'sources': [ |
| 320 | '../tools/gpuveto.cpp', |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 321 | ], |
| 322 | 'include_dirs': [ |
mtklein | fd8ed69 | 2015-07-28 09:54:52 -0700 | [diff] [blame] | 323 | '../include/private', |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 324 | '../src/core/', |
| 325 | '../src/images', |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 326 | ], |
| 327 | 'dependencies': [ |
mtklein | 0c768a2 | 2015-10-20 14:29:10 -0700 | [diff] [blame] | 328 | 'lazy_decode_bitmap', |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 329 | 'flags.gyp:flags', |
| 330 | 'skia_lib.gyp:skia_lib', |
| 331 | ], |
| 332 | }, |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 333 | { |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 334 | 'target_name': 'lua_app', |
| 335 | 'type': 'executable', |
| 336 | 'sources': [ |
| 337 | '../tools/lua/lua_app.cpp', |
| 338 | '../src/utils/SkLua.cpp', |
| 339 | ], |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 340 | 'include_dirs': [ |
mtklein | fd8ed69 | 2015-07-28 09:54:52 -0700 | [diff] [blame] | 341 | '../include/private', |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 342 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 343 | '../src/gpu/', |
| 344 | '../src/core/', |
| 345 | ], |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 346 | 'dependencies': [ |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 347 | 'effects.gyp:effects', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 348 | 'images.gyp:images', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 349 | 'lua.gyp:lua', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 350 | 'pdf.gyp:pdf', |
| 351 | 'ports.gyp:ports', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 352 | 'skia_lib.gyp:skia_lib', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 353 | ], |
| 354 | }, |
| 355 | { |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 356 | 'target_name': 'lua_pictures', |
| 357 | 'type': 'executable', |
| 358 | 'sources': [ |
| 359 | '../tools/lua/lua_pictures.cpp', |
| 360 | '../src/utils/SkLuaCanvas.cpp', |
reed@google.com | 74ce6f0 | 2013-05-22 15:13:18 +0000 | [diff] [blame] | 361 | '../src/utils/SkLua.cpp', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 362 | ], |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 363 | 'include_dirs': [ |
mtklein | fd8ed69 | 2015-07-28 09:54:52 -0700 | [diff] [blame] | 364 | '../include/private', |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 365 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 366 | '../src/gpu/', |
| 367 | '../src/core/', |
| 368 | ], |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 369 | 'dependencies': [ |
mtklein | 0c768a2 | 2015-10-20 14:29:10 -0700 | [diff] [blame] | 370 | 'lazy_decode_bitmap', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 371 | 'effects.gyp:effects', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 372 | 'flags.gyp:flags', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 373 | 'images.gyp:images', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 374 | 'lua.gyp:lua', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 375 | 'tools.gyp:picture_utils', |
mike@reedtribe.org | fb85824 | 2013-06-08 16:39:44 +0000 | [diff] [blame] | 376 | 'pdf.gyp:pdf', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 377 | 'ports.gyp:ports', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 378 | 'skia_lib.gyp:skia_lib', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 379 | ], |
| 380 | }, |
| 381 | { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 382 | 'target_name': 'picture_utils', |
| 383 | 'type': 'static_library', |
| 384 | 'sources': [ |
| 385 | '../tools/picture_utils.cpp', |
borenet@google.com | e21795e | 2012-09-14 14:34:28 +0000 | [diff] [blame] | 386 | '../tools/picture_utils.h', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 387 | ], |
| 388 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 389 | 'skia_lib.gyp:skia_lib', |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 390 | ], |
reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 391 | 'direct_dependent_settings': { |
| 392 | 'include_dirs': [ |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 393 | '../tools/', |
reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 394 | ], |
| 395 | }, |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 396 | }, |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 397 | { |
| 398 | 'target_name': 'pinspect', |
| 399 | 'type': 'executable', |
| 400 | 'sources': [ |
| 401 | '../tools/pinspect.cpp', |
| 402 | ], |
| 403 | 'dependencies': [ |
mtklein | 0c768a2 | 2015-10-20 14:29:10 -0700 | [diff] [blame] | 404 | 'lazy_decode_bitmap', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 405 | 'flags.gyp:flags', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 406 | 'skia_lib.gyp:skia_lib', |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 407 | ], |
| 408 | }, |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 409 | { |
reed | a816d95 | 2014-12-17 13:08:17 -0800 | [diff] [blame] | 410 | 'target_name': 'imgconv', |
| 411 | 'type': 'executable', |
| 412 | 'sources': [ |
| 413 | '../tools/imgconv.cpp', |
| 414 | ], |
| 415 | 'dependencies': [ |
| 416 | 'flags.gyp:flags', |
| 417 | 'skia_lib.gyp:skia_lib', |
| 418 | ], |
| 419 | }, |
| 420 | { |
halcanary@google.com | fed3037 | 2013-10-04 12:46:45 +0000 | [diff] [blame] | 421 | 'target_name': 'test_image_decoder', |
| 422 | 'type': 'executable', |
| 423 | 'sources': [ |
| 424 | '../tools/test_image_decoder.cpp', |
| 425 | ], |
| 426 | 'dependencies': [ |
| 427 | 'skia_lib.gyp:skia_lib', |
| 428 | ], |
| 429 | }, |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 430 | { |
mtklein | afb4379 | 2014-08-19 15:55:55 -0700 | [diff] [blame] | 431 | 'target_name': 'proc_stats', |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 432 | 'type': 'static_library', |
| 433 | 'sources': [ |
| 434 | '../tools/ProcStats.h', |
| 435 | '../tools/ProcStats.cpp', |
| 436 | ], |
| 437 | 'direct_dependent_settings': { |
| 438 | 'include_dirs': [ '../tools', ], |
| 439 | }, |
| 440 | }, |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 441 | { |
caryclark | 5ef194c | 2015-08-31 09:22:38 -0700 | [diff] [blame] | 442 | 'target_name': 'whitelist_typefaces', |
| 443 | 'type': 'executable', |
| 444 | 'sources': [ |
| 445 | '../tools/whitelist_typefaces.cpp', |
| 446 | ], |
| 447 | 'dependencies': [ |
| 448 | 'skia_lib.gyp:skia_lib', |
| 449 | ], |
| 450 | }, |
| 451 | { |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 452 | 'target_name': 'test_public_includes', |
| 453 | 'type': 'static_library', |
djsollen | c87dd2c | 2014-11-14 11:11:46 -0800 | [diff] [blame] | 454 | # Ensure that our public headers don't have unused params so that clients |
| 455 | # (e.g. Android) that include us can build with these warnings enabled |
| 456 | 'cflags!': [ '-Wno-unused-parameter' ], |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 457 | 'variables': { |
| 458 | 'includes_to_test': [ |
msarett | 506e19a | 2015-11-13 06:11:09 -0800 | [diff] [blame] | 459 | '<(skia_include_path)/android', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 460 | '<(skia_include_path)/animator', |
| 461 | '<(skia_include_path)/c', |
msarett | 33bee09 | 2015-11-11 12:43:07 -0800 | [diff] [blame] | 462 | '<(skia_include_path)/codec', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 463 | '<(skia_include_path)/config', |
| 464 | '<(skia_include_path)/core', |
| 465 | '<(skia_include_path)/effects', |
| 466 | '<(skia_include_path)/gpu', |
| 467 | '<(skia_include_path)/images', |
| 468 | '<(skia_include_path)/pathops', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 469 | '<(skia_include_path)/pipe', |
| 470 | '<(skia_include_path)/ports', |
fmalita | 02c8fd0 | 2015-02-06 08:43:51 -0800 | [diff] [blame] | 471 | '<(skia_include_path)/svg/parser', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 472 | '<(skia_include_path)/utils', |
| 473 | '<(skia_include_path)/views', |
| 474 | '<(skia_include_path)/xml', |
| 475 | ], |
| 476 | 'paths_to_ignore': [ |
| 477 | '<(skia_include_path)/gpu/gl/GrGLConfig_chrome.h', |
bungeman | 0b1de26 | 2015-06-17 07:55:59 -0700 | [diff] [blame] | 478 | '<(skia_include_path)/ports/SkFontMgr_fontconfig.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 479 | '<(skia_include_path)/ports/SkTypeface_mac.h', |
| 480 | '<(skia_include_path)/ports/SkTypeface_win.h', |
| 481 | '<(skia_include_path)/utils/ios', |
| 482 | '<(skia_include_path)/utils/mac', |
| 483 | '<(skia_include_path)/utils/win', |
| 484 | '<(skia_include_path)/utils/SkDebugUtils.h', |
| 485 | '<(skia_include_path)/utils/SkJSONCPP.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 486 | '<(skia_include_path)/views/animated', |
| 487 | '<(skia_include_path)/views/SkOSWindow_Android.h', |
| 488 | '<(skia_include_path)/views/SkOSWindow_iOS.h', |
| 489 | '<(skia_include_path)/views/SkOSWindow_Mac.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 490 | '<(skia_include_path)/views/SkOSWindow_SDL.h', |
| 491 | '<(skia_include_path)/views/SkOSWindow_Unix.h', |
| 492 | '<(skia_include_path)/views/SkOSWindow_Win.h', |
| 493 | '<(skia_include_path)/views/SkWindow.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 494 | ], |
| 495 | }, |
| 496 | 'include_dirs': [ |
| 497 | '<@(includes_to_test)', |
| 498 | ], |
| 499 | 'sources': [ |
| 500 | # unused_param_test.cpp is generated by the action below. |
| 501 | '<(INTERMEDIATE_DIR)/test_public_includes.cpp', |
| 502 | ], |
| 503 | 'actions': [ |
| 504 | { |
| 505 | 'action_name': 'generate_includes_cpp', |
| 506 | 'inputs': [ |
| 507 | '../tools/generate_includes_cpp.py', |
| 508 | '<@(includes_to_test)', |
| 509 | # This causes the gyp generator on mac to fail |
| 510 | #'<@(paths_to_ignore)', |
| 511 | ], |
| 512 | 'outputs': [ |
| 513 | '<(INTERMEDIATE_DIR)/test_public_includes.cpp', |
| 514 | ], |
| 515 | 'action': ['python', '../tools/generate_includes_cpp.py', |
| 516 | '--ignore', '<(paths_to_ignore)', |
| 517 | '<@(_outputs)', '<@(includes_to_test)'], |
| 518 | }, |
| 519 | ], |
| 520 | }, |
edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 521 | ], |
| 522 | 'conditions': [ |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 523 | ['skia_shared_lib', |
| 524 | { |
| 525 | 'targets': [ |
| 526 | { |
| 527 | 'target_name': 'sklua', |
| 528 | 'product_name': 'skia', |
| 529 | 'product_prefix': '', |
| 530 | 'product_dir': '<(PRODUCT_DIR)/', |
| 531 | 'type': 'shared_library', |
| 532 | 'sources': [ |
| 533 | '../src/utils/SkLuaCanvas.cpp', |
| 534 | '../src/utils/SkLua.cpp', |
| 535 | ], |
| 536 | 'include_dirs': [ |
mtklein | fd8ed69 | 2015-07-28 09:54:52 -0700 | [diff] [blame] | 537 | '../include/private', |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 538 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 539 | '../src/gpu/', |
| 540 | '../src/core/', |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 541 | '../third_party/lua/src/', |
| 542 | ], |
| 543 | 'dependencies': [ |
| 544 | 'lua.gyp:lua', |
| 545 | 'pdf.gyp:pdf', |
| 546 | 'skia_lib.gyp:skia_lib', |
| 547 | ], |
| 548 | 'conditions': [ |
| 549 | ['skia_os != "win"', |
| 550 | { |
| 551 | 'ldflags': [ |
| 552 | '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags', |
| 553 | ], |
| 554 | }, |
| 555 | ], |
| 556 | ], |
| 557 | }, |
| 558 | ], |
| 559 | }, |
| 560 | ], |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 561 | ['skia_win_debuggers_path and skia_os == "win"', |
edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 562 | { |
| 563 | 'targets': [ |
| 564 | { |
| 565 | 'target_name': 'win_dbghelp', |
| 566 | 'type': 'static_library', |
| 567 | 'defines': [ |
| 568 | 'SK_CDB_PATH="<(skia_win_debuggers_path)"', |
| 569 | ], |
| 570 | 'sources': [ |
| 571 | '../tools/win_dbghelp.h', |
| 572 | '../tools/win_dbghelp.cpp', |
| 573 | ], |
| 574 | }, |
| 575 | ], |
| 576 | }, |
| 577 | ], |
bungeman@google.com | 07a69f8 | 2013-04-02 14:12:38 +0000 | [diff] [blame] | 578 | ['skia_os == "win"', |
| 579 | { |
| 580 | 'targets': [ |
| 581 | { |
| 582 | 'target_name': 'win_lcid', |
| 583 | 'type': 'executable', |
| 584 | 'sources': [ |
| 585 | '../tools/win_lcid.cpp', |
| 586 | ], |
| 587 | }, |
| 588 | ], |
| 589 | }, |
| 590 | ], |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 591 | ['skia_os == "mac"', |
| 592 | { |
| 593 | 'targets': [ |
| 594 | { |
| 595 | 'target_name': 'create_test_font', |
| 596 | 'type': 'executable', |
| 597 | 'sources': [ |
| 598 | '../tools/create_test_font.cpp', |
| 599 | ], |
| 600 | 'include_dirs': [ |
mtklein | fd8ed69 | 2015-07-28 09:54:52 -0700 | [diff] [blame] | 601 | '../include/private', |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 602 | '../src/core', |
| 603 | ], |
| 604 | 'dependencies': [ |
| 605 | 'flags.gyp:flags', |
| 606 | 'skia_lib.gyp:skia_lib', |
| 607 | 'resources', |
| 608 | ], |
| 609 | }, |
| 610 | ], |
| 611 | }, |
| 612 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 613 | ], |
| 614 | } |