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

Unified Diff: trunk/pylib/gyp/generator/xcode.py

Issue 2859021: Make loadable_modules without mac_bundle buildable (Closed) Base URL: http://gyp.googlecode.com/svn/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/pylib/gyp/xcodeproj_file.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/pylib/gyp/generator/xcode.py
===================================================================
--- trunk/pylib/gyp/generator/xcode.py (revision 830)
+++ trunk/pylib/gyp/generator/xcode.py (working copy)
@@ -597,11 +597,14 @@
# supplied.
xccl = CreateXCConfigurationList(configuration_names)
- # Create an XCTarget subclass object for the target. We use the type
- # with "+bundle" appended if the target has "mac_bundle" set.
+ # Create an XCTarget subclass object for the target. The type with
+ # "+bundle" appended will be used if the target has "mac_bundle" set.
+ # loadable_modules not in a mac_bundle are mapped to
+ # com.googlecode.gyp.xcode.bundle, a pseudo-type that xcode.py interprets
+ # to create a single-file mh_bundle.
_types = {
'executable': 'com.apple.product-type.tool',
- 'loadable_module': 'com.apple.product-type.library.dynamic',
+ 'loadable_module': 'com.googlecode.gyp.xcode.bundle',
'shared_library': 'com.apple.product-type.library.dynamic',
'static_library': 'com.apple.product-type.library.static',
'executable+bundle': 'com.apple.product-type.application',
@@ -642,14 +645,6 @@
xcode_targets[qualified_target] = xct
xcode_target_to_target_dict[xct] = spec
- # Xcode does not have a distinct type for loadable_modules that are pure
- # BSD targets (ie-unbundled). It uses the same setup as a shared_library
- # but the mach-o type is explictly set in the settings. So before we do
- # anything else, for this one case, we stuff in that one setting. This
- # would allow the other data in the spec to change it if need be.
- if type == 'loadable_module' and not is_bundle:
- xccl.SetBuildSetting('MACH_O_TYPE', 'mh_bundle')
-
spec_actions = spec.get('actions', [])
spec_rules = spec.get('rules', [])
« no previous file with comments | « no previous file | trunk/pylib/gyp/xcodeproj_file.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698