OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 'grit_info_cmd': ['python', '../tools/grit/grit_info.py'], |
| 9 'grit_cmd': ['python', '../tools/grit/grit.py'], |
| 10 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/gfx', |
8 }, | 11 }, |
9 'targets': [ | 12 'targets': [ |
10 { | 13 { |
11 'target_name': 'gfx_unittests', | 14 'target_name': 'gfx_unittests', |
12 'type': 'executable', | 15 'type': 'executable', |
13 'msvs_guid': 'C8BD2821-EAE5-4AC6-A0E4-F82CAC2956CC', | 16 'msvs_guid': 'C8BD2821-EAE5-4AC6-A0E4-F82CAC2956CC', |
14 'dependencies': [ | 17 'dependencies': [ |
15 'gfx', | 18 'gfx', |
| 19 'gfx_resources', |
16 '../skia/skia.gyp:skia', | 20 '../skia/skia.gyp:skia', |
17 '../testing/gtest.gyp:gtest', | 21 '../testing/gtest.gyp:gtest', |
18 ], | 22 ], |
19 'sources': [ | 23 'sources': [ |
20 'blit_unittest.cc', | 24 'blit_unittest.cc', |
21 'codec/jpeg_codec_unittest.cc', | 25 'codec/jpeg_codec_unittest.cc', |
22 'codec/png_codec_unittest.cc', | 26 'codec/png_codec_unittest.cc', |
23 'color_utils_unittest.cc', | 27 'color_utils_unittest.cc', |
24 'font_unittest.cc', | 28 'font_unittest.cc', |
25 'insets_unittest.cc', | 29 'insets_unittest.cc', |
26 'rect_unittest.cc', | 30 'rect_unittest.cc', |
27 'run_all_unittests.cc', | 31 'run_all_unittests.cc', |
28 'skbitmap_operations_unittest.cc', | 32 'skbitmap_operations_unittest.cc', |
29 'test_suite.h', | 33 'test_suite.h', |
| 34 '<(SHARED_INTERMEDIATE_DIR)/gfx/gfx_resources.rc', |
30 ], | 35 ], |
31 'include_dirs': [ | 36 'include_dirs': [ |
32 '..', | 37 '..', |
33 ], | 38 ], |
34 'conditions': [ | 39 'conditions': [ |
35 ['OS=="win"', { | 40 ['OS=="win"', { |
36 'sources': [ | 41 'sources': [ |
37 'canvas_direct2d_unittest.cc', | 42 'canvas_direct2d_unittest.cc', |
38 'icon_util_unittest.cc', | 43 'icon_util_unittest.cc', |
39 'native_theme_win_unittest.cc', | 44 'native_theme_win_unittest.cc', |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 'sources': [ | 153 'sources': [ |
149 'font_skia.cc', | 154 'font_skia.cc', |
150 'gtk_native_view_id_manager.cc', | 155 'gtk_native_view_id_manager.cc', |
151 'gtk_native_view_id_manager.h', | 156 'gtk_native_view_id_manager.h', |
152 'gtk_util.cc', | 157 'gtk_util.cc', |
153 'gtk_util.h', | 158 'gtk_util.h', |
154 'native_widget_types_gtk.cc', | 159 'native_widget_types_gtk.cc', |
155 ], | 160 ], |
156 }], | 161 }], |
157 ], | 162 ], |
158 }, | 163 }, |
| 164 { |
| 165 # theme_resources also generates a .cc file, so it can't use the rules abo
ve. |
| 166 'target_name': 'gfx_resources', |
| 167 'type': 'none', |
| 168 'msvs_guid' : '5738AE53-E919-4987-A2EF-15FDBD8F90F6', |
| 169 'actions': [ |
| 170 { |
| 171 'action_name': 'gfx_resources', |
| 172 'variables': { |
| 173 'input_path': 'gfx_resources.grd', |
| 174 }, |
| 175 'inputs': [ |
| 176 '<!@(<(grit_info_cmd) --inputs <(input_path))', |
| 177 ], |
| 178 'outputs': [ |
| 179 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(input_path))', |
| 180 ], |
| 181 'action': [ |
| 182 '<@(grit_cmd)', |
| 183 '-i', '<(input_path)', 'build', |
| 184 '-o', '<(grit_out_dir)', |
| 185 ], |
| 186 'conditions': [ |
| 187 ['use_titlecase_in_grd_files==1', { |
| 188 'action': ['-D', 'use_titlecase'], |
| 189 }], |
| 190 ], |
| 191 'message': 'Generating resources from <(input_path)', |
| 192 }, |
| 193 ], |
| 194 'direct_dependent_settings': { |
| 195 'include_dirs': [ |
| 196 '<(grit_out_dir)', |
| 197 ], |
| 198 }, |
| 199 'conditions': [ |
| 200 ['OS=="win"', { |
| 201 'dependencies': ['../build/win/system.gyp:cygwin'], |
| 202 }], |
| 203 ], |
| 204 }, |
| 205 |
159 ], | 206 ], |
160 } | 207 } |
161 | 208 |
162 # Local Variables: | 209 # Local Variables: |
163 # tab-width:2 | 210 # tab-width:2 |
164 # indent-tabs-mode:nil | 211 # indent-tabs-mode:nil |
165 # End: | 212 # End: |
166 # vim: set expandtab tabstop=2 shiftwidth=2: | 213 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |