| 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', |
| reed@google.com | 1ef08bb | 2013-05-15 20:55:49 +0000 | [diff] [blame] | 18 | 'lua_pictures', |
| mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 19 | 'lua_app', |
| edisonn@google.com | 8ba9a83 | 2013-01-18 18:06:22 +0000 | [diff] [blame] | 20 | 'pinspect', |
| 21 | 'render_pdfs', |
| 22 | 'render_pictures', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 23 | 'skdiff', |
| 24 | 'skhello', |
| 25 | 'skimage', |
| 26 | ], |
| zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame^] | 27 | 'conditions': [ |
| 28 | ['skia_shared_lib', |
| 29 | { |
| 30 | 'dependencies': [ |
| 31 | 'sklua', # This can only be built if skia is built as a shared library |
| 32 | ], |
| 33 | }, |
| 34 | ], |
| 35 | ], |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 36 | }, |
| 37 | { |
| 38 | 'target_name': 'skdiff', |
| 39 | 'type': 'executable', |
| 40 | 'sources': [ |
| bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 41 | '../tools/skdiff.cpp', |
| 42 | '../tools/skdiff.h', |
| 43 | '../tools/skdiff_html.cpp', |
| 44 | '../tools/skdiff_html.h', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 45 | '../tools/skdiff_main.cpp', |
| bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 46 | '../tools/skdiff_utils.cpp', |
| 47 | '../tools/skdiff_utils.h', |
| 48 | ], |
| 49 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 50 | 'skia_lib.gyp:skia_lib', |
| bungeman@google.com | e3c8ddf | 2012-12-05 20:13:12 +0000 | [diff] [blame] | 51 | ], |
| 52 | }, |
| 53 | { |
| 54 | 'target_name': 'skimagediff', |
| 55 | 'type': 'executable', |
| 56 | 'sources': [ |
| 57 | '../tools/skdiff.cpp', |
| 58 | '../tools/skdiff.h', |
| 59 | '../tools/skdiff_html.cpp', |
| 60 | '../tools/skdiff_html.h', |
| 61 | '../tools/skdiff_image.cpp', |
| 62 | '../tools/skdiff_utils.cpp', |
| 63 | '../tools/skdiff_utils.h', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 64 | ], |
| 65 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 66 | 'skia_lib.gyp:skia_lib', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 67 | ], |
| 68 | }, |
| 69 | { |
| 70 | 'target_name': 'skhello', |
| 71 | 'type': 'executable', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 72 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 73 | 'skia_lib.gyp:skia_lib', |
| borenet@google.com | bb52288 | 2013-06-17 15:39:43 +0000 | [diff] [blame] | 74 | ], |
| 75 | 'conditions': [ |
| 76 | [ 'skia_os == "nacl"', { |
| 77 | 'sources': [ |
| 78 | '../platform_tools/nacl/src/nacl_hello.cpp', |
| 79 | ], |
| 80 | }, { |
| 81 | 'sources': [ |
| 82 | '../tools/skhello.cpp', |
| 83 | ], |
| 84 | 'dependencies': [ |
| 85 | 'pdf.gyp:pdf', |
| 86 | 'flags.gyp:flags', |
| 87 | ], |
| 88 | }], |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 89 | ], |
| 90 | }, |
| 91 | { |
| 92 | 'target_name': 'skimage', |
| 93 | 'type': 'executable', |
| 94 | 'sources': [ |
| 95 | '../tools/skimage_main.cpp', |
| 96 | ], |
| scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 97 | 'include_dirs': [ |
| 98 | # For SkBitmapHasher.h |
| 99 | '../src/utils/', |
| 100 | ], |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 101 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 102 | 'skia_lib.gyp:skia_lib', |
| scroggo@google.com | b41ff95 | 2013-04-11 15:53:35 +0000 | [diff] [blame] | 103 | 'flags.gyp:flags', |
| scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 104 | 'gm.gyp:gm_expectations', |
| scroggo@google.com | 6843bdb | 2013-05-08 19:14:23 +0000 | [diff] [blame] | 105 | 'jsoncpp.gyp:jsoncpp', |
| 106 | 'utils.gyp:utils', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 107 | ], |
| 108 | }, |
| zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame^] | 109 | |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 110 | { |
| mike@reedtribe.org | 73d9f1c | 2013-06-09 01:54:56 +0000 | [diff] [blame] | 111 | 'target_name': 'lua_app', |
| 112 | 'type': 'executable', |
| 113 | 'sources': [ |
| 114 | '../tools/lua/lua_app.cpp', |
| 115 | '../src/utils/SkLua.cpp', |
| 116 | ], |
| 117 | 'dependencies': [ |
| 118 | 'skia_lib.gyp:skia_lib', |
| 119 | 'effects.gyp:effects', |
| 120 | 'utils.gyp:utils', |
| 121 | 'images.gyp:images', |
| 122 | 'pdf.gyp:pdf', |
| 123 | 'ports.gyp:ports', |
| 124 | 'lua.gyp:lua', |
| 125 | ], |
| 126 | }, |
| 127 | { |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 128 | 'target_name': 'lua_pictures', |
| 129 | 'type': 'executable', |
| 130 | 'sources': [ |
| 131 | '../tools/lua/lua_pictures.cpp', |
| 132 | '../src/utils/SkLuaCanvas.cpp', |
| reed@google.com | 74ce6f0 | 2013-05-22 15:13:18 +0000 | [diff] [blame] | 133 | '../src/utils/SkLua.cpp', |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 134 | ], |
| 135 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 136 | 'skia_lib.gyp:skia_lib', |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 137 | 'effects.gyp:effects', |
| 138 | 'utils.gyp:utils', |
| 139 | 'images.gyp:images', |
| 140 | 'tools.gyp:picture_renderer', |
| 141 | 'tools.gyp:picture_utils', |
| mike@reedtribe.org | fb85824 | 2013-06-08 16:39:44 +0000 | [diff] [blame] | 142 | 'pdf.gyp:pdf', |
| reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 143 | 'ports.gyp:ports', |
| 144 | 'flags.gyp:flags', |
| 145 | 'lua.gyp:lua', |
| 146 | ], |
| 147 | }, |
| 148 | { |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 149 | 'target_name': 'render_pictures', |
| 150 | 'type': 'executable', |
| 151 | 'sources': [ |
| 152 | '../tools/render_pictures_main.cpp', |
| keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 153 | ], |
| 154 | 'include_dirs': [ |
| 155 | '../src/pipe/utils/', |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 156 | ], |
| 157 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 158 | 'skia_lib.gyp:skia_lib', |
| keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 159 | 'tools.gyp:picture_renderer', |
| twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 160 | 'tools.gyp:picture_utils', |
| scroggo@google.com | d9ba9a0 | 2013-03-21 19:43:15 +0000 | [diff] [blame] | 161 | 'flags.gyp:flags', |
| twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 162 | ], |
| 163 | }, |
| 164 | { |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 165 | 'target_name': 'bench_pictures', |
| 166 | 'type': 'executable', |
| 167 | 'sources': [ |
| scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 168 | '../bench/SkBenchLogger.h', |
| 169 | '../bench/SkBenchLogger.cpp', |
| 170 | '../bench/TimerData.h', |
| 171 | '../bench/TimerData.cpp', |
| keyar@chromium.org | cf6c44c | 2012-07-09 19:37:40 +0000 | [diff] [blame] | 172 | '../tools/bench_pictures_main.cpp', |
| scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 173 | '../tools/PictureBenchmark.cpp', |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 174 | ], |
| 175 | 'include_dirs': [ |
| 176 | '../bench', |
| scroggo@google.com | cc69020 | 2013-03-04 19:56:21 +0000 | [diff] [blame] | 177 | '../src/lazy/', |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 178 | ], |
| 179 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 180 | 'skia_lib.gyp:skia_lib', |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 181 | 'tools.gyp:picture_utils', |
| keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 182 | 'tools.gyp:picture_renderer', |
| 183 | 'bench.gyp:bench_timer', |
| scroggo@google.com | d9ba9a0 | 2013-03-21 19:43:15 +0000 | [diff] [blame] | 184 | 'flags.gyp:flags', |
| scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 185 | ], |
| keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 186 | }, |
| 187 | { |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 188 | 'target_name': 'picture_renderer', |
| 189 | 'type': 'static_library', |
| 190 | 'sources': [ |
| scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 191 | '../tools/PictureRenderer.h', |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 192 | '../tools/PictureRenderer.cpp', |
| scroggo@google.com | 161e1ba | 2013-03-04 16:41:06 +0000 | [diff] [blame] | 193 | '../tools/PictureRenderingFlags.h', |
| 194 | '../tools/PictureRenderingFlags.cpp', |
| scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 195 | '../tools/CopyTilesRenderer.h', |
| 196 | '../tools/CopyTilesRenderer.cpp', |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 197 | '../src/pipe/utils/SamplePipeControllers.h', |
| 198 | '../src/pipe/utils/SamplePipeControllers.cpp', |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 199 | ], |
| 200 | 'include_dirs': [ |
| junov@chromium.org | 9313ca4 | 2012-11-02 18:11:49 +0000 | [diff] [blame] | 201 | '../src/core/', |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 202 | '../src/pipe/utils/', |
| 203 | '../src/utils/', |
| 204 | ], |
| 205 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 206 | 'skia_lib.gyp:skia_lib', |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 207 | 'tools.gyp:picture_utils', |
| scroggo@google.com | 09fd4d2 | 2013-03-20 14:20:18 +0000 | [diff] [blame] | 208 | 'flags.gyp:flags', |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 209 | ], |
| robertphillips@google.com | fe1b536 | 2013-02-07 19:45:46 +0000 | [diff] [blame] | 210 | 'conditions': [ |
| 211 | ['skia_gpu == 1', |
| 212 | { |
| 213 | 'include_dirs' : [ |
| 214 | '../src/gpu', |
| 215 | ], |
| 216 | }, |
| 217 | ], |
| 218 | ], |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 219 | }, |
| 220 | { |
| edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 221 | 'target_name': 'render_pdfs', |
| 222 | 'type': 'executable', |
| 223 | 'sources': [ |
| 224 | '../tools/render_pdfs_main.cpp', |
| 225 | '../tools/PdfRenderer.cpp', |
| 226 | '../tools/PdfRenderer.h', |
| 227 | ], |
| 228 | 'include_dirs': [ |
| 229 | '../src/pipe/utils/', |
| 230 | '../src/utils/', |
| 231 | ], |
| 232 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 233 | 'skia_lib.gyp:skia_lib', |
| edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 234 | 'pdf.gyp:pdf', |
| edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 235 | 'tools.gyp:picture_utils', |
| 236 | ], |
| edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 237 | 'conditions': [ |
| borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 238 | ['skia_win_debuggers_path and skia_os == "win"', |
| edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 239 | { |
| 240 | 'dependencies': [ |
| 241 | 'tools.gyp:win_dbghelp', |
| 242 | ], |
| 243 | }, |
| 244 | ], |
| 245 | # VS static libraries don't have a linker option. We must set a global |
| 246 | # project linker option, or add it to each executable. |
| 247 | ['skia_win_debuggers_path and skia_os == "win" and ' |
| borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 248 | 'skia_arch_width == 64', |
| edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 249 | { |
| 250 | 'msvs_settings': { |
| 251 | 'VCLinkerTool': { |
| 252 | 'AdditionalDependencies': [ |
| 253 | '<(skia_win_debuggers_path)/x64/DbgHelp.lib', |
| 254 | ], |
| 255 | }, |
| 256 | }, |
| 257 | }, |
| 258 | ], |
| 259 | ['skia_win_debuggers_path and skia_os == "win" and ' |
| borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 260 | 'skia_arch_width == 32', |
| edisonn@google.com | 184487c | 2013-03-08 18:00:16 +0000 | [diff] [blame] | 261 | { |
| 262 | 'msvs_settings': { |
| 263 | 'VCLinkerTool': { |
| 264 | 'AdditionalDependencies': [ |
| 265 | '<(skia_win_debuggers_path)/DbgHelp.lib', |
| 266 | ], |
| 267 | }, |
| 268 | }, |
| 269 | }, |
| 270 | ], |
| 271 | ], |
| edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 272 | }, |
| 273 | { |
| twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 274 | 'target_name': 'picture_utils', |
| 275 | 'type': 'static_library', |
| 276 | 'sources': [ |
| 277 | '../tools/picture_utils.cpp', |
| borenet@google.com | e21795e | 2012-09-14 14:34:28 +0000 | [diff] [blame] | 278 | '../tools/picture_utils.h', |
| twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 279 | ], |
| 280 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 281 | 'skia_lib.gyp:skia_lib', |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 282 | ], |
| reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 283 | 'direct_dependent_settings': { |
| 284 | 'include_dirs': [ |
| reed@google.com | 9bf99c3 | 2013-05-15 20:07:22 +0000 | [diff] [blame] | 285 | '../tools/', |
| reed@google.com | e52d291 | 2013-05-15 20:01:07 +0000 | [diff] [blame] | 286 | ], |
| 287 | }, |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 288 | }, |
| reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 289 | { |
| 290 | 'target_name': 'pinspect', |
| 291 | 'type': 'executable', |
| 292 | 'sources': [ |
| 293 | '../tools/pinspect.cpp', |
| 294 | ], |
| 295 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 296 | 'skia_lib.gyp:skia_lib', |
| commit-bot@chromium.org | 826ec81 | 2013-06-12 18:28:36 +0000 | [diff] [blame] | 297 | 'tools.gyp:picture_renderer', |
| reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 298 | ], |
| 299 | }, |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 300 | { |
| 301 | 'target_name': 'filter', |
| 302 | 'type': 'executable', |
| 303 | 'include_dirs' : [ |
| 304 | '../src/core', |
| fmalita@google.com | 4df1673 | 2013-06-13 21:25:45 +0000 | [diff] [blame] | 305 | '../src/utils/debugger', |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 306 | ], |
| 307 | 'sources': [ |
| 308 | '../tools/filtermain.cpp', |
| robertphillips@google.com | d3d377f | 2012-12-07 20:56:13 +0000 | [diff] [blame] | 309 | '../tools/path_utils.h', |
| robertphillips@google.com | 3b0a9fe | 2013-01-31 15:56:22 +0000 | [diff] [blame] | 310 | '../tools/path_utils.cpp', |
| fmalita@google.com | 86681b3 | 2013-06-13 20:59:14 +0000 | [diff] [blame] | 311 | '../src/utils/debugger/SkDrawCommand.h', |
| 312 | '../src/utils/debugger/SkDrawCommand.cpp', |
| 313 | '../src/utils/debugger/SkDebugCanvas.h', |
| 314 | '../src/utils/debugger/SkDebugCanvas.cpp', |
| 315 | '../src/utils/debugger/SkObjectParser.h', |
| 316 | '../src/utils/debugger/SkObjectParser.cpp', |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 317 | ], |
| 318 | 'dependencies': [ |
| djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 319 | 'skia_lib.gyp:skia_lib', |
| djsollen@google.com | a09e883 | 2012-11-13 18:50:33 +0000 | [diff] [blame] | 320 | 'tools.gyp:picture_utils', |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 321 | ], |
| 322 | }, |
| edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 323 | ], |
| 324 | 'conditions': [ |
| zachr@google.com | 28c27c8 | 2013-06-20 17:15:05 +0000 | [diff] [blame^] | 325 | ['skia_shared_lib', |
| 326 | { |
| 327 | 'targets': [ |
| 328 | { |
| 329 | 'target_name': 'sklua', |
| 330 | 'product_name': 'skia', |
| 331 | 'product_prefix': '', |
| 332 | 'product_dir': '<(PRODUCT_DIR)/', |
| 333 | 'type': 'shared_library', |
| 334 | 'sources': [ |
| 335 | '../src/utils/SkLuaCanvas.cpp', |
| 336 | '../src/utils/SkLua.cpp', |
| 337 | ], |
| 338 | 'include_dirs': [ |
| 339 | '../third_party/lua/src/', |
| 340 | ], |
| 341 | 'dependencies': [ |
| 342 | 'lua.gyp:lua', |
| 343 | 'pdf.gyp:pdf', |
| 344 | 'skia_lib.gyp:skia_lib', |
| 345 | ], |
| 346 | 'conditions': [ |
| 347 | ['skia_os != "win"', |
| 348 | { |
| 349 | 'ldflags': [ |
| 350 | '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags', |
| 351 | ], |
| 352 | }, |
| 353 | ], |
| 354 | ], |
| 355 | }, |
| 356 | ], |
| 357 | }, |
| 358 | ], |
| borenet@google.com | 2d137b6 | 2013-03-08 23:13:33 +0000 | [diff] [blame] | 359 | ['skia_win_debuggers_path and skia_os == "win"', |
| edisonn@google.com | 8819d1a | 2013-03-08 18:43:35 +0000 | [diff] [blame] | 360 | { |
| 361 | 'targets': [ |
| 362 | { |
| 363 | 'target_name': 'win_dbghelp', |
| 364 | 'type': 'static_library', |
| 365 | 'defines': [ |
| 366 | 'SK_CDB_PATH="<(skia_win_debuggers_path)"', |
| 367 | ], |
| 368 | 'sources': [ |
| 369 | '../tools/win_dbghelp.h', |
| 370 | '../tools/win_dbghelp.cpp', |
| 371 | ], |
| 372 | }, |
| 373 | ], |
| 374 | }, |
| 375 | ], |
| bungeman@google.com | 07a69f8 | 2013-04-02 14:12:38 +0000 | [diff] [blame] | 376 | ['skia_os == "win"', |
| 377 | { |
| 378 | 'targets': [ |
| 379 | { |
| 380 | 'target_name': 'win_lcid', |
| 381 | 'type': 'executable', |
| 382 | 'sources': [ |
| 383 | '../tools/win_lcid.cpp', |
| 384 | ], |
| 385 | }, |
| 386 | ], |
| 387 | }, |
| 388 | ], |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 389 | ], |
| 390 | } |
| 391 | |
| 392 | # Local Variables: |
| 393 | # tab-width:2 |
| 394 | # indent-tabs-mode:nil |
| 395 | # End: |
| 396 | # vim: set expandtab tabstop=2 shiftwidth=2: |