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

Side by Side Diff: pylib/gyp/generator/xcode.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/generator/scons.py ('k') | pylib/gyp/input.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 import filecmp 3 import filecmp
4 import gyp.common 4 import gyp.common
5 import gyp.xcodeproj_file 5 import gyp.xcodeproj_file
6 import errno 6 import errno
7 import os 7 import os
8 import posixpath 8 import posixpath
9 import pprint 9 import pprint
10 import re 10 import re
(...skipping 28 matching lines...) Expand all
39 'INTERMEDIATE_DIR': '$(%s)' % _intermediate_var, 39 'INTERMEDIATE_DIR': '$(%s)' % _intermediate_var,
40 'OS': 'mac', 40 'OS': 'mac',
41 'PRODUCT_DIR': '$(BUILT_PRODUCTS_DIR)', 41 'PRODUCT_DIR': '$(BUILT_PRODUCTS_DIR)',
42 'RULE_INPUT_ROOT': '$(INPUT_FILE_BASE)', 42 'RULE_INPUT_ROOT': '$(INPUT_FILE_BASE)',
43 'RULE_INPUT_EXT': '$(INPUT_FILE_SUFFIX)', 43 'RULE_INPUT_EXT': '$(INPUT_FILE_SUFFIX)',
44 'RULE_INPUT_NAME': '$(INPUT_FILE_NAME)', 44 'RULE_INPUT_NAME': '$(INPUT_FILE_NAME)',
45 'RULE_INPUT_PATH': '$(INPUT_FILE_PATH)', 45 'RULE_INPUT_PATH': '$(INPUT_FILE_PATH)',
46 'SHARED_INTERMEDIATE_DIR': '$(%s)' % _shared_intermediate_var, 46 'SHARED_INTERMEDIATE_DIR': '$(%s)' % _shared_intermediate_var,
47 } 47 }
48 48
49 # The xcode specific sections that hold paths
50 generator_additional_path_sections = [
51 'mac_bundle_resources',
52 # 'mac_framework_dirs', input already handles _dirs endings.
53 ]
54
55 # The xcode specific keys that exist on targets and aren't moved down to
56 # configurations.
57 generator_additional_non_configuration_keys = [
58 'mac_bundle',
59 'mac_bundle_resources',
60 'xcode_create_dependents_test_runner',
61 ]
49 62
50 class XcodeProject(object): 63 class XcodeProject(object):
51 def __init__(self, gyp_path, path, build_file_dict): 64 def __init__(self, gyp_path, path, build_file_dict):
52 self.gyp_path = gyp_path 65 self.gyp_path = gyp_path
53 self.path = path 66 self.path = path
54 self.project = gyp.xcodeproj_file.PBXProject(path=path) 67 self.project = gyp.xcodeproj_file.PBXProject(path=path)
55 self.project_file = \ 68 self.project_file = \
56 gyp.xcodeproj_file.XCProjectFile({'rootObject': self.project}) 69 gyp.xcodeproj_file.XCProjectFile({'rootObject': self.project})
57 self.build_file_dict = build_file_dict 70 self.build_file_dict = build_file_dict
58 71
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 992
980 for build_file in build_files: 993 for build_file in build_files:
981 xcode_projects[build_file].Finalize1(xcode_targets) 994 xcode_projects[build_file].Finalize1(xcode_targets)
982 995
983 for build_file in build_files: 996 for build_file in build_files:
984 xcode_projects[build_file].Finalize2(xcode_targets, 997 xcode_projects[build_file].Finalize2(xcode_targets,
985 xcode_target_to_target_dict) 998 xcode_target_to_target_dict)
986 999
987 for build_file in build_files: 1000 for build_file in build_files:
988 xcode_projects[build_file].Write() 1001 xcode_projects[build_file].Write()
OLDNEW
« no previous file with comments | « pylib/gyp/generator/scons.py ('k') | pylib/gyp/input.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698