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