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 import shutil | 6 import shutil |
7 import sys | 7 import sys |
8 | 8 |
9 | 9 |
10 p = ARGUMENTS.get('PROGRESS') | 10 p = ARGUMENTS.get('PROGRESS') |
11 if p == 'spinner': | 11 if p == 'spinner': |
12 Progress(['/\r', '|\r', '\\\r', '-\r'], interval=5, file=open('con', 'w')) | 12 Progress(['/\r', '|\r', '\\\r', '-\r'], interval=5, file=open('con', 'w')) |
13 elif p == 'name': | 13 elif p == 'name': |
14 Progress('$TARGET\r', overwrite=True, file=open('con', 'w')) | 14 Progress('$TARGET\r', overwrite=True, file=open('con', 'w')) |
15 | 15 |
16 | 16 |
17 default_warnings = ['no-missing-sconscript', 'no-no-parallel-support'] | 17 default_warnings = ['no-missing-sconscript', 'no-no-parallel-support'] |
18 default_warnings = ['no-no-parallel-support'] | 18 default_warnings = ['no-no-parallel-support'] |
19 SetOption('warn', default_warnings + GetOption('warn')) | 19 SetOption('warn', default_warnings + GetOption('warn')) |
20 | 20 |
21 | 21 |
| 22 chrome_build_type = ARGUMENTS.get('CHROME_BUILD_TYPE') |
| 23 if chrome_build_type is None: |
| 24 chrome_build_type = os.environ.get('CHROME_BUILD_TYPE', ''), |
| 25 |
| 26 chromium_build = ARGUMENTS.get('CHROMIUM_BUILD') |
| 27 if chromium_build is None: |
| 28 chromium_build = os.environ.get('CHROMIUM_BUILD', ''), |
| 29 |
| 30 |
22 root_env = Environment( | 31 root_env = Environment( |
23 tools = ['component_setup', | 32 tools = ['component_setup', |
24 'chromium_builders', | 33 'chromium_builders', |
25 'chromium_load_component'], | 34 'chromium_load_component'], |
26 | 35 |
27 # Requested list of system (shared) libraries, from the comma separated | 36 # Requested list of system (shared) libraries, from the comma separated |
28 # SYSTEM_LIBS command-line argument | 37 # SYSTEM_LIBS command-line argument |
29 req_system_libs = [], | 38 req_system_libs = [], |
30 # All supported system libraries, for the help message | 39 # All supported system libraries, for the help message |
31 all_system_libs = [], | 40 all_system_libs = [], |
32 | 41 |
33 CHROME_BUILD_TYPE = os.environ.get('CHROME_BUILD_TYPE', ''), | 42 CHROME_BUILD_TYPE = chrome_build_type, |
34 CHROMIUM_BUILD = os.environ.get('CHROMIUM_BUILD', ''), | 43 CHROMIUM_BUILD = chromium_build, |
35 | 44 |
36 CHROME_SRC_DIR = '$MAIN_DIR/..', | 45 CHROME_SRC_DIR = '$MAIN_DIR/..', |
37 DESTINATION_ROOT = '$MAIN_DIR/Hammer', | 46 DESTINATION_ROOT = '$MAIN_DIR/Hammer', |
38 | 47 |
39 # Where ComponentTestProgram() will build test executables. | 48 # Where ComponentTestProgram() will build test executables. |
40 TESTS_DIR = '$DESTINATION_ROOT', | 49 TESTS_DIR = '$DESTINATION_ROOT', |
41 | 50 |
42 # Where ComponentProgram() will build program executables. | 51 # Where ComponentProgram() will build program executables. |
43 STAGING_DIR = '$DESTINATION_ROOT', | 52 STAGING_DIR = '$DESTINATION_ROOT', |
44 | 53 |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 'all_libraries', | 685 'all_libraries', |
677 'all_languages', | 686 'all_languages', |
678 'all_programs', | 687 'all_programs', |
679 'all_test_programs', | 688 'all_test_programs', |
680 ], projects = [p], | 689 ], projects = [p], |
681 COMPONENT_VS_PROJECT_SCRIPT_PATH=( | 690 COMPONENT_VS_PROJECT_SCRIPT_PATH=( |
682 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), | 691 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), |
683 ) | 692 ) |
684 | 693 |
685 # ------------------------------------------------------------------------- | 694 # ------------------------------------------------------------------------- |
OLD | NEW |