OLD | NEW |
1 # Copyright (c) 2013 Google Inc. All rights reserved. | 1 # Copyright (c) 2013 Google Inc. 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 copy | 5 import copy |
6 import hashlib | 6 import hashlib |
7 import json | 7 import json |
8 import multiprocessing | 8 import multiprocessing |
9 import os.path | 9 import os.path |
10 import re | 10 import re |
(...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1672 # to cc/cxx. | 1672 # to cc/cxx. |
1673 if flavor == 'win': | 1673 if flavor == 'win': |
1674 # Overridden by local arch choice in the use_deps case. | 1674 # Overridden by local arch choice in the use_deps case. |
1675 # Chromium's ffmpeg c99conv.py currently looks for a 'cc =' line in | 1675 # Chromium's ffmpeg c99conv.py currently looks for a 'cc =' line in |
1676 # build.ninja so needs something valid here. http://crbug.com/233985 | 1676 # build.ninja so needs something valid here. http://crbug.com/233985 |
1677 cc = 'cl.exe' | 1677 cc = 'cl.exe' |
1678 cxx = 'cl.exe' | 1678 cxx = 'cl.exe' |
1679 ld = 'link.exe' | 1679 ld = 'link.exe' |
1680 ld_host = '$ld' | 1680 ld_host = '$ld' |
1681 else: | 1681 else: |
1682 cc = 'gcc' | 1682 cc = 'cc' |
1683 cxx = 'g++' | 1683 cxx = 'c++' |
1684 ld = '$cc' | 1684 ld = '$cc' |
1685 ldxx = '$cxx' | 1685 ldxx = '$cxx' |
1686 ld_host = '$cc_host' | 1686 ld_host = '$cc_host' |
1687 ldxx_host = '$cxx_host' | 1687 ldxx_host = '$cxx_host' |
1688 | 1688 |
1689 cc_host = None | 1689 cc_host = None |
1690 cxx_host = None | 1690 cxx_host = None |
1691 cc_host_global_setting = None | 1691 cc_host_global_setting = None |
1692 cxx_host_global_setting = None | 1692 cxx_host_global_setting = None |
1693 | 1693 |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2141 arglists.append( | 2141 arglists.append( |
2142 (target_list, target_dicts, data, params, config_name)) | 2142 (target_list, target_dicts, data, params, config_name)) |
2143 pool.map(CallGenerateOutputForConfig, arglists) | 2143 pool.map(CallGenerateOutputForConfig, arglists) |
2144 except KeyboardInterrupt, e: | 2144 except KeyboardInterrupt, e: |
2145 pool.terminate() | 2145 pool.terminate() |
2146 raise e | 2146 raise e |
2147 else: | 2147 else: |
2148 for config_name in config_names: | 2148 for config_name in config_names: |
2149 GenerateOutputForConfig(target_list, target_dicts, data, params, | 2149 GenerateOutputForConfig(target_list, target_dicts, data, params, |
2150 config_name) | 2150 config_name) |
OLD | NEW |