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