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