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