| 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': [ |
| edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 16 | 'bench_pictures', |
| 17 | 'filter', |
| sglez@google.com | a9b7936 | 2013-07-25 14:55:18 +0000 | [diff] [blame] | 18 | 'lua_pictures', |
| commit-bot@chromium.org | 6645cde | 2013-07-19 18:54:04 +0000 | [diff] [blame] | 19 | 'bbh_shootout', |
| mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 20 | 'lua_app', |
| edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 21 | 'pinspect', |
| 22 | 'render_pdfs', |
| 23 | 'render_pictures', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 24 | 'skdiff', |
| zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 25 | 'skpdiff', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 26 | 'skhello', |
| 27 | 'skimage', |
| halcanary@google.com | fed3037 | 2013-10-04 12:46:45 +0000 | [diff] [blame] | 28 | 'test_image_decoder', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 29 | ], |
| zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 30 | 'conditions': [ |
| 31 | ['skia_shared_lib', |
| 32 | { |
| 33 | 'dependencies': [ |
| 34 | 'sklua', # This can only be built if skia is built as a shared library |
| 35 | ], |
| 36 | }, |
| 37 | ], |
| 38 | ], |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 39 | }, |
| 40 | { |
| 41 | 'target_name': 'skdiff', |
| 42 | 'type': 'executable', |
| 43 | 'sources': [ |
| bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 44 | '../tools/skdiff.cpp', |
| 45 | '../tools/skdiff.h', |
| 46 | '../tools/skdiff_html.cpp', |
| 47 | '../tools/skdiff_html.h', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 48 | '../tools/skdiff_main.cpp', |
| bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 49 | '../tools/skdiff_utils.cpp', |
| 50 | '../tools/skdiff_utils.h', |
| 51 | ], |
| 52 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 53 | 'skia_lib.gyp:skia_lib', |
| bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 54 | ], |
| 55 | }, |
| 56 | { |
| zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 57 | 'target_name': 'skpdiff', |
| 58 | 'type': 'executable', |
| 59 | 'sources': [ |
| 60 | '../tools/skpdiff/skpdiff_main.cpp', |
| 61 | '../tools/skpdiff/SkDiffContext.cpp', |
| 62 | '../tools/skpdiff/SkImageDiffer.cpp', |
| 63 | '../tools/skpdiff/SkPMetric.cpp', |
| 64 | '../tools/skpdiff/skpdiff_util.cpp', |
| 65 | '../tools/flags/SkCommandLineFlags.cpp', |
| 66 | ], |
| 67 | 'include_dirs': [ |
| djsollen@google.com | efc51b7 | 2013-11-12 18:29:17 +0000 | [diff] [blame] | 68 | '../tools/flags', |
| 69 | '../src/core/', # needed for SkTLList.h |
| zachr@google.com | 5b3e2b9 | 2013-07-22 18:46:45 +0000 | [diff] [blame] | 70 | ], |
| 71 | 'dependencies': [ |
| 72 | 'skia_lib.gyp:skia_lib', |
| 73 | ], |
| 74 | 'cflags': [ |
| 75 | '-O3', |
| 76 | ], |
| 77 | 'conditions': [ |
| 78 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 79 | 'link_settings': { |
| 80 | 'libraries': [ |
| 81 | '-lrt', |
| 82 | ], |
| 83 | }, |
| 84 | }], |
| 85 | ['skia_opencl', { |
| 86 | 'sources': [ |
| 87 | '../tools/skpdiff/SkCLImageDiffer.cpp', |
| 88 | '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp', |
| 89 | ], |
| 90 | 'conditions': [ |
| 91 | [ 'skia_os == "mac"', { |
| 92 | 'link_settings': { |
| 93 | 'libraries': [ |
| 94 | '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', |
| 95 | ] |
| 96 | } |
| 97 | }, { |
| 98 | 'link_settings': { |
| 99 | 'libraries': [ |
| 100 | '-lOpenCL', |
| 101 | ], |
| 102 | }, |
| 103 | }], |
| 104 | ], |
| 105 | }, { # !skia_opencl |
| 106 | 'sources': [ |
| 107 | '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp', |
| 108 | ], |
| 109 | }], |
| 110 | ], |
| 111 | }, |
| 112 | { |
| bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 113 | 'target_name': 'skimagediff', |
| 114 | 'type': 'executable', |
| 115 | 'sources': [ |
| 116 | '../tools/skdiff.cpp', |
| 117 | '../tools/skdiff.h', |
| 118 | '../tools/skdiff_html.cpp', |
| 119 | '../tools/skdiff_html.h', |
| 120 | '../tools/skdiff_image.cpp', |
| 121 | '../tools/skdiff_utils.cpp', |
| 122 | '../tools/skdiff_utils.h', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 123 | ], |
| 124 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 125 | 'skia_lib.gyp:skia_lib', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 126 | ], |
| 127 | }, |
| 128 | { |
| 129 | 'target_name': 'skhello', |
| 130 | 'type': 'executable', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 131 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 132 | 'skia_lib.gyp:skia_lib', |
| borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 133 | ], |
| 134 | 'conditions': [ |
| 135 | [ 'skia_os == "nacl"', { |
| 136 | 'sources': [ |
| 137 | '../platform_tools/nacl/src/nacl_hello.cpp', |
| 138 | ], |
| 139 | }, { |
| 140 | 'sources': [ |
| 141 | '../tools/skhello.cpp', |
| 142 | ], |
| 143 | 'dependencies': [ |
| borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 144 | 'flags.gyp:flags', |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 145 | 'pdf.gyp:pdf', |
| borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 146 | ], |
| 147 | }], |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 148 | ], |
| 149 | }, |
| 150 | { |
| 151 | 'target_name': 'skimage', |
| 152 | 'type': 'executable', |
| 153 | 'sources': [ |
| 154 | '../tools/skimage_main.cpp', |
| 155 | ], |
| scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 156 | 'include_dirs': [ |
| 157 | # For SkBitmapHasher.h |
| 158 | '../src/utils/', |
| 159 | ], |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 160 | 'dependencies': [ |
| scroggo@google.com | b41ff95 | 2013-04-11 15:53:35 +0000 | [diff] [blame] | 161 | 'flags.gyp:flags', |
| scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 162 | 'gm.gyp:gm_expectations', |
| scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 163 | 'jsoncpp.gyp:jsoncpp', |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 164 | 'skia_lib.gyp:skia_lib', |
| scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 165 | 'utils.gyp:utils', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 166 | ], |
| 167 | }, |
| zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 168 | |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 169 | { |
| mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 170 | 'target_name': 'lua_app', |
| 171 | 'type': 'executable', |
| 172 | 'sources': [ |
| 173 | '../tools/lua/lua_app.cpp', |
| 174 | '../src/utils/SkLua.cpp', |
| 175 | ], |
| 176 | 'dependencies': [ |
| mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 177 | 'effects.gyp:effects', |
| mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 178 | 'images.gyp:images', |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 179 | 'lua.gyp:lua', |
| mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 180 | 'pdf.gyp:pdf', |
| 181 | 'ports.gyp:ports', |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 182 | 'skia_lib.gyp:skia_lib', |
| 183 | 'utils.gyp:utils', |
| mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 184 | ], |
| 185 | }, |
| 186 | { |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 187 | 'target_name': 'lua_pictures', |
| 188 | 'type': 'executable', |
| 189 | 'sources': [ |
| 190 | '../tools/lua/lua_pictures.cpp', |
| 191 | '../src/utils/SkLuaCanvas.cpp', |
| reed@google.com | 74ce6f0 | 2013-05-22 15:13:18 +0000 | [diff] [blame] | 192 | '../src/utils/SkLua.cpp', |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 193 | ], |
| 194 | 'dependencies': [ |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 195 | 'effects.gyp:effects', |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 196 | 'flags.gyp:flags', |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 197 | 'images.gyp:images', |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 198 | 'lua.gyp:lua', |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 199 | 'tools.gyp:picture_renderer', |
| 200 | 'tools.gyp:picture_utils', |
| mike@reedtribe.org | fb85824 | 2013-06-08 16:39:44 +0000 | [diff] [blame] | 201 | 'pdf.gyp:pdf', |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 202 | 'ports.gyp:ports', |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 203 | 'skia_lib.gyp:skia_lib', |
| 204 | 'utils.gyp:utils', |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 205 | ], |
| 206 | }, |
| 207 | { |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 208 | 'target_name': 'render_pictures', |
| 209 | 'type': 'executable', |
| 210 | 'sources': [ |
| 211 | '../tools/render_pictures_main.cpp', |
| keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 212 | ], |
| 213 | 'include_dirs': [ |
| halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 214 | '../src/core', |
| 215 | '../src/images', |
| 216 | '../src/lazy', |
| keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 217 | '../src/pipe/utils/', |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 218 | ], |
| 219 | 'dependencies': [ |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 220 | 'flags.gyp:flags', |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 221 | 'skia_lib.gyp:skia_lib', |
| keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 222 | 'tools.gyp:picture_renderer', |
| twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 223 | 'tools.gyp:picture_utils', |
| 224 | ], |
| 225 | }, |
| 226 | { |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 227 | 'target_name': 'bench_pictures', |
| 228 | 'type': 'executable', |
| 229 | 'sources': [ |
| scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 230 | '../bench/SkBenchLogger.h', |
| 231 | '../bench/SkBenchLogger.cpp', |
| 232 | '../bench/TimerData.h', |
| 233 | '../bench/TimerData.cpp', |
| keyar@chromium.org | cf6c44c | 2012-07-09 19:37:40 +0000 | [diff] [blame] | 234 | '../tools/bench_pictures_main.cpp', |
| scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 235 | '../tools/PictureBenchmark.cpp', |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 236 | ], |
| 237 | 'include_dirs': [ |
| halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 238 | '../src/core/', |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 239 | '../bench', |
| scroggo@google.com | cc69020 | 2013-03-04 19:56:21 +0000 | [diff] [blame] | 240 | '../src/lazy/', |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 241 | ], |
| 242 | 'dependencies': [ |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 243 | 'bench.gyp:bench_timer', |
| 244 | 'flags.gyp:flags', |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 245 | 'skia_lib.gyp:skia_lib', |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 246 | 'tools.gyp:picture_utils', |
| keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 247 | 'tools.gyp:picture_renderer', |
| scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 248 | ], |
| keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 249 | }, |
| 250 | { |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 251 | 'target_name': 'picture_renderer', |
| 252 | 'type': 'static_library', |
| 253 | 'sources': [ |
| commit-bot@chromium.org | 56799e2 | 2013-07-16 18:21:46 +0000 | [diff] [blame] | 254 | '../tools/LazyDecodeBitmap.cpp', |
| scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 255 | '../tools/PictureRenderer.h', |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 256 | '../tools/PictureRenderer.cpp', |
| scroggo@google.com | 161e1ba | 2013-03-04 16:41:06 +0000 | [diff] [blame] | 257 | '../tools/PictureRenderingFlags.h', |
| 258 | '../tools/PictureRenderingFlags.cpp', |
| scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 259 | '../tools/CopyTilesRenderer.h', |
| 260 | '../tools/CopyTilesRenderer.cpp', |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 261 | '../src/pipe/utils/SamplePipeControllers.h', |
| 262 | '../src/pipe/utils/SamplePipeControllers.cpp', |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 263 | ], |
| 264 | 'include_dirs': [ |
| halcanary@google.com | 2c7c7ee | 2013-12-05 18:31:42 +0000 | [diff] [blame] | 265 | '../src/core', |
| 266 | '../src/images', |
| 267 | '../src/lazy', |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 268 | '../src/pipe/utils/', |
| 269 | '../src/utils/', |
| 270 | ], |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 271 | 'direct_dependent_settings': { |
| 272 | 'include_dirs': [ |
| 273 | # needed for JSON headers used within PictureRenderer.h |
| 274 | '../third_party/externals/jsoncpp-chromium/overrides/include/', |
| 275 | '../third_party/externals/jsoncpp/include/', |
| 276 | ], |
| 277 | }, |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 278 | 'dependencies': [ |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 279 | 'flags.gyp:flags', |
| 280 | 'jsoncpp.gyp:jsoncpp', |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 281 | 'skia_lib.gyp:skia_lib', |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 282 | 'tools.gyp:picture_utils', |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 283 | ], |
| robertphillips@google.com | fe1b536 | 2013-02-07 19:45:46 +0000 | [diff] [blame] | 284 | 'conditions': [ |
| 285 | ['skia_gpu == 1', |
| 286 | { |
| 287 | 'include_dirs' : [ |
| 288 | '../src/gpu', |
| 289 | ], |
| robertphillips@google.com | 94d8f1e | 2013-12-18 17:25:33 +0000 | [diff] [blame^] | 290 | 'dependencies': [ |
| 291 | 'gputest.gyp:skgputest', |
| 292 | ], |
| robertphillips@google.com | fe1b536 | 2013-02-07 19:45:46 +0000 | [diff] [blame] | 293 | }, |
| 294 | ], |
| 295 | ], |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 296 | }, |
| 297 | { |
| edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 298 | 'target_name': 'render_pdfs', |
| 299 | 'type': 'executable', |
| 300 | 'sources': [ |
| 301 | '../tools/render_pdfs_main.cpp', |
| 302 | '../tools/PdfRenderer.cpp', |
| 303 | '../tools/PdfRenderer.h', |
| 304 | ], |
| 305 | 'include_dirs': [ |
| 306 | '../src/pipe/utils/', |
| 307 | '../src/utils/', |
| 308 | ], |
| 309 | 'dependencies': [ |
| edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 310 | 'pdf.gyp:pdf', |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 311 | 'skia_lib.gyp:skia_lib', |
| edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 312 | 'tools.gyp:picture_utils', |
| 313 | ], |
| edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 314 | 'conditions': [ |
| borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 315 | ['skia_win_debuggers_path and skia_os == "win"', |
| edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 316 | { |
| 317 | 'dependencies': [ |
| 318 | 'tools.gyp:win_dbghelp', |
| 319 | ], |
| 320 | }, |
| 321 | ], |
| 322 | # VS static libraries don't have a linker option. We must set a global |
| 323 | # project linker option, or add it to each executable. |
| 324 | ['skia_win_debuggers_path and skia_os == "win" and ' |
| borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 325 | 'skia_arch_width == 64', |
| edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 326 | { |
| 327 | 'msvs_settings': { |
| 328 | 'VCLinkerTool': { |
| 329 | 'AdditionalDependencies': [ |
| 330 | '<(skia_win_debuggers_path)/x64/DbgHelp.lib', |
| 331 | ], |
| 332 | }, |
| 333 | }, |
| 334 | }, |
| 335 | ], |
| 336 | ['skia_win_debuggers_path and skia_os == "win" and ' |
| borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 337 | 'skia_arch_width == 32', |
| edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 338 | { |
| 339 | 'msvs_settings': { |
| 340 | 'VCLinkerTool': { |
| 341 | 'AdditionalDependencies': [ |
| 342 | '<(skia_win_debuggers_path)/DbgHelp.lib', |
| 343 | ], |
| 344 | }, |
| 345 | }, |
| 346 | }, |
| 347 | ], |
| 348 | ], |
| edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 349 | }, |
| 350 | { |
| twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 351 | 'target_name': 'picture_utils', |
| 352 | 'type': 'static_library', |
| 353 | 'sources': [ |
| 354 | '../tools/picture_utils.cpp', |
| borenet@google.com | e21795e | 2012-09-14 14:34:28 +0000 | [diff] [blame] | 355 | '../tools/picture_utils.h', |
| twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 356 | ], |
| 357 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 358 | 'skia_lib.gyp:skia_lib', |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 359 | ], |
| reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 360 | 'direct_dependent_settings': { |
| 361 | 'include_dirs': [ |
| reed@google.com | 9bf99c3 | 2013-05-15 20:07:22 +0000 | [diff] [blame] | 362 | '../tools/', |
| reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 363 | ], |
| 364 | }, |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 365 | }, |
| reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 366 | { |
| 367 | 'target_name': 'pinspect', |
| 368 | 'type': 'executable', |
| 369 | 'sources': [ |
| 370 | '../tools/pinspect.cpp', |
| 371 | ], |
| 372 | 'dependencies': [ |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 373 | 'flags.gyp:flags', |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 374 | 'skia_lib.gyp:skia_lib', |
| commit-bot@chromium.org | 826ec81 | 2013-06-12 18:28:36 +0000 | [diff] [blame] | 375 | 'tools.gyp:picture_renderer', |
| reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 376 | ], |
| 377 | }, |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 378 | { |
| commit-bot@chromium.org | 6645cde | 2013-07-19 18:54:04 +0000 | [diff] [blame] | 379 | 'target_name': 'bbh_shootout', |
| 380 | 'type': 'executable', |
| 381 | 'include_dirs': [ |
| 382 | '../bench', |
| 383 | '../tools/' |
| 384 | ], |
| 385 | 'sources': [ |
| 386 | '../tools/bbh_shootout.cpp', |
| 387 | |
| 388 | # Bench code: |
| 389 | '../bench/TimerData.h', |
| 390 | '../bench/TimerData.cpp', |
| 391 | ], |
| 392 | 'dependencies': [ |
| commit-bot@chromium.org | 6645cde | 2013-07-19 18:54:04 +0000 | [diff] [blame] | 393 | 'bench.gyp:bench_timer', |
| commit-bot@chromium.org | 6645cde | 2013-07-19 18:54:04 +0000 | [diff] [blame] | 394 | 'flags.gyp:flags', |
| commit-bot@chromium.org | a3f882c | 2013-12-13 20:52:36 +0000 | [diff] [blame] | 395 | 'skia_lib.gyp:skia_lib', |
| 396 | 'tools.gyp:picture_renderer', |
| 397 | 'tools.gyp:picture_utils', |
| commit-bot@chromium.org | 6645cde | 2013-07-19 18:54:04 +0000 | [diff] [blame] | 398 | ], |
| 399 | }, |
| 400 | { |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 401 | 'target_name': 'filter', |
| 402 | 'type': 'executable', |
| 403 | 'include_dirs' : [ |
| 404 | '../src/core', |
| fmalita@google.com | 4df1673 | 2013-06-13 21:25:45 +0000 | [diff] [blame] | 405 | '../src/utils/debugger', |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 406 | ], |
| 407 | 'sources': [ |
| 408 | '../tools/filtermain.cpp', |
| robertphillips@google.com | d3d377f | 2012-12-07 20:56:13 +0000 | [diff] [blame] | 409 | '../tools/path_utils.h', |
| robertphillips@google.com | 3b0a9fe | 2013-01-31 15:56:22 +0000 | [diff] [blame] | 410 | '../tools/path_utils.cpp', |
| fmalita@google.com | 86681b3 | 2013-06-13 20:59:14 +0000 | [diff] [blame] | 411 | '../src/utils/debugger/SkDrawCommand.h', |
| 412 | '../src/utils/debugger/SkDrawCommand.cpp', |
| 413 | '../src/utils/debugger/SkDebugCanvas.h', |
| 414 | '../src/utils/debugger/SkDebugCanvas.cpp', |
| 415 | '../src/utils/debugger/SkObjectParser.h', |
| 416 | '../src/utils/debugger/SkObjectParser.cpp', |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 417 | ], |
| 418 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 419 | 'skia_lib.gyp:skia_lib', |
| djsollen@google.com | a09e883 | 2012-11-13 18:50:33 +0000 | [diff] [blame] | 420 | 'tools.gyp:picture_utils', |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 421 | ], |
| 422 | }, |
| halcanary@google.com | fed3037 | 2013-10-04 12:46:45 +0000 | [diff] [blame] | 423 | { |
| 424 | 'target_name': 'test_image_decoder', |
| 425 | 'type': 'executable', |
| 426 | 'sources': [ |
| 427 | '../tools/test_image_decoder.cpp', |
| 428 | ], |
| 429 | 'dependencies': [ |
| 430 | 'skia_lib.gyp:skia_lib', |
| 431 | ], |
| 432 | }, |
| edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 433 | ], |
| 434 | 'conditions': [ |
| zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame] | 435 | ['skia_shared_lib', |
| 436 | { |
| 437 | 'targets': [ |
| 438 | { |
| 439 | 'target_name': 'sklua', |
| 440 | 'product_name': 'skia', |
| 441 | 'product_prefix': '', |
| 442 | 'product_dir': '<(PRODUCT_DIR)/', |
| 443 | 'type': 'shared_library', |
| 444 | 'sources': [ |
| 445 | '../src/utils/SkLuaCanvas.cpp', |
| 446 | '../src/utils/SkLua.cpp', |
| 447 | ], |
| 448 | 'include_dirs': [ |
| 449 | '../third_party/lua/src/', |
| 450 | ], |
| 451 | 'dependencies': [ |
| 452 | 'lua.gyp:lua', |
| 453 | 'pdf.gyp:pdf', |
| 454 | 'skia_lib.gyp:skia_lib', |
| 455 | ], |
| 456 | 'conditions': [ |
| 457 | ['skia_os != "win"', |
| 458 | { |
| 459 | 'ldflags': [ |
| 460 | '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags', |
| 461 | ], |
| 462 | }, |
| 463 | ], |
| 464 | ], |
| 465 | }, |
| 466 | ], |
| 467 | }, |
| 468 | ], |
| borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 469 | ['skia_win_debuggers_path and skia_os == "win"', |
| edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 470 | { |
| 471 | 'targets': [ |
| 472 | { |
| 473 | 'target_name': 'win_dbghelp', |
| 474 | 'type': 'static_library', |
| 475 | 'defines': [ |
| 476 | 'SK_CDB_PATH="<(skia_win_debuggers_path)"', |
| 477 | ], |
| 478 | 'sources': [ |
| 479 | '../tools/win_dbghelp.h', |
| 480 | '../tools/win_dbghelp.cpp', |
| 481 | ], |
| 482 | }, |
| 483 | ], |
| 484 | }, |
| 485 | ], |
| bungeman@google.com | 07a69f8 | 2013-04-02 14:12:38 +0000 | [diff] [blame] | 486 | ['skia_os == "win"', |
| 487 | { |
| 488 | 'targets': [ |
| 489 | { |
| 490 | 'target_name': 'win_lcid', |
| 491 | 'type': 'executable', |
| 492 | 'sources': [ |
| 493 | '../tools/win_lcid.cpp', |
| 494 | ], |
| 495 | }, |
| 496 | ], |
| 497 | }, |
| 498 | ], |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 499 | ], |
| 500 | } |