| 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': [ |
| 31 | '../tools/skdiff_main.cpp', |
| 32 | ], |
| 33 | 'dependencies': [ |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 34 | 'skia_base_libs.gyp:skia_base_libs', |
| djsollen@google.com | 41b46be | 2012-03-23 19:36:53 +0000 | [diff] [blame] | 35 | 'effects.gyp:effects', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 36 | 'images.gyp:images', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 37 | ], |
| 38 | }, |
| 39 | { |
| 40 | 'target_name': 'skhello', |
| 41 | 'type': 'executable', |
| 42 | 'sources': [ |
| 43 | '../tools/skhello.cpp', |
| 44 | ], |
| 45 | 'dependencies': [ |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 46 | 'skia_base_libs.gyp:skia_base_libs', |
| djsollen@google.com | 41b46be | 2012-03-23 19:36:53 +0000 | [diff] [blame] | 47 | 'effects.gyp:effects', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 48 | 'images.gyp:images', |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 49 | ], |
| 50 | }, |
| 51 | { |
| 52 | 'target_name': 'skimage', |
| 53 | 'type': 'executable', |
| 54 | 'sources': [ |
| 55 | '../tools/skimage_main.cpp', |
| 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 | }, |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 63 | { |
| 64 | 'target_name': 'render_pictures', |
| 65 | 'type': 'executable', |
| 66 | 'sources': [ |
| 67 | '../tools/render_pictures_main.cpp', |
| keyar@chromium.org | a2333d9 | 2012-07-16 17:29:16 +0000 | [diff] [blame] | 68 | ], |
| 69 | 'include_dirs': [ |
| 70 | '../src/pipe/utils/', |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +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', |
| keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 74 | 'tools.gyp:picture_renderer', |
| twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 75 | 'tools.gyp:picture_utils', |
| 76 | ], |
| 77 | }, |
| 78 | { |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 79 | 'target_name': 'bench_pictures', |
| 80 | 'type': 'executable', |
| 81 | 'sources': [ |
| scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 82 | '../bench/SkBenchLogger.h', |
| 83 | '../bench/SkBenchLogger.cpp', |
| 84 | '../bench/TimerData.h', |
| 85 | '../bench/TimerData.cpp', |
| keyar@chromium.org | cf6c44c | 2012-07-09 19:37:40 +0000 | [diff] [blame] | 86 | '../tools/bench_pictures_main.cpp', |
| scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 87 | '../tools/PictureBenchmark.cpp', |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 88 | ], |
| 89 | 'include_dirs': [ |
| 90 | '../bench', |
| 91 | ], |
| 92 | 'dependencies': [ |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 93 | 'skia_base_libs.gyp:skia_base_libs', |
| edisonn@google.com | d966ab9 | 2012-09-05 19:43:46 +0000 | [diff] [blame] | 94 | 'effects.gyp:effects', |
| reed@google.com | 006db0f | 2012-06-27 19:33:29 +0000 | [diff] [blame] | 95 | 'tools.gyp:picture_utils', |
| keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 96 | 'tools.gyp:picture_renderer', |
| 97 | 'bench.gyp:bench_timer', |
| scroggo@google.com | 9a41252 | 2012-09-07 15:21:18 +0000 | [diff] [blame] | 98 | ], |
| keyar@chromium.org | 163b567 | 2012-08-01 17:53:29 +0000 | [diff] [blame] | 99 | }, |
| 100 | { |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 101 | 'target_name': 'picture_renderer', |
| 102 | 'type': 'static_library', |
| 103 | 'sources': [ |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 104 | '../tools/PictureRenderer.cpp', |
| 105 | '../src/pipe/utils/SamplePipeControllers.h', |
| 106 | '../src/pipe/utils/SamplePipeControllers.cpp', |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 107 | ], |
| 108 | 'include_dirs': [ |
| 109 | '../src/pipe/utils/', |
| 110 | '../src/utils/', |
| 111 | ], |
| 112 | 'dependencies': [ |
| 113 | 'skia_base_libs.gyp:skia_base_libs', |
| borenet@google.com | bc76611 | 2012-09-10 16:20:47 +0000 | [diff] [blame] | 114 | 'effects.gyp:effects', |
| keyar@chromium.org | 9299ede | 2012-08-21 19:05:08 +0000 | [diff] [blame] | 115 | 'images.gyp:images', |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 116 | 'tools.gyp:picture_utils', |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 117 | ], |
| 118 | 'export_dependent_settings': [ |
| 119 | 'images.gyp:images', |
| 120 | ], |
| keyar@chromium.org | 451bb9f | 2012-07-26 17:27:57 +0000 | [diff] [blame] | 121 | }, |
| 122 | { |
| edisonn@google.com | c319abe | 2012-11-01 19:52:38 +0000 | [diff] [blame^] | 123 | 'target_name': 'render_pdfs', |
| 124 | 'type': 'executable', |
| 125 | 'sources': [ |
| 126 | '../tools/render_pdfs_main.cpp', |
| 127 | '../tools/PdfRenderer.cpp', |
| 128 | '../tools/PdfRenderer.h', |
| 129 | ], |
| 130 | 'include_dirs': [ |
| 131 | '../src/pipe/utils/', |
| 132 | '../src/utils/', |
| 133 | ], |
| 134 | 'dependencies': [ |
| 135 | 'core.gyp:core', |
| 136 | 'effects.gyp:effects', |
| 137 | 'images.gyp:images', |
| 138 | 'pdf.gyp:pdf', |
| 139 | 'ports.gyp:ports', |
| 140 | 'tools.gyp:picture_utils', |
| 141 | ], |
| 142 | }, |
| 143 | { |
| twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 144 | 'target_name': 'picture_utils', |
| 145 | 'type': 'static_library', |
| 146 | 'sources': [ |
| 147 | '../tools/picture_utils.cpp', |
| borenet@google.com | e21795e | 2012-09-14 14:34:28 +0000 | [diff] [blame] | 148 | '../tools/picture_utils.h', |
| twiz@google.com | a31b8bb | 2012-06-22 18:24:56 +0000 | [diff] [blame] | 149 | ], |
| 150 | 'dependencies': [ |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 151 | 'skia_base_libs.gyp:skia_base_libs', |
| junov@chromium.org | 777442d | 2012-06-12 14:56:36 +0000 | [diff] [blame] | 152 | ], |
| 153 | }, |
| reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 154 | { |
| 155 | 'target_name': 'pinspect', |
| 156 | 'type': 'executable', |
| 157 | 'sources': [ |
| 158 | '../tools/pinspect.cpp', |
| 159 | ], |
| 160 | 'dependencies': [ |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 161 | 'skia_base_libs.gyp:skia_base_libs', |
| reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 162 | 'effects.gyp:effects', |
| 163 | 'images.gyp:images', |
| reed@google.com | 1bdf7fe | 2012-06-14 18:58:40 +0000 | [diff] [blame] | 164 | ], |
| 165 | }, |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 166 | { |
| 167 | 'target_name': 'filter', |
| 168 | 'type': 'executable', |
| 169 | 'include_dirs' : [ |
| 170 | '../src/core', |
| 171 | ], |
| 172 | 'sources': [ |
| 173 | '../tools/filtermain.cpp', |
| 174 | ], |
| 175 | 'dependencies': [ |
| borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 176 | 'skia_base_libs.gyp:skia_base_libs', |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 177 | 'effects.gyp:effects', |
| 178 | 'images.gyp:images', |
| robertphillips@google.com | c7e4a5a | 2012-10-04 13:00:33 +0000 | [diff] [blame] | 179 | ], |
| 180 | }, |
| epoger@google.com | ccdbd2c | 2011-06-02 14:38:23 +0000 | [diff] [blame] | 181 | ], |
| 182 | } |
| 183 | |
| 184 | # Local Variables: |
| 185 | # tab-width:2 |
| 186 | # indent-tabs-mode:nil |
| 187 | # End: |
| 188 | # vim: set expandtab tabstop=2 shiftwidth=2: |