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

Side by Side Diff: pylib/gyp/xcodeproj_file.py

Issue 376603002: This CL adds support for extension in GYP. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: oops Created 6 years, 5 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
« no previous file with comments | « pylib/gyp/xcode_ninja.py ('k') | test/ios/extension/ActionExtension/ActionViewController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 """Xcode project file generator. 5 """Xcode project file generator.
6 6
7 This module is both an Xcode project file generator and a documentation of the 7 This module is both an Xcode project file generator and a documentation of the
8 Xcode project file format. Knowledge of the project file format was gained 8 Xcode project file format. Knowledge of the project file format was gained
9 based on extensive experience with Xcode, and by making changes to projects in 9 based on extensive experience with Xcode, and by making changes to projects in
10 Xcode.app and observing the resultant changes in the associated project files. 10 Xcode.app and observing the resultant changes in the associated project files.
(...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after
2230 'buildPhases': [1, XCBuildPhase, 1, 1, 2230 'buildPhases': [1, XCBuildPhase, 1, 1,
2231 [PBXSourcesBuildPhase(), PBXFrameworksBuildPhase()]], 2231 [PBXSourcesBuildPhase(), PBXFrameworksBuildPhase()]],
2232 'buildRules': [1, PBXBuildRule, 1, 1, []], 2232 'buildRules': [1, PBXBuildRule, 1, 1, []],
2233 'productReference': [0, PBXFileReference, 0, 1], 2233 'productReference': [0, PBXFileReference, 0, 1],
2234 'productType': [0, str, 0, 1], 2234 'productType': [0, str, 0, 1],
2235 }) 2235 })
2236 2236
2237 # Mapping from Xcode product-types to settings. The settings are: 2237 # Mapping from Xcode product-types to settings. The settings are:
2238 # filetype : used for explicitFileType in the project file 2238 # filetype : used for explicitFileType in the project file
2239 # prefix : the prefix for the file name 2239 # prefix : the prefix for the file name
2240 # suffix : the suffix for the filen ame 2240 # suffix : the suffix for the file name
2241 _product_filetypes = { 2241 _product_filetypes = {
2242 'com.apple.product-type.application': ['wrapper.application', 2242 'com.apple.product-type.application': ['wrapper.application',
2243 '', '.app'], 2243 '', '.app'],
2244 'com.apple.product-type.app-extension': ['wrapper.app-extension',
2245 '', '.appex'],
2244 'com.apple.product-type.bundle': ['wrapper.cfbundle', 2246 'com.apple.product-type.bundle': ['wrapper.cfbundle',
2245 '', '.bundle'], 2247 '', '.bundle'],
2246 'com.apple.product-type.framework': ['wrapper.framework', 2248 'com.apple.product-type.framework': ['wrapper.framework',
2247 '', '.framework'], 2249 '', '.framework'],
2248 'com.apple.product-type.library.dynamic': ['compiled.mach-o.dylib', 2250 'com.apple.product-type.library.dynamic': ['compiled.mach-o.dylib',
2249 'lib', '.dylib'], 2251 'lib', '.dylib'],
2250 'com.apple.product-type.library.static': ['archive.ar', 2252 'com.apple.product-type.library.static': ['archive.ar',
2251 'lib', '.a'], 2253 'lib', '.a'],
2252 'com.apple.product-type.tool': ['compiled.mach-o.executable', 2254 'com.apple.product-type.tool': ['compiled.mach-o.executable',
2253 '', ''], 2255 '', ''],
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
2880 self._XCPrint(file, 0, '/* Begin ' + class_name + ' section */\n') 2882 self._XCPrint(file, 0, '/* Begin ' + class_name + ' section */\n')
2881 for object in sorted(objects_by_class[class_name], 2883 for object in sorted(objects_by_class[class_name],
2882 cmp=lambda x, y: cmp(x.id, y.id)): 2884 cmp=lambda x, y: cmp(x.id, y.id)):
2883 object.Print(file) 2885 object.Print(file)
2884 self._XCPrint(file, 0, '/* End ' + class_name + ' section */\n') 2886 self._XCPrint(file, 0, '/* End ' + class_name + ' section */\n')
2885 2887
2886 if self._should_print_single_line: 2888 if self._should_print_single_line:
2887 self._XCPrint(file, 0, '}; ') 2889 self._XCPrint(file, 0, '}; ')
2888 else: 2890 else:
2889 self._XCPrint(file, 1, '};\n') 2891 self._XCPrint(file, 1, '};\n')
OLDNEW
« no previous file with comments | « pylib/gyp/xcode_ninja.py ('k') | test/ios/extension/ActionExtension/ActionViewController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698