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