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