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

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: Use subprocess.check_output 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
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 return self.xcode_settings[configname].get('INFOPLIST_OUTPUT_FORMAT',
Mark Mentovai 2015/03/09 13:11:22 INFOPLIST_OUTPUT_FORMAT should be a textual name l
justincohen 2015/03/09 14:28:30 Corrected and added test.
220 self.isIOS)
221
218 def _IsBundle(self): 222 def _IsBundle(self):
219 return int(self.spec.get('mac_bundle', 0)) != 0 223 return int(self.spec.get('mac_bundle', 0)) != 0
220 224
221 def _IsIosAppExtension(self): 225 def _IsIosAppExtension(self):
222 return int(self.spec.get('ios_app_extension', 0)) != 0 226 return int(self.spec.get('ios_app_extension', 0)) != 0
223 227
224 def _IsIosWatchKitExtension(self): 228 def _IsIosWatchKitExtension(self):
225 return int(self.spec.get('ios_watchkit_extension', 0)) != 0 229 return int(self.spec.get('ios_watchkit_extension', 0)) != 0
226 230
227 def _IsIosWatchApp(self): 231 def _IsIosWatchApp(self):
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 if toolset == 'target': 1591 if toolset == 'target':
1588 iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos' 1592 iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos'
1589 return targets 1593 return targets
1590 1594
1591 def CloneConfigurationForDeviceAndEmulator(target_dicts): 1595 def CloneConfigurationForDeviceAndEmulator(target_dicts):
1592 """If |target_dicts| contains any iOS targets, automatically create -iphoneos 1596 """If |target_dicts| contains any iOS targets, automatically create -iphoneos
1593 targets for iOS device builds.""" 1597 targets for iOS device builds."""
1594 if _HasIOSTarget(target_dicts): 1598 if _HasIOSTarget(target_dicts):
1595 return _AddIOSDeviceConfigurations(target_dicts) 1599 return _AddIOSDeviceConfigurations(target_dicts)
1596 return target_dicts 1600 return target_dicts
OLDNEW
« no previous file with comments | « pylib/gyp/mac_tool.py ('k') | test/ios/gyptest-app-ios.py » ('j') | test/ios/gyptest-app-ios.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698