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