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

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

Issue 825453002: Convert plist and strings to binary for iOS. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Remove blank line Created 5 years, 9 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/mac_tool.py ('k') | test/ios/app-bundle/test.gyp » ('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 """ 5 """
6 This module contains classes that help to emulate xcodebuild behavior on top of 6 This module contains classes that help to emulate xcodebuild behavior on top of
7 other build systems, such as make and ninja. 7 other build systems, such as make and ninja.
8 """ 8 """
9 9
10 import copy 10 import copy
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 def _Appendf(self, lst, test_key, format_str, default=None): 208 def _Appendf(self, lst, test_key, format_str, default=None):
209 if test_key in self._Settings(): 209 if test_key in self._Settings():
210 lst.append(format_str % str(self._Settings()[test_key])) 210 lst.append(format_str % str(self._Settings()[test_key]))
211 elif default: 211 elif default:
212 lst.append(format_str % str(default)) 212 lst.append(format_str % str(default))
213 213
214 def _WarnUnimplemented(self, test_key): 214 def _WarnUnimplemented(self, test_key):
215 if test_key in self._Settings(): 215 if test_key in self._Settings():
216 print 'Warning: Ignoring not yet implemented key "%s".' % test_key 216 print 'Warning: Ignoring not yet implemented key "%s".' % test_key
217 217
218 def IsBinaryOutputFormat(self, configname):
219 default = "binary" if self.isIOS else "xml"
220 format = self.xcode_settings[configname].get('INFOPLIST_OUTPUT_FORMAT',
221 default)
222 return format == "binary"
223
218 def _IsBundle(self): 224 def _IsBundle(self):
219 return int(self.spec.get('mac_bundle', 0)) != 0 225 return int(self.spec.get('mac_bundle', 0)) != 0
220 226
221 def _IsIosAppExtension(self): 227 def _IsIosAppExtension(self):
222 return int(self.spec.get('ios_app_extension', 0)) != 0 228 return int(self.spec.get('ios_app_extension', 0)) != 0
223 229
224 def _IsIosWatchKitExtension(self): 230 def _IsIosWatchKitExtension(self):
225 return int(self.spec.get('ios_watchkit_extension', 0)) != 0 231 return int(self.spec.get('ios_watchkit_extension', 0)) != 0
226 232
227 def _IsIosWatchApp(self): 233 def _IsIosWatchApp(self):
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 if toolset == 'target': 1593 if toolset == 'target':
1588 iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos' 1594 iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos'
1589 return targets 1595 return targets
1590 1596
1591 def CloneConfigurationForDeviceAndEmulator(target_dicts): 1597 def CloneConfigurationForDeviceAndEmulator(target_dicts):
1592 """If |target_dicts| contains any iOS targets, automatically create -iphoneos 1598 """If |target_dicts| contains any iOS targets, automatically create -iphoneos
1593 targets for iOS device builds.""" 1599 targets for iOS device builds."""
1594 if _HasIOSTarget(target_dicts): 1600 if _HasIOSTarget(target_dicts):
1595 return _AddIOSDeviceConfigurations(target_dicts) 1601 return _AddIOSDeviceConfigurations(target_dicts)
1596 return target_dicts 1602 return target_dicts
OLDNEW
« no previous file with comments | « pylib/gyp/mac_tool.py ('k') | test/ios/app-bundle/test.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698