Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: pylib/gyp/generator/msvs.py

Issue 115922: Add a generic way for generator info to get passed to input to affect process... (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pylib/gyp/__init__.py ('k') | pylib/gyp/generator/scons.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 3
4 import os 4 import os
5 import re 5 import re
6 import subprocess 6 import subprocess
7 import sys 7 import sys
8 import gyp.common 8 import gyp.common
9 import gyp.MSVSNew as MSVSNew 9 import gyp.MSVSNew as MSVSNew
10 import gyp.MSVSToolFile as MSVSToolFile 10 import gyp.MSVSToolFile as MSVSToolFile
11 import gyp.MSVSProject as MSVSProject 11 import gyp.MSVSProject as MSVSProject
12 import gyp.MSVSVersion as MSVSVersion 12 import gyp.MSVSVersion as MSVSVersion
13 13
14 14
15 generator_default_variables = { 15 generator_default_variables = {
16 'EXECUTABLE_PREFIX': '', 16 'EXECUTABLE_PREFIX': '',
17 'EXECUTABLE_SUFFIX': '.exe', 17 'EXECUTABLE_SUFFIX': '.exe',
18 'INTERMEDIATE_DIR': '$(IntDir)', 18 'INTERMEDIATE_DIR': '$(IntDir)',
19 'SHARED_INTERMEDIATE_DIR': '$(OutDir)/obj/global_intermediate', 19 'SHARED_INTERMEDIATE_DIR': '$(OutDir)/obj/global_intermediate',
20 'OS': 'win', 20 'OS': 'win',
21 'PRODUCT_DIR': '$(OutDir)', 21 'PRODUCT_DIR': '$(OutDir)',
22 'RULE_INPUT_ROOT': '$(InputName)', 22 'RULE_INPUT_ROOT': '$(InputName)',
23 'RULE_INPUT_EXT': '$(InputExt)', 23 'RULE_INPUT_EXT': '$(InputExt)',
24 'RULE_INPUT_NAME': '$(InputFileName)', 24 'RULE_INPUT_NAME': '$(InputFileName)',
25 'RULE_INPUT_PATH': '$(InputPath)', 25 'RULE_INPUT_PATH': '$(InputPath)',
26 } 26 }
27 27
28 # The msvs specific sections that hold paths
29 generator_additional_path_sections = [
30 'msvs_cygwin_dirs',
31 'msvs_props',
32 ]
28 33
29 def _FixPath(path): 34 def _FixPath(path):
30 """Convert paths to a form that will make sense in a vcproj file. 35 """Convert paths to a form that will make sense in a vcproj file.
31 36
32 Arguments: 37 Arguments:
33 path: The path to convert, may contain / etc. 38 path: The path to convert, may contain / etc.
34 Returns: 39 Returns:
35 The path with all slashes made into backslashes. 40 The path with all slashes made into backslashes.
36 """ 41 """
37 return path.replace('/', '\\') 42 return path.replace('/', '\\')
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 _ProjectObject(sln_path, p, project_objs, projects) 853 _ProjectObject(sln_path, p, project_objs, projects)
849 # Create folder hierarchy. 854 # Create folder hierarchy.
850 root_entries = _GatherSolutionFolders(project_objs) 855 root_entries = _GatherSolutionFolders(project_objs)
851 # Create solution. 856 # Create solution.
852 sln = MSVSNew.MSVSSolution(sln_path, 857 sln = MSVSNew.MSVSSolution(sln_path,
853 entries=root_entries, 858 entries=root_entries,
854 variants=configs, 859 variants=configs,
855 websiteProperties=False, 860 websiteProperties=False,
856 version=msvs_version) 861 version=msvs_version)
857 sln.Write() 862 sln.Write()
OLDNEW
« no previous file with comments | « pylib/gyp/__init__.py ('k') | pylib/gyp/generator/scons.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698