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