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 | # |
| 6 | # Building on other platforms not tested yet. |
| 7 | # |
| 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': [ |
| 18 | 'skdiff', |
| 19 | 'skhello', |
| 20 | 'skimage', |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 21 | 'render_pictures', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 22 | 'bench_pictures', |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 23 | 'pinspect', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 24 | 'filter', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 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', |
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 | ], |
| 81 | 'dependencies': [ |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 82 | 'skia_base_libs.gyp:skia_base_libs', |
djsollen@google.com | 41b46be | 2012-03-23 19:36:53 +0000 | [diff] [blame] | 83 | 'effects.gyp:effects', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 84 | 'images.gyp:images', |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 85 | ], |
| 86 | }, |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 87 | { |
| 88 | 'target_name': 'render_pictures', |
| 89 | 'type': 'executable', |
| 90 | 'sources': [ |
| 91 | '../tools/render_pictures_main.cpp', |
keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 92 | ], |
| 93 | 'include_dirs': [ |
| 94 | '../src/pipe/utils/', |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 95 | ], |
| 96 | 'dependencies': [ |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 97 | 'skia_base_libs.gyp:skia_base_libs', |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 98 | 'tools.gyp:picture_renderer', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 99 | 'tools.gyp:picture_utils', |
| 100 | ], |
| 101 | }, |
| 102 | { |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 103 | 'target_name': 'bench_pictures', |
| 104 | 'type': 'executable', |
| 105 | 'sources': [ |
scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 106 | '../bench/SkBenchLogger.h', |
| 107 | '../bench/SkBenchLogger.cpp', |
| 108 | '../bench/TimerData.h', |
| 109 | '../bench/TimerData.cpp', |
keyar@chromium.org | cf6c44c | 2012-07-09 19:37:40 +0000 | [diff] [blame] | 110 | '../tools/bench_pictures_main.cpp', |
scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 111 | '../tools/PictureBenchmark.cpp', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 112 | ], |
| 113 | 'include_dirs': [ |
| 114 | '../bench', |
| 115 | ], |
| 116 | 'dependencies': [ |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 117 | 'skia_base_libs.gyp:skia_base_libs', |
edisonn@google.com | d966ab9 | 2012-09-05 19:43:46 +0000 | [diff] [blame] | 118 | 'effects.gyp:effects', |
reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 119 | 'tools.gyp:picture_utils', |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 120 | 'tools.gyp:picture_renderer', |
| 121 | 'bench.gyp:bench_timer', |
scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 122 | ], |
keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 123 | }, |
| 124 | { |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 125 | 'target_name': 'picture_renderer', |
| 126 | 'type': 'static_library', |
| 127 | 'sources': [ |
scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 128 | '../tools/PictureRenderer.h', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 129 | '../tools/PictureRenderer.cpp', |
scroggo@google.com | 4a26d9d | 2012-11-07 18:01:46 +0000 | [diff] [blame] | 130 | '../tools/CopyTilesRenderer.h', |
| 131 | '../tools/CopyTilesRenderer.cpp', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 132 | '../src/pipe/utils/SamplePipeControllers.h', |
| 133 | '../src/pipe/utils/SamplePipeControllers.cpp', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 134 | ], |
| 135 | 'include_dirs': [ |
junov@chromium.org | 9313ca4 | 2012-11-02 18:11:49 +0000 | [diff] [blame] | 136 | '../src/core/', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 137 | '../src/pipe/utils/', |
| 138 | '../src/utils/', |
| 139 | ], |
| 140 | 'dependencies': [ |
| 141 | 'skia_base_libs.gyp:skia_base_libs', |
borenet@google.com | bc76611 | 2012-09-10 16:20:47 +0000 | [diff] [blame] | 142 | 'effects.gyp:effects', |
keyar@chromium.org | 9299ede | 2012-08-21 19:05:08 +0000 | [diff] [blame] | 143 | 'images.gyp:images', |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 144 | 'tools.gyp:picture_utils', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 145 | ], |
| 146 | 'export_dependent_settings': [ |
| 147 | 'images.gyp:images', |
| 148 | ], |
keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 149 | }, |
| 150 | { |
edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame] | 151 | 'target_name': 'render_pdfs', |
| 152 | 'type': 'executable', |
| 153 | 'sources': [ |
| 154 | '../tools/render_pdfs_main.cpp', |
| 155 | '../tools/PdfRenderer.cpp', |
| 156 | '../tools/PdfRenderer.h', |
| 157 | ], |
| 158 | 'include_dirs': [ |
| 159 | '../src/pipe/utils/', |
| 160 | '../src/utils/', |
| 161 | ], |
| 162 | 'dependencies': [ |
| 163 | 'core.gyp:core', |
| 164 | 'effects.gyp:effects', |
| 165 | 'images.gyp:images', |
| 166 | 'pdf.gyp:pdf', |
| 167 | 'ports.gyp:ports', |
| 168 | 'tools.gyp:picture_utils', |
| 169 | ], |
| 170 | }, |
| 171 | { |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 172 | 'target_name': 'picture_utils', |
| 173 | 'type': 'static_library', |
| 174 | 'sources': [ |
| 175 | '../tools/picture_utils.cpp', |
borenet@google.com | e21795e | 2012-09-14 14:34:28 +0000 | [diff] [blame] | 176 | '../tools/picture_utils.h', |
twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 177 | ], |
| 178 | 'dependencies': [ |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 179 | 'skia_base_libs.gyp:skia_base_libs', |
junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 180 | ], |
| 181 | }, |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 182 | { |
| 183 | 'target_name': 'pinspect', |
| 184 | 'type': 'executable', |
| 185 | 'sources': [ |
| 186 | '../tools/pinspect.cpp', |
| 187 | ], |
| 188 | 'dependencies': [ |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 189 | 'skia_base_libs.gyp:skia_base_libs', |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 190 | 'effects.gyp:effects', |
| 191 | 'images.gyp:images', |
reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 192 | ], |
| 193 | }, |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 194 | { |
| 195 | 'target_name': 'filter', |
| 196 | 'type': 'executable', |
| 197 | 'include_dirs' : [ |
| 198 | '../src/core', |
| 199 | ], |
| 200 | 'sources': [ |
| 201 | '../tools/filtermain.cpp', |
robertphillips@google.com | d3d377f | 2012-12-07 20:56:13 +0000 | [diff] [blame] | 202 | '../tools/path_utils.cpp', |
| 203 | '../tools/path_utils.h', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 204 | ], |
| 205 | 'dependencies': [ |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 206 | 'skia_base_libs.gyp:skia_base_libs', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 207 | 'effects.gyp:effects', |
| 208 | 'images.gyp:images', |
djsollen@google.com | a09e883 | 2012-11-13 18:50:33 +0000 | [diff] [blame] | 209 | 'tools.gyp:picture_utils', |
robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 210 | ], |
| 211 | }, |
epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 212 | ], |
| 213 | } |
| 214 | |
| 215 | # Local Variables: |
| 216 | # tab-width:2 |
| 217 | # indent-tabs-mode:nil |
| 218 | # End: |
| 219 | # vim: set expandtab tabstop=2 shiftwidth=2: |