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