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