OLD | NEW |
1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2012 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 # We never need to explicitly depend on previous target's link steps, | 418 # We never need to explicitly depend on previous target's link steps, |
419 # because no compile ever depends on them. | 419 # because no compile ever depends on them. |
420 compile_depends_stamp = (self.target.actions_stamp or compile_depends) | 420 compile_depends_stamp = (self.target.actions_stamp or compile_depends) |
421 | 421 |
422 # Write out the compilation steps, if any. | 422 # Write out the compilation steps, if any. |
423 link_deps = [] | 423 link_deps = [] |
424 sources = spec.get('sources', []) + extra_sources | 424 sources = spec.get('sources', []) + extra_sources |
425 if sources: | 425 if sources: |
426 pch = None | 426 pch = None |
427 if self.flavor == 'win': | 427 if self.flavor == 'win': |
| 428 gyp.msvs_emulation.VerifyMissingSources( |
| 429 sources, self.abs_build_dir, generator_flags, self.GypPathToNinja) |
428 pch = gyp.msvs_emulation.PrecompiledHeader( | 430 pch = gyp.msvs_emulation.PrecompiledHeader( |
429 self.msvs_settings, config_name, self.GypPathToNinja) | 431 self.msvs_settings, config_name, self.GypPathToNinja) |
430 else: | 432 else: |
431 pch = gyp.xcode_emulation.MacPrefixHeader( | 433 pch = gyp.xcode_emulation.MacPrefixHeader( |
432 self.xcode_settings, self.GypPathToNinja, | 434 self.xcode_settings, self.GypPathToNinja, |
433 lambda path, lang: self.GypPathToUniqueOutput(path + '-' + lang)) | 435 lambda path, lang: self.GypPathToUniqueOutput(path + '-' + lang)) |
434 link_deps = self.WriteSources( | 436 link_deps = self.WriteSources( |
435 config_name, config, sources, compile_depends_stamp, pch, | 437 config_name, config, sources, compile_depends_stamp, pch, |
436 case_sensitive_filesystem) | 438 case_sensitive_filesystem) |
437 # Some actions/rules output 'sources' that are already object files. | 439 # Some actions/rules output 'sources' that are already object files. |
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1778 arglists.append( | 1780 arglists.append( |
1779 (target_list, target_dicts, data, params, config_name)) | 1781 (target_list, target_dicts, data, params, config_name)) |
1780 pool.map(CallGenerateOutputForConfig, arglists) | 1782 pool.map(CallGenerateOutputForConfig, arglists) |
1781 except KeyboardInterrupt, e: | 1783 except KeyboardInterrupt, e: |
1782 pool.terminate() | 1784 pool.terminate() |
1783 raise e | 1785 raise e |
1784 else: | 1786 else: |
1785 for config_name in config_names: | 1787 for config_name in config_names: |
1786 GenerateOutputForConfig(target_list, target_dicts, data, params, | 1788 GenerateOutputForConfig(target_list, target_dicts, data, params, |
1787 config_name) | 1789 config_name) |
OLD | NEW |