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 ntpath | 6 import ntpath |
7 import os | 7 import os |
8 import posixpath | 8 import posixpath |
9 import re | 9 import re |
10 import subprocess | 10 import subprocess |
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 raise Exception( | 1661 raise Exception( |
1662 'Multiple toolsets not supported in msvs build (target %s)' % | 1662 'Multiple toolsets not supported in msvs build (target %s)' % |
1663 qualified_target) | 1663 qualified_target) |
1664 proj_path, fixpath_prefix = _GetPathOfProject(qualified_target, spec, | 1664 proj_path, fixpath_prefix = _GetPathOfProject(qualified_target, spec, |
1665 options, msvs_version) | 1665 options, msvs_version) |
1666 guid = _GetGuidOfProject(proj_path, spec) | 1666 guid = _GetGuidOfProject(proj_path, spec) |
1667 overrides = _GetPlatformOverridesOfProject(spec) | 1667 overrides = _GetPlatformOverridesOfProject(spec) |
1668 build_file = gyp.common.BuildFile(qualified_target) | 1668 build_file = gyp.common.BuildFile(qualified_target) |
1669 # Create object for this project. | 1669 # Create object for this project. |
1670 obj = MSVSNew.MSVSProject( | 1670 obj = MSVSNew.MSVSProject( |
1671 _FixPath(proj_path), | 1671 proj_path, |
1672 name=spec['target_name'], | 1672 name=spec['target_name'], |
1673 guid=guid, | 1673 guid=guid, |
1674 spec=spec, | 1674 spec=spec, |
1675 build_file=build_file, | 1675 build_file=build_file, |
1676 config_platform_overrides=overrides, | 1676 config_platform_overrides=overrides, |
1677 fixpath_prefix=fixpath_prefix) | 1677 fixpath_prefix=fixpath_prefix) |
1678 # Set project toolset if any (MS build only) | 1678 # Set project toolset if any (MS build only) |
1679 if msvs_version.UsesVcxproj(): | 1679 if msvs_version.UsesVcxproj(): |
1680 obj.set_msbuild_toolset( | 1680 obj.set_msbuild_toolset( |
1681 _GetMsbuildToolsetOfProject(proj_path, spec, msvs_version)) | 1681 _GetMsbuildToolsetOfProject(proj_path, spec, msvs_version)) |
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3136 action_spec.extend( | 3136 action_spec.extend( |
3137 # TODO(jeanluc) 'Document' for all or just if as_sources? | 3137 # TODO(jeanluc) 'Document' for all or just if as_sources? |
3138 [['FileType', 'Document'], | 3138 [['FileType', 'Document'], |
3139 ['Command', command], | 3139 ['Command', command], |
3140 ['Message', description], | 3140 ['Message', description], |
3141 ['Outputs', outputs] | 3141 ['Outputs', outputs] |
3142 ]) | 3142 ]) |
3143 if additional_inputs: | 3143 if additional_inputs: |
3144 action_spec.append(['AdditionalInputs', additional_inputs]) | 3144 action_spec.append(['AdditionalInputs', additional_inputs]) |
3145 actions_spec.append(action_spec) | 3145 actions_spec.append(action_spec) |
OLD | NEW |