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