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 multiprocessing | 7 import multiprocessing |
8 import os.path | 8 import os.path |
9 import re | 9 import re |
10 import signal | 10 import signal |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 arch = self.msvs_settings.GetArch(config_name) | 389 arch = self.msvs_settings.GetArch(config_name) |
390 self.ninja.variable('arch', self.win_env[arch]) | 390 self.ninja.variable('arch', self.win_env[arch]) |
391 self.ninja.variable('cc', '$cl_' + arch) | 391 self.ninja.variable('cc', '$cl_' + arch) |
392 self.ninja.variable('cxx', '$cl_' + arch) | 392 self.ninja.variable('cxx', '$cl_' + arch) |
393 | 393 |
394 if self.flavor == 'mac': | 394 if self.flavor == 'mac': |
395 self.archs = self.xcode_settings.GetActiveArchs(config_name) | 395 self.archs = self.xcode_settings.GetActiveArchs(config_name) |
396 if len(self.archs) > 1: | 396 if len(self.archs) > 1: |
397 self.arch_subninjas = dict( | 397 self.arch_subninjas = dict( |
398 (arch, ninja_syntax.Writer( | 398 (arch, ninja_syntax.Writer( |
399 open(os.path.join(self.toplevel_build, | 399 OpenOutput(os.path.join(self.toplevel_build, |
400 self._SubninjaNameForArch(arch)), | 400 self._SubninjaNameForArch(arch)), |
401 'w'))) | 401 'w'))) |
402 for arch in self.archs) | 402 for arch in self.archs) |
403 | 403 |
404 # Compute predepends for all rules. | 404 # Compute predepends for all rules. |
405 # actions_depends is the dependencies this target depends on before running | 405 # actions_depends is the dependencies this target depends on before running |
406 # any of its action/rule/copy steps. | 406 # any of its action/rule/copy steps. |
407 # compile_depends is the dependencies this target depends on before running | 407 # compile_depends is the dependencies this target depends on before running |
408 # any of its compile steps. | 408 # any of its compile steps. |
409 actions_depends = [] | 409 actions_depends = [] |
410 compile_depends = [] | 410 compile_depends = [] |
411 # TODO(evan): it is rather confusing which things are lists and which | 411 # TODO(evan): it is rather confusing which things are lists and which |
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2126 arglists.append( | 2126 arglists.append( |
2127 (target_list, target_dicts, data, params, config_name)) | 2127 (target_list, target_dicts, data, params, config_name)) |
2128 pool.map(CallGenerateOutputForConfig, arglists) | 2128 pool.map(CallGenerateOutputForConfig, arglists) |
2129 except KeyboardInterrupt, e: | 2129 except KeyboardInterrupt, e: |
2130 pool.terminate() | 2130 pool.terminate() |
2131 raise e | 2131 raise e |
2132 else: | 2132 else: |
2133 for config_name in config_names: | 2133 for config_name in config_names: |
2134 GenerateOutputForConfig(target_list, target_dicts, data, params, | 2134 GenerateOutputForConfig(target_list, target_dicts, data, params, |
2135 config_name) | 2135 config_name) |
OLD | NEW |