bsalomon | 3e79124 | 2014-12-17 13:43:13 -0800 | [diff] [blame] | 1 | # GYP file to build various tools. |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 2 | # |
| 3 | # To build on Linux: |
| 4 | # ./gyp_skia tools.gyp && make tools |
| 5 | # |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 6 | { |
| 7 | 'includes': [ |
| 8 | 'apptype_console.gypi', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 9 | ], |
| 10 | 'targets': [ |
| 11 | { |
| 12 | # Build all executable targets defined below. |
| 13 | 'target_name': 'tools', |
| 14 | 'type': 'none', |
| 15 | 'dependencies': [ |
edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 16 | 'bench_pictures', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 17 | 'dump_record', |
edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 18 | 'filter', |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 19 | 'gpuveto', |
commit-bot@chromium.org | 5ccdf01 | 2014-01-02 18:51:38 +0000 | [diff] [blame] | 20 | 'lua_app', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 21 | 'lua_pictures', |
reed | a816d95 | 2014-12-17 13:08:17 -0800 | [diff] [blame] | 22 | 'imgconv', |
edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 23 | 'pinspect', |
| 24 | 'render_pdfs', |
| 25 | 'render_pictures', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 26 | 'skdiff', |
commit-bot@chromium.org | 5ccdf01 | 2014-01-02 18:51:38 +0000 | [diff] [blame] | 27 | 'skhello', |
fmalita | 93957f4 | 2015-01-30 09:03:29 -0800 | [diff] [blame] | 28 | 'skp2svg', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 29 | 'skpdiff', |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 30 | 'skpinfo', |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 31 | 'skpmaker', |
halcanary@google.com | fed3037 | 2013-10-04 12:46:45 +0000 | [diff] [blame] | 32 | 'test_image_decoder', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 33 | 'test_public_includes', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 34 | ], |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 35 | 'conditions': [ |
| 36 | ['skia_shared_lib', |
| 37 | { |
| 38 | 'dependencies': [ |
| 39 | 'sklua', # This can only be built if skia is built as a shared library |
| 40 | ], |
| 41 | }, |
| 42 | ], |
| 43 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 44 | }, |
mtklein | 9a0d6d6 | 2014-12-15 12:47:51 -0800 | [diff] [blame] | 45 | { |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 46 | 'target_name': 'crash_handler', |
| 47 | 'type': 'static_library', |
| 48 | 'sources': [ '../tools/CrashHandler.cpp' ], |
| 49 | 'dependencies': [ 'skia_lib.gyp:skia_lib' ], |
| 50 | 'direct_dependent_settings': { |
| 51 | 'include_dirs': [ '../tools' ], |
| 52 | }, |
scroggo | ac928f2 | 2015-02-10 08:13:26 -0800 | [diff] [blame] | 53 | 'conditions': [ |
| 54 | [ 'skia_is_bot', { |
| 55 | 'defines': [ 'SK_CRASH_HANDLER' ], |
| 56 | }], |
| 57 | ], |
| 58 | |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 59 | 'all_dependent_settings': { |
| 60 | 'msvs_settings': { |
| 61 | 'VCLinkerTool': { |
| 62 | 'AdditionalDependencies': [ 'Dbghelp.lib' ], |
| 63 | } |
| 64 | }, |
| 65 | } |
| 66 | }, |
| 67 | { |
| 68 | 'target_name': 'resources', |
| 69 | 'type': 'static_library', |
| 70 | 'sources': [ '../tools/Resources.cpp' ], |
| 71 | 'dependencies': [ |
| 72 | 'flags.gyp:flags', |
| 73 | 'skia_lib.gyp:skia_lib', |
| 74 | ], |
| 75 | 'direct_dependent_settings': { |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 76 | 'include_dirs': [ '../tools', ], |
| 77 | }, |
| 78 | }, |
| 79 | { |
| 80 | 'target_name': 'sk_tool_utils', |
| 81 | 'type': 'static_library', |
caryclark | 5fb6bd4 | 2014-06-23 11:25:00 -0700 | [diff] [blame] | 82 | 'sources': [ |
| 83 | '../tools/sk_tool_utils.cpp', |
| 84 | '../tools/sk_tool_utils_font.cpp', |
| 85 | ], |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 86 | 'include_dirs': [ |
| 87 | '../src/fonts', |
| 88 | ], |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 89 | 'dependencies': [ |
mtklein | ada972d | 2014-07-31 08:31:56 -0700 | [diff] [blame] | 90 | 'resources', |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 91 | 'flags.gyp:flags', |
tfarina | 2010891 | 2014-06-21 10:54:17 -0700 | [diff] [blame] | 92 | 'skia_lib.gyp:skia_lib', |
| 93 | ], |
| 94 | 'direct_dependent_settings': { |
| 95 | 'include_dirs': [ '../tools', ], |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 96 | }, |
| 97 | }, |
| 98 | { |
| 99 | 'target_name' : 'timer', |
| 100 | 'type': 'static_library', |
| 101 | 'sources': [ |
| 102 | '../tools/timer/Timer.cpp', |
| 103 | '../tools/timer/TimerData.cpp', |
| 104 | ], |
| 105 | 'include_dirs': [ |
| 106 | '../src/core', |
| 107 | '../src/gpu', |
| 108 | ], |
| 109 | 'direct_dependent_settings': { |
| 110 | 'include_dirs': ['../tools/timer'], |
| 111 | }, |
| 112 | 'dependencies': [ |
| 113 | 'skia_lib.gyp:skia_lib', |
| 114 | 'jsoncpp.gyp:jsoncpp', |
| 115 | ], |
| 116 | 'conditions': [ |
| 117 | ['skia_gpu == 1', { |
| 118 | 'sources': [ '../tools/timer/GpuTimer.cpp' ], |
| 119 | }], |
| 120 | [ 'skia_os in ["mac", "ios"]', { |
| 121 | 'sources': [ '../tools/timer/SysTimer_mach.cpp' ], |
| 122 | }], |
| 123 | [ 'skia_os == "win"', { |
| 124 | 'sources': [ '../tools/timer/SysTimer_windows.cpp' ], |
| 125 | }], |
| 126 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', { |
| 127 | 'sources': [ '../tools/timer/SysTimer_posix.cpp' ], |
| 128 | }], |
| 129 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 130 | 'link_settings': { 'libraries': [ '-lrt' ] }, |
| 131 | }], |
| 132 | ], |
| 133 | }, |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 134 | { |
| 135 | 'target_name': 'skdiff', |
| 136 | 'type': 'executable', |
| 137 | 'sources': [ |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 138 | '../tools/skdiff.cpp', |
| 139 | '../tools/skdiff.h', |
| 140 | '../tools/skdiff_html.cpp', |
| 141 | '../tools/skdiff_html.h', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 142 | '../tools/skdiff_main.cpp', |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 143 | '../tools/skdiff_utils.cpp', |
| 144 | '../tools/skdiff_utils.h', |
| 145 | ], |
| 146 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 147 | 'skia_lib.gyp:skia_lib', |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 148 | ], |
| 149 | }, |
| 150 | { |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 151 | 'target_name': 'skpdiff', |
| 152 | 'type': 'executable', |
| 153 | 'sources': [ |
| 154 | '../tools/skpdiff/skpdiff_main.cpp', |
| 155 | '../tools/skpdiff/SkDiffContext.cpp', |
| 156 | '../tools/skpdiff/SkImageDiffer.cpp', |
| 157 | '../tools/skpdiff/SkPMetric.cpp', |
| 158 | '../tools/skpdiff/skpdiff_util.cpp', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 159 | ], |
| 160 | 'include_dirs': [ |
djsollen@google.com | efc51b7 | 2013-11-12 18:29:17 +0000 | [diff] [blame] | 161 | '../src/core/', # needed for SkTLList.h |
stephana | 21b342d | 2014-08-13 10:36:06 -0700 | [diff] [blame] | 162 | '../tools/', # needed for picture_utils::replace_char |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 163 | ], |
| 164 | 'dependencies': [ |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 165 | 'flags.gyp:flags', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 166 | 'skia_lib.gyp:skia_lib', |
stephana | 21b342d | 2014-08-13 10:36:06 -0700 | [diff] [blame] | 167 | 'tools.gyp:picture_utils', |
zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 168 | ], |
| 169 | 'cflags': [ |
| 170 | '-O3', |
| 171 | ], |
| 172 | 'conditions': [ |
| 173 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 174 | 'link_settings': { |
| 175 | 'libraries': [ |
| 176 | '-lrt', |
| 177 | ], |
| 178 | }, |
| 179 | }], |
| 180 | ['skia_opencl', { |
| 181 | 'sources': [ |
| 182 | '../tools/skpdiff/SkCLImageDiffer.cpp', |
| 183 | '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp', |
| 184 | ], |
| 185 | 'conditions': [ |
| 186 | [ 'skia_os == "mac"', { |
| 187 | 'link_settings': { |
| 188 | 'libraries': [ |
| 189 | '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', |
| 190 | ] |
| 191 | } |
| 192 | }, { |
| 193 | 'link_settings': { |
| 194 | 'libraries': [ |
| 195 | '-lOpenCL', |
| 196 | ], |
| 197 | }, |
| 198 | }], |
| 199 | ], |
| 200 | }, { # !skia_opencl |
| 201 | 'sources': [ |
| 202 | '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp', |
| 203 | ], |
| 204 | }], |
| 205 | ], |
| 206 | }, |
| 207 | { |
commit-bot@chromium.org | c735598 | 2014-01-02 19:42:15 +0000 | [diff] [blame] | 208 | 'target_name': 'skpmaker', |
| 209 | 'type': 'executable', |
| 210 | 'sources': [ |
| 211 | '../tools/skpmaker.cpp', |
| 212 | ], |
| 213 | 'include_dirs': [ |
| 214 | '../src/core', |
| 215 | ], |
| 216 | 'dependencies': [ |
| 217 | 'flags.gyp:flags', |
| 218 | 'skia_lib.gyp:skia_lib', |
| 219 | ], |
| 220 | }, |
| 221 | { |
bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 222 | 'target_name': 'skimagediff', |
| 223 | 'type': 'executable', |
| 224 | 'sources': [ |
| 225 | '../tools/skdiff.cpp', |
| 226 | '../tools/skdiff.h', |
| 227 | '../tools/skdiff_html.cpp', |
| 228 | '../tools/skdiff_html.h', |
| 229 | '../tools/skdiff_image.cpp', |
| 230 | '../tools/skdiff_utils.cpp', |
| 231 | '../tools/skdiff_utils.h', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 232 | ], |
| 233 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 234 | 'skia_lib.gyp:skia_lib', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 235 | ], |
| 236 | }, |
| 237 | { |
| 238 | 'target_name': 'skhello', |
| 239 | 'type': 'executable', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 240 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 241 | 'skia_lib.gyp:skia_lib', |
borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 242 | ], |
| 243 | 'conditions': [ |
| 244 | [ 'skia_os == "nacl"', { |
| 245 | 'sources': [ |
| 246 | '../platform_tools/nacl/src/nacl_hello.cpp', |
| 247 | ], |
| 248 | }, { |
| 249 | 'sources': [ |
| 250 | '../tools/skhello.cpp', |
| 251 | ], |
| 252 | 'dependencies': [ |
borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 253 | 'flags.gyp:flags', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 254 | 'pdf.gyp:pdf', |
borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 255 | ], |
| 256 | }], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 257 | ], |
| 258 | }, |
| 259 | { |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 260 | 'target_name': 'skpinfo', |
| 261 | 'type': 'executable', |
| 262 | 'sources': [ |
| 263 | '../tools/skpinfo.cpp', |
| 264 | ], |
| 265 | 'include_dirs': [ |
commit-bot@chromium.org | 6f4fb0f | 2014-03-03 19:18:39 +0000 | [diff] [blame] | 266 | '../src/core/', |
| 267 | ], |
| 268 | 'dependencies': [ |
| 269 | 'flags.gyp:flags', |
| 270 | 'skia_lib.gyp:skia_lib', |
| 271 | ], |
| 272 | }, |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 273 | { |
fmalita | 2aafe6f | 2015-02-06 12:51:10 -0800 | [diff] [blame] | 274 | # Superseded by dm, should be removed. |
fmalita | 93957f4 | 2015-01-30 09:03:29 -0800 | [diff] [blame] | 275 | 'target_name': 'skp2svg', |
| 276 | 'type': 'executable', |
| 277 | 'sources': [ |
fmalita | 2aafe6f | 2015-02-06 12:51:10 -0800 | [diff] [blame] | 278 | '../src/svg/skp2svg.cpp', |
fmalita | 93957f4 | 2015-01-30 09:03:29 -0800 | [diff] [blame] | 279 | '../tools/LazyDecodeBitmap.cpp', |
| 280 | ], |
| 281 | 'include_dirs': [ |
| 282 | '../src/core/', |
| 283 | '../src/lazy/', |
| 284 | '../tools/', |
| 285 | ], |
| 286 | 'dependencies': [ |
| 287 | 'flags.gyp:flags', |
| 288 | 'skia_lib.gyp:skia_lib', |
fmalita | 2aafe6f | 2015-02-06 12:51:10 -0800 | [diff] [blame] | 289 | 'svg.gyp:svg', |
fmalita | 93957f4 | 2015-01-30 09:03:29 -0800 | [diff] [blame] | 290 | 'xml.gyp:xml', |
| 291 | ], |
| 292 | }, |
| 293 | { |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 294 | 'target_name': 'gpuveto', |
| 295 | 'type': 'executable', |
| 296 | 'sources': [ |
| 297 | '../tools/gpuveto.cpp', |
| 298 | '../tools/LazyDecodeBitmap.cpp', |
| 299 | ], |
| 300 | 'include_dirs': [ |
| 301 | '../src/core/', |
| 302 | '../src/images', |
| 303 | '../src/lazy', |
commit-bot@chromium.org | fe78847 | 2014-04-28 13:19:34 +0000 | [diff] [blame] | 304 | ], |
| 305 | 'dependencies': [ |
| 306 | 'flags.gyp:flags', |
| 307 | 'skia_lib.gyp:skia_lib', |
| 308 | ], |
| 309 | }, |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 310 | { |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 311 | 'target_name': 'lua_app', |
| 312 | 'type': 'executable', |
| 313 | 'sources': [ |
| 314 | '../tools/lua/lua_app.cpp', |
| 315 | '../src/utils/SkLua.cpp', |
| 316 | ], |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 317 | 'include_dirs': [ |
| 318 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 319 | '../src/gpu/', |
| 320 | '../src/core/', |
| 321 | ], |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 322 | 'dependencies': [ |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 323 | 'effects.gyp:effects', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 324 | 'images.gyp:images', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 325 | 'lua.gyp:lua', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 326 | 'pdf.gyp:pdf', |
| 327 | 'ports.gyp:ports', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 328 | 'skia_lib.gyp:skia_lib', |
mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 329 | ], |
| 330 | }, |
| 331 | { |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 332 | 'target_name': 'lua_pictures', |
| 333 | 'type': 'executable', |
| 334 | 'sources': [ |
| 335 | '../tools/lua/lua_pictures.cpp', |
| 336 | '../src/utils/SkLuaCanvas.cpp', |
reed@google.com | 74ce6f0 | 2013-05-22 15:13:18 +0000 | [diff] [blame] | 337 | '../src/utils/SkLua.cpp', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 338 | ], |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 339 | 'include_dirs': [ |
| 340 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 341 | '../src/gpu/', |
| 342 | '../src/core/', |
| 343 | ], |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 344 | 'dependencies': [ |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 345 | 'effects.gyp:effects', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 346 | 'flags.gyp:flags', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 347 | 'images.gyp:images', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 348 | 'lua.gyp:lua', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 349 | 'tools.gyp:picture_renderer', |
| 350 | 'tools.gyp:picture_utils', |
mike@reedtribe.org | fb85824 | 2013-06-08 16:39:44 +0000 | [diff] [blame] | 351 | 'pdf.gyp:pdf', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 352 | 'ports.gyp:ports', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 353 | 'skia_lib.gyp:skia_lib', |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 354 | ], |
| 355 | }, |
| 356 | { |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 357 | 'target_name': 'render_pictures', |
| 358 | 'type': 'executable', |
| 359 | 'sources': [ |
| 360 | '../tools/render_pictures_main.cpp', |
keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 361 | ], |
| 362 | 'include_dirs': [ |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 363 | '../src/core', |
| 364 | '../src/images', |
| 365 | '../src/lazy', |
keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 366 | '../src/pipe/utils/', |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 367 | ], |
| 368 | 'dependencies': [ |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 369 | 'flags.gyp:flags', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 370 | 'skia_lib.gyp:skia_lib', |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 371 | 'tools.gyp:picture_renderer', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 372 | 'tools.gyp:picture_utils', |
| 373 | ], |
| 374 | }, |
| 375 | { |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 376 | 'target_name': 'bench_pictures', |
| 377 | 'type': 'executable', |
| 378 | 'sources': [ |
tfarina | f168b86 | 2014-06-19 12:32:29 -0700 | [diff] [blame] | 379 | '../bench/BenchLogger.cpp', |
| 380 | '../bench/BenchLogger.h', |
commit-bot@chromium.org | 37c772a | 2014-05-29 17:10:24 +0000 | [diff] [blame] | 381 | '../tools/PictureBenchmark.cpp', |
| 382 | '../tools/PictureResultsWriter.h', |
keyar@chromium.org | cf6c44c | 2012-07-09 19:37:40 +0000 | [diff] [blame] | 383 | '../tools/bench_pictures_main.cpp', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 384 | ], |
| 385 | 'include_dirs': [ |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 386 | '../src/core/', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 387 | '../bench', |
scroggo@google.com | cc69020 | 2013-03-04 19:56:21 +0000 | [diff] [blame] | 388 | '../src/lazy/', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 389 | ], |
| 390 | 'dependencies': [ |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 391 | 'timer', |
| 392 | 'crash_handler', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 393 | 'flags.gyp:flags', |
commit-bot@chromium.org | 37c772a | 2014-05-29 17:10:24 +0000 | [diff] [blame] | 394 | 'jsoncpp.gyp:jsoncpp', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 395 | 'skia_lib.gyp:skia_lib', |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 396 | 'tools.gyp:picture_renderer', |
mtklein | 30e6e2a | 2014-06-18 11:44:15 -0700 | [diff] [blame] | 397 | 'tools.gyp:picture_utils', |
scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 398 | ], |
scroggo | 3eb258d | 2014-07-17 06:58:28 -0700 | [diff] [blame] | 399 | 'conditions': [ |
| 400 | ['skia_android_framework == 1', { |
| 401 | 'libraries': [ '-lskia' ], |
| 402 | }], |
| 403 | ], |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 404 | }, |
| 405 | { |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 406 | 'target_name': 'dump_record', |
| 407 | 'type': 'executable', |
| 408 | 'sources': [ |
| 409 | '../tools/dump_record.cpp', |
commit-bot@chromium.org | 85fd193 | 2014-05-15 16:10:37 +0000 | [diff] [blame] | 410 | '../tools/DumpRecord.cpp', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 411 | '../tools/LazyDecodeBitmap.cpp', |
| 412 | ], |
| 413 | 'include_dirs': [ |
| 414 | '../src/core/', |
| 415 | '../src/images', |
| 416 | '../src/lazy', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 417 | ], |
| 418 | 'dependencies': [ |
mtklein | 9ac68ee | 2014-06-20 11:29:20 -0700 | [diff] [blame] | 419 | 'timer', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 420 | 'flags.gyp:flags', |
commit-bot@chromium.org | 545a21a | 2014-05-06 19:45:18 +0000 | [diff] [blame] | 421 | 'skia_lib.gyp:skia_lib', |
| 422 | ], |
| 423 | }, |
| 424 | { |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 425 | 'target_name': 'picture_renderer', |
| 426 | 'type': 'static_library', |
| 427 | 'sources': [ |
commit-bot@chromium.org | 90c0fbd | 2014-05-09 03:18:41 +0000 | [diff] [blame] | 428 | '../tools/image_expectations.h', |
| 429 | '../tools/image_expectations.cpp', |
commit-bot@chromium.org | 56799e2 | 2013-07-16 18:21:46 +0000 | [diff] [blame] | 430 | '../tools/LazyDecodeBitmap.cpp', |
scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 431 | '../tools/PictureRenderer.h', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 432 | '../tools/PictureRenderer.cpp', |
scroggo@google.com | 161e1ba | 2013-03-04 16:41:06 +0000 | [diff] [blame] | 433 | '../tools/PictureRenderingFlags.h', |
| 434 | '../tools/PictureRenderingFlags.cpp', |
scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 435 | '../tools/CopyTilesRenderer.h', |
| 436 | '../tools/CopyTilesRenderer.cpp', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 437 | '../src/pipe/utils/SamplePipeControllers.h', |
| 438 | '../src/pipe/utils/SamplePipeControllers.cpp', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 439 | ], |
| 440 | 'include_dirs': [ |
halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 441 | '../src/core', |
| 442 | '../src/images', |
| 443 | '../src/lazy', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 444 | '../src/pipe/utils/', |
| 445 | '../src/utils/', |
| 446 | ], |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 447 | 'direct_dependent_settings': { |
| 448 | 'include_dirs': [ |
commit-bot@chromium.org | 90c0fbd | 2014-05-09 03:18:41 +0000 | [diff] [blame] | 449 | # needed for JSON headers used within image_expectations.h |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 450 | '../third_party/externals/jsoncpp-chromium/overrides/include/', |
| 451 | '../third_party/externals/jsoncpp/include/', |
| 452 | ], |
| 453 | }, |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 454 | 'dependencies': [ |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 455 | 'flags.gyp:flags', |
| 456 | 'jsoncpp.gyp:jsoncpp', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 457 | 'skia_lib.gyp:skia_lib', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 458 | 'tools.gyp:picture_utils', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 459 | ], |
robertphillips@google.com | fe1b536 | 2013-02-07 19:45:46 +0000 | [diff] [blame] | 460 | 'conditions': [ |
| 461 | ['skia_gpu == 1', |
| 462 | { |
| 463 | 'include_dirs' : [ |
| 464 | '../src/gpu', |
| 465 | ], |
robertphillips@google.com | 94d8f1e | 2013-12-18 17:25:33 +0000 | [diff] [blame] | 466 | 'dependencies': [ |
| 467 | 'gputest.gyp:skgputest', |
| 468 | ], |
djsollen | e454521 | 2014-11-13 11:12:41 -0800 | [diff] [blame] | 469 | 'export_dependent_settings': [ |
| 470 | 'gputest.gyp:skgputest', |
| 471 | ], |
robertphillips@google.com | fe1b536 | 2013-02-07 19:45:46 +0000 | [diff] [blame] | 472 | }, |
| 473 | ], |
| 474 | ], |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 475 | }, |
| 476 | { |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 477 | 'target_name': 'render_pdfs', |
| 478 | 'type': 'executable', |
| 479 | 'sources': [ |
| 480 | '../tools/render_pdfs_main.cpp', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 481 | ], |
| 482 | 'include_dirs': [ |
halcanary | 0bef17a | 2014-08-07 07:24:47 -0700 | [diff] [blame] | 483 | '../src/core', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 484 | '../src/pipe/utils/', |
| 485 | '../src/utils/', |
| 486 | ], |
| 487 | 'dependencies': [ |
halcanary | 0bef17a | 2014-08-07 07:24:47 -0700 | [diff] [blame] | 488 | 'flags.gyp:flags', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 489 | 'pdf.gyp:pdf', |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 490 | 'skia_lib.gyp:skia_lib', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 491 | 'tools.gyp:picture_utils', |
mtklein | afb4379 | 2014-08-19 15:55:55 -0700 | [diff] [blame] | 492 | 'tools.gyp:proc_stats', |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 493 | ], |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 494 | 'conditions': [ |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 495 | ['skia_win_debuggers_path and skia_os == "win"', |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 496 | { |
| 497 | 'dependencies': [ |
| 498 | 'tools.gyp:win_dbghelp', |
| 499 | ], |
| 500 | }, |
| 501 | ], |
| 502 | # VS static libraries don't have a linker option. We must set a global |
| 503 | # project linker option, or add it to each executable. |
| 504 | ['skia_win_debuggers_path and skia_os == "win" and ' |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 505 | 'skia_arch_width == 64', |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 506 | { |
| 507 | 'msvs_settings': { |
| 508 | 'VCLinkerTool': { |
| 509 | 'AdditionalDependencies': [ |
| 510 | '<(skia_win_debuggers_path)/x64/DbgHelp.lib', |
| 511 | ], |
| 512 | }, |
| 513 | }, |
| 514 | }, |
| 515 | ], |
| 516 | ['skia_win_debuggers_path and skia_os == "win" and ' |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 517 | 'skia_arch_width == 32', |
edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 518 | { |
| 519 | 'msvs_settings': { |
| 520 | 'VCLinkerTool': { |
| 521 | 'AdditionalDependencies': [ |
| 522 | '<(skia_win_debuggers_path)/DbgHelp.lib', |
| 523 | ], |
| 524 | }, |
| 525 | }, |
| 526 | }, |
| 527 | ], |
| 528 | ], |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 529 | }, |
| 530 | { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 531 | 'target_name': 'picture_utils', |
| 532 | 'type': 'static_library', |
| 533 | 'sources': [ |
| 534 | '../tools/picture_utils.cpp', |
borenet@google.com | e21795e | 2012-09-14 14:34:28 +0000 | [diff] [blame] | 535 | '../tools/picture_utils.h', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 536 | ], |
| 537 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 538 | 'skia_lib.gyp:skia_lib', |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 539 | ], |
reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 540 | 'direct_dependent_settings': { |
| 541 | 'include_dirs': [ |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 542 | '../tools/', |
reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 543 | ], |
| 544 | }, |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 545 | }, |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 546 | { |
| 547 | 'target_name': 'pinspect', |
| 548 | 'type': 'executable', |
| 549 | 'sources': [ |
| 550 | '../tools/pinspect.cpp', |
| 551 | ], |
| 552 | 'dependencies': [ |
commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 553 | 'flags.gyp:flags', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 554 | 'skia_lib.gyp:skia_lib', |
commit-bot@chromium.org | 826ec81 | 2013-06-12 18:28:36 +0000 | [diff] [blame] | 555 | 'tools.gyp:picture_renderer', |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 556 | ], |
| 557 | }, |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 558 | { |
reed | a816d95 | 2014-12-17 13:08:17 -0800 | [diff] [blame] | 559 | 'target_name': 'imgconv', |
| 560 | 'type': 'executable', |
| 561 | 'sources': [ |
| 562 | '../tools/imgconv.cpp', |
| 563 | ], |
| 564 | 'dependencies': [ |
| 565 | 'flags.gyp:flags', |
| 566 | 'skia_lib.gyp:skia_lib', |
| 567 | ], |
| 568 | }, |
| 569 | { |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 570 | 'target_name': 'filter', |
| 571 | 'type': 'executable', |
| 572 | 'include_dirs' : [ |
| 573 | '../src/core', |
fmalita@google.com | 4df1673 | 2013-06-13 21:25:45 +0000 | [diff] [blame] | 574 | '../src/utils/debugger', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 575 | ], |
| 576 | 'sources': [ |
| 577 | '../tools/filtermain.cpp', |
fmalita@google.com | 86681b3 | 2013-06-13 20:59:14 +0000 | [diff] [blame] | 578 | '../src/utils/debugger/SkDrawCommand.h', |
| 579 | '../src/utils/debugger/SkDrawCommand.cpp', |
| 580 | '../src/utils/debugger/SkDebugCanvas.h', |
| 581 | '../src/utils/debugger/SkDebugCanvas.cpp', |
| 582 | '../src/utils/debugger/SkObjectParser.h', |
| 583 | '../src/utils/debugger/SkObjectParser.cpp', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 584 | ], |
| 585 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 586 | 'skia_lib.gyp:skia_lib', |
djsollen@google.com | a09e883 | 2012-11-13 18:50:33 +0000 | [diff] [blame] | 587 | 'tools.gyp:picture_utils', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 588 | ], |
| 589 | }, |
halcanary@google.com | fed3037 | 2013-10-04 12:46:45 +0000 | [diff] [blame] | 590 | { |
| 591 | 'target_name': 'test_image_decoder', |
| 592 | 'type': 'executable', |
| 593 | 'sources': [ |
| 594 | '../tools/test_image_decoder.cpp', |
| 595 | ], |
| 596 | 'dependencies': [ |
| 597 | 'skia_lib.gyp:skia_lib', |
| 598 | ], |
| 599 | }, |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 600 | { |
mtklein | afb4379 | 2014-08-19 15:55:55 -0700 | [diff] [blame] | 601 | 'target_name': 'proc_stats', |
halcanary | 0d154ee | 2014-08-11 11:33:51 -0700 | [diff] [blame] | 602 | 'type': 'static_library', |
| 603 | 'sources': [ |
| 604 | '../tools/ProcStats.h', |
| 605 | '../tools/ProcStats.cpp', |
| 606 | ], |
| 607 | 'direct_dependent_settings': { |
| 608 | 'include_dirs': [ '../tools', ], |
| 609 | }, |
| 610 | }, |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 611 | { |
| 612 | 'target_name': 'test_public_includes', |
| 613 | 'type': 'static_library', |
djsollen | c87dd2c | 2014-11-14 11:11:46 -0800 | [diff] [blame] | 614 | # Ensure that our public headers don't have unused params so that clients |
| 615 | # (e.g. Android) that include us can build with these warnings enabled |
| 616 | 'cflags!': [ '-Wno-unused-parameter' ], |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 617 | 'variables': { |
| 618 | 'includes_to_test': [ |
| 619 | '<(skia_include_path)/animator', |
| 620 | '<(skia_include_path)/c', |
| 621 | '<(skia_include_path)/config', |
| 622 | '<(skia_include_path)/core', |
| 623 | '<(skia_include_path)/effects', |
| 624 | '<(skia_include_path)/gpu', |
| 625 | '<(skia_include_path)/images', |
| 626 | '<(skia_include_path)/pathops', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 627 | '<(skia_include_path)/pipe', |
| 628 | '<(skia_include_path)/ports', |
fmalita | 02c8fd0 | 2015-02-06 08:43:51 -0800 | [diff] [blame] | 629 | '<(skia_include_path)/svg/parser', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 630 | '<(skia_include_path)/utils', |
| 631 | '<(skia_include_path)/views', |
| 632 | '<(skia_include_path)/xml', |
| 633 | ], |
| 634 | 'paths_to_ignore': [ |
| 635 | '<(skia_include_path)/gpu/gl/GrGLConfig_chrome.h', |
mtklein | a669bc7 | 2015-02-02 12:22:07 -0800 | [diff] [blame] | 636 | '<(skia_include_path)/ports/SkAtomics_std.h', |
| 637 | '<(skia_include_path)/ports/SkAtomics_atomic.h', |
mtklein | a64c48f | 2015-01-21 13:13:31 -0800 | [diff] [blame] | 638 | '<(skia_include_path)/ports/SkAtomics_sync.h', |
mtklein | a64c48f | 2015-01-21 13:13:31 -0800 | [diff] [blame] | 639 | '<(skia_include_path)/ports/SkMutex_pthread.h', |
| 640 | '<(skia_include_path)/ports/SkMutex_win.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 641 | '<(skia_include_path)/ports/SkTypeface_mac.h', |
| 642 | '<(skia_include_path)/ports/SkTypeface_win.h', |
| 643 | '<(skia_include_path)/utils/ios', |
| 644 | '<(skia_include_path)/utils/mac', |
| 645 | '<(skia_include_path)/utils/win', |
| 646 | '<(skia_include_path)/utils/SkDebugUtils.h', |
| 647 | '<(skia_include_path)/utils/SkJSONCPP.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 648 | '<(skia_include_path)/views/animated', |
| 649 | '<(skia_include_path)/views/SkOSWindow_Android.h', |
| 650 | '<(skia_include_path)/views/SkOSWindow_iOS.h', |
| 651 | '<(skia_include_path)/views/SkOSWindow_Mac.h', |
| 652 | '<(skia_include_path)/views/SkOSWindow_NaCl.h', |
| 653 | '<(skia_include_path)/views/SkOSWindow_SDL.h', |
| 654 | '<(skia_include_path)/views/SkOSWindow_Unix.h', |
| 655 | '<(skia_include_path)/views/SkOSWindow_Win.h', |
| 656 | '<(skia_include_path)/views/SkWindow.h', |
djsollen | 0b17d6c | 2014-11-13 12:52:35 -0800 | [diff] [blame] | 657 | ], |
| 658 | }, |
| 659 | 'include_dirs': [ |
| 660 | '<@(includes_to_test)', |
| 661 | ], |
| 662 | 'sources': [ |
| 663 | # unused_param_test.cpp is generated by the action below. |
| 664 | '<(INTERMEDIATE_DIR)/test_public_includes.cpp', |
| 665 | ], |
| 666 | 'actions': [ |
| 667 | { |
| 668 | 'action_name': 'generate_includes_cpp', |
| 669 | 'inputs': [ |
| 670 | '../tools/generate_includes_cpp.py', |
| 671 | '<@(includes_to_test)', |
| 672 | # This causes the gyp generator on mac to fail |
| 673 | #'<@(paths_to_ignore)', |
| 674 | ], |
| 675 | 'outputs': [ |
| 676 | '<(INTERMEDIATE_DIR)/test_public_includes.cpp', |
| 677 | ], |
| 678 | 'action': ['python', '../tools/generate_includes_cpp.py', |
| 679 | '--ignore', '<(paths_to_ignore)', |
| 680 | '<@(_outputs)', '<@(includes_to_test)'], |
| 681 | }, |
| 682 | ], |
| 683 | }, |
edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 684 | ], |
| 685 | 'conditions': [ |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 686 | ['skia_shared_lib', |
| 687 | { |
| 688 | 'targets': [ |
| 689 | { |
| 690 | 'target_name': 'sklua', |
| 691 | 'product_name': 'skia', |
| 692 | 'product_prefix': '', |
| 693 | 'product_dir': '<(PRODUCT_DIR)/', |
| 694 | 'type': 'shared_library', |
| 695 | 'sources': [ |
| 696 | '../src/utils/SkLuaCanvas.cpp', |
| 697 | '../src/utils/SkLua.cpp', |
| 698 | ], |
| 699 | 'include_dirs': [ |
bsalomon@google.com | 4ebe382 | 2014-02-26 20:22:32 +0000 | [diff] [blame] | 700 | # Lua exposes GrReduceClip which in turn requires src/core for SkTLList |
| 701 | '../src/gpu/', |
| 702 | '../src/core/', |
zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 703 | '../third_party/lua/src/', |
| 704 | ], |
| 705 | 'dependencies': [ |
| 706 | 'lua.gyp:lua', |
| 707 | 'pdf.gyp:pdf', |
| 708 | 'skia_lib.gyp:skia_lib', |
| 709 | ], |
| 710 | 'conditions': [ |
| 711 | ['skia_os != "win"', |
| 712 | { |
| 713 | 'ldflags': [ |
| 714 | '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags', |
| 715 | ], |
| 716 | }, |
| 717 | ], |
| 718 | ], |
| 719 | }, |
| 720 | ], |
| 721 | }, |
| 722 | ], |
borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 723 | ['skia_win_debuggers_path and skia_os == "win"', |
edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 724 | { |
| 725 | 'targets': [ |
| 726 | { |
| 727 | 'target_name': 'win_dbghelp', |
| 728 | 'type': 'static_library', |
| 729 | 'defines': [ |
| 730 | 'SK_CDB_PATH="<(skia_win_debuggers_path)"', |
| 731 | ], |
| 732 | 'sources': [ |
| 733 | '../tools/win_dbghelp.h', |
| 734 | '../tools/win_dbghelp.cpp', |
| 735 | ], |
| 736 | }, |
| 737 | ], |
| 738 | }, |
| 739 | ], |
bungeman@google.com | 07a69f8 | 2013-04-02 14:12:38 +0000 | [diff] [blame] | 740 | ['skia_os == "win"', |
| 741 | { |
| 742 | 'targets': [ |
| 743 | { |
| 744 | 'target_name': 'win_lcid', |
| 745 | 'type': 'executable', |
| 746 | 'sources': [ |
| 747 | '../tools/win_lcid.cpp', |
| 748 | ], |
| 749 | }, |
| 750 | ], |
| 751 | }, |
| 752 | ], |
Cary Clark | 992c7b0 | 2014-07-31 08:58:44 -0400 | [diff] [blame] | 753 | ['skia_os == "mac"', |
| 754 | { |
| 755 | 'targets': [ |
| 756 | { |
| 757 | 'target_name': 'create_test_font', |
| 758 | 'type': 'executable', |
| 759 | 'sources': [ |
| 760 | '../tools/create_test_font.cpp', |
| 761 | ], |
| 762 | 'include_dirs': [ |
| 763 | '../src/core', |
| 764 | ], |
| 765 | 'dependencies': [ |
| 766 | 'flags.gyp:flags', |
| 767 | 'skia_lib.gyp:skia_lib', |
| 768 | 'resources', |
| 769 | ], |
| 770 | }, |
| 771 | ], |
| 772 | }, |
| 773 | ], |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 774 | ], |
| 775 | } |