| OLD | NEW |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 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 import os | 5 import os |
| 6 | 6 |
| 7 Import(['env']) | 7 Import(['env']) |
| 8 | 8 |
| 9 env_res = env.Clone() | 9 env_res = env.Clone() |
| 10 env_test = env.Clone() | 10 env_test = env.Clone() |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 common_res, | 54 common_res, |
| 55 debugger_res, | 55 debugger_res, |
| 56 net_res, | 56 net_res, |
| 57 renderer_res, | 57 renderer_res, |
| 58 webkit_res, | 58 webkit_res, |
| 59 ] | 59 ] |
| 60 | 60 |
| 61 ############################################################################## | 61 ############################################################################## |
| 62 # TODO(sgk): move to separate .scons file for generated_resources ########### | 62 # TODO(sgk): move to separate .scons file for generated_resources ########### |
| 63 | 63 |
| 64 # TODO(sgk): make a pseudo-Builder for these | |
| 65 import sys | |
| 66 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath) | |
| 67 | |
| 68 env_grd = env.Clone() | 64 env_grd = env.Clone() |
| 69 env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')]) | 65 env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')]) |
| 70 | 66 |
| 71 # NOTE: fake target gets replaced with real targets from reading .grd | 67 # NOTE: fake target gets replaced with real targets from reading .grd |
| 72 generated = env_grd.GRIT( | 68 generated = env_grd.GRIT( |
| 73 '$TARGET_ROOT/grit_derived_sources/fake_generated_target', | 69 '$TARGET_ROOT/grit_derived_sources/fake_generated_target', |
| 74 '$CHROME_SRC_DIR/chrome/app/generated_resources.grd') | 70 '$CHROME_SRC_DIR/chrome/app/generated_resources.grd') |
| 75 grit_files.extend(generated) | 71 grit_files.extend(generated) |
| 76 | 72 |
| 77 # NOTE: fake target gets replaced with real targets from reading .grd | 73 # NOTE: fake target gets replaced with real targets from reading .grd |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 ] | 772 ] |
| 777 | 773 |
| 778 # TODO(port) | 774 # TODO(port) |
| 779 if env.Bit('windows'): | 775 if env.Bit('windows'): |
| 780 env.Install('$DESTINATION_ROOT/plugins/gears', gears_plugins) | 776 env.Install('$DESTINATION_ROOT/plugins/gears', gears_plugins) |
| 781 | 777 |
| 782 env.Command('$DESTINATION_ROOT/resources/inspector', | 778 env.Command('$DESTINATION_ROOT/resources/inspector', |
| 783 '$CHROME_SRC_DIR/third_party/WebKit/WebCore/inspector/front-end', | 779 '$CHROME_SRC_DIR/third_party/WebKit/WebCore/inspector/front-end', |
| 784 Copy('$TARGET', '$SOURCE'), | 780 Copy('$TARGET', '$SOURCE'), |
| 785 source_scanner=DirScanner) | 781 source_scanner=DirScanner) |
| OLD | NEW |