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