OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import os | |
6 | |
7 Import('env') | |
8 | |
9 env = env.Clone() | |
10 | |
11 grd_files = [ | |
12 '$CHROME_SRC_DIR/chrome/browser/browser_resources.grd', | |
13 '$CHROME_SRC_DIR/chrome/browser/debugger/resources/debugger_resources.grd', | |
14 '$CHROME_SRC_DIR/chrome/common/common_resources.grd', | |
15 '$CHROME_SRC_DIR/chrome/renderer/renderer_resources.grd', | |
16 ] | |
17 | |
18 for grd_file in grd_files: | |
19 # The fake target gets replaced with real targets when the GRIT Builder | |
20 # runs. | |
21 generated = env.GRIT( | |
22 '$TARGET_ROOT/grit_derived_sources/fake_' + os.path.basename(grd_file), | |
23 grd_file) | |
24 | |
25 if env.Bit('linux'): | |
26 chrome_pak = env.Repack('$TARGET_ROOT/chrome.pak', | |
27 ['$TARGET_ROOT/grit_derived_sources/browser_resources.pak', | |
28 '$TARGET_ROOT/grit_derived_sources/debugger_resources.pak', | |
29 '$TARGET_ROOT/grit_derived_sources/common_resources.pak', | |
30 '$TARGET_ROOT/grit_derived_sources/net_resources.pak', | |
31 '$TARGET_ROOT/grit_derived_sources/renderer_resources.pak', | |
32 '$TARGET_ROOT/grit_derived_sources/webkit_resources.pak', | |
33 ] | |
34 ) | |
35 i = env.Install('$DESTINATION_ROOT', chrome_pak) | |
36 env.Requires('$DESTINATION_ROOT/chrome', i) | |
37 env.Requires('$DESTINATION_ROOT/unit_tests', i) | |
OLD | NEW |