OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { | 5 'variables': { |
6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', | 6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', |
7 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'], | 7 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'], |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 'action_name': 'platform_locale_settings', | 179 'action_name': 'platform_locale_settings', |
180 'variables': { | 180 'variables': { |
181 'grit_grd_file': '<(platform_locale_settings_grd)', | 181 'grit_grd_file': '<(platform_locale_settings_grd)', |
182 }, | 182 }, |
183 'includes': [ '../build/grit_action.gypi' ], | 183 'includes': [ '../build/grit_action.gypi' ], |
184 }, | 184 }, |
185 ], | 185 ], |
186 'includes': [ '../build/grit_target.gypi' ], | 186 'includes': [ '../build/grit_target.gypi' ], |
187 }, | 187 }, |
188 { | 188 { |
189 'target_name': 'theme_resources', | 189 'target_name': 'theme_resources_gen', |
190 'type': 'none', | 190 'type': 'none', |
191 'actions': [ | 191 'actions': [ |
192 { | 192 { |
193 'action_name': 'theme_resources', | 193 'action_name': 'theme_resources', |
194 'variables': { | 194 'variables': { |
195 'grit_grd_file': 'app/theme/theme_resources.grd', | 195 'grit_grd_file': 'app/theme/theme_resources.grd', |
196 }, | 196 }, |
197 'includes': [ '../build/grit_action.gypi' ], | 197 'includes': [ '../build/grit_action.gypi' ], |
198 }, | 198 }, |
199 { | 199 { |
200 'action_name': 'theme_resources_2x', | 200 'action_name': 'theme_resources_2x', |
201 'variables': { | 201 'variables': { |
202 'grit_grd_file': 'app/theme/theme_resources_2x.grd', | 202 'grit_grd_file': 'app/theme/theme_resources_2x.grd', |
203 }, | 203 }, |
204 'includes': [ '../build/grit_action.gypi' ], | 204 'includes': [ '../build/grit_action.gypi' ], |
205 }, | 205 }, |
206 { | 206 { |
207 'action_name': 'theme_resources_standard', | 207 'action_name': 'theme_resources_standard', |
208 'variables': { | 208 'variables': { |
209 'grit_grd_file': 'app/theme/theme_resources_standard.grd', | 209 'grit_grd_file': 'app/theme/theme_resources_standard.grd', |
210 }, | 210 }, |
211 'includes': [ '../build/grit_action.gypi' ], | 211 'includes': [ '../build/grit_action.gypi' ], |
212 }, | 212 }, |
213 ], | 213 ], |
214 'includes': [ '../build/grit_target.gypi' ], | 214 'includes': [ '../build/grit_target.gypi' ], |
215 }, | 215 }, |
216 { | 216 { |
| 217 'target_name': 'theme_resources', |
| 218 'type': 'none', |
| 219 'dependencies': [ |
| 220 'theme_resources_gen', |
| 221 '<(DEPTH)/ui/ui.gyp:ui_resources_2x', |
| 222 '<(DEPTH)/ui/ui.gyp:ui_resources_standard', |
| 223 ], |
| 224 'conditions': [ |
| 225 ['OS != "mac"', { |
| 226 # Copy pak files to the product directory. These files will be picked |
| 227 # up by the following installer scripts: |
| 228 # - Windows: chrome/installer/mini_installer/chrome.release |
| 229 # - Linux: chrome/installer/linux/internal/common/installer.include |
| 230 # Ensure that the above scripts are updated when adding or removing |
| 231 # pak files. |
| 232 # Coping files to the product directory is not needed on the Mac |
| 233 # since the framework build phase will copy them into the framework |
| 234 # bundle directly. |
| 235 'copies': [ |
| 236 { |
| 237 'destination': '<(PRODUCT_DIR)', |
| 238 'files': [ |
| 239 '<(grit_out_dir)/theme_resources_standard.pak', |
| 240 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resource
s_standard.pak', |
| 241 ], |
| 242 }, |
| 243 ], |
| 244 }], |
| 245 ['OS != "mac" and enable_hidpi == 1', { |
| 246 'copies': [ |
| 247 { |
| 248 'destination': '<(PRODUCT_DIR)', |
| 249 'files': [ |
| 250 '<(grit_out_dir)/theme_resources_2x.pak', |
| 251 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_2x/ui_resources_2x.p
ak', |
| 252 ], |
| 253 }, |
| 254 ], |
| 255 }], |
| 256 ], |
| 257 }, |
| 258 { |
217 'target_name': 'packed_extra_resources', | 259 'target_name': 'packed_extra_resources', |
218 'type': 'none', | 260 'type': 'none', |
219 'variables': { | 261 'variables': { |
220 'repack_path': '../tools/grit/grit/format/repack.py', | 262 'repack_path': '../tools/grit/grit/format/repack.py', |
221 }, | 263 }, |
222 'dependencies': [ | 264 'dependencies': [ |
223 'chrome_extra_resources', | 265 'chrome_extra_resources', |
224 ], | 266 ], |
225 'actions': [ | 267 'actions': [ |
226 { | 268 { |
(...skipping 28 matching lines...) Expand all Loading... |
255 'chrome_strings', | 297 'chrome_strings', |
256 'platform_locale_settings', | 298 'platform_locale_settings', |
257 'theme_resources', | 299 'theme_resources', |
258 # TODO(zork): Protect this with if use_aura==1 | 300 # TODO(zork): Protect this with if use_aura==1 |
259 '<(DEPTH)/ash/ash_strings.gyp:ash_strings', | 301 '<(DEPTH)/ash/ash_strings.gyp:ash_strings', |
260 '<(DEPTH)/content/content_resources.gyp:content_resources', | 302 '<(DEPTH)/content/content_resources.gyp:content_resources', |
261 '<(DEPTH)/net/net.gyp:net_resources', | 303 '<(DEPTH)/net/net.gyp:net_resources', |
262 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', | 304 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', |
263 '<(DEPTH)/ui/ui.gyp:gfx_resources', | 305 '<(DEPTH)/ui/ui.gyp:gfx_resources', |
264 '<(DEPTH)/ui/ui.gyp:ui_resources', | 306 '<(DEPTH)/ui/ui.gyp:ui_resources', |
265 '<(DEPTH)/ui/ui.gyp:ui_resources_2x', | |
266 '<(DEPTH)/ui/ui.gyp:ui_resources_standard', | |
267 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources', | 307 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources', |
268 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings', | 308 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings', |
269 ], | 309 ], |
270 'actions': [ | 310 'actions': [ |
271 { | 311 { |
272 'includes': ['chrome_repack_chrome.gypi'] | 312 'includes': ['chrome_repack_chrome.gypi'] |
273 }, | 313 }, |
274 { | 314 { |
275 'includes': ['chrome_repack_locales.gypi'] | 315 'includes': ['chrome_repack_locales.gypi'] |
276 }, | 316 }, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 'files': ['<@(default_apps_list)'] | 355 'files': ['<@(default_apps_list)'] |
316 }, | 356 }, |
317 ], | 357 ], |
318 }], | 358 }], |
319 ], # conditions | 359 ], # conditions |
320 }], # end OS != "mac" | 360 }], # end OS != "mac" |
321 ], # conditions | 361 ], # conditions |
322 }, | 362 }, |
323 ], # targets | 363 ], # targets |
324 } | 364 } |
OLD | NEW |