OLD | NEW |
---|---|
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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
310 self.configname = configname | 310 self.configname = configname |
311 cflags = [] | 311 cflags = [] |
312 | 312 |
313 sdk_root = self._SdkPath() | 313 sdk_root = self._SdkPath() |
314 if 'SDKROOT' in self._Settings(): | 314 if 'SDKROOT' in self._Settings(): |
315 cflags.append('-isysroot %s' % sdk_root) | 315 cflags.append('-isysroot %s' % sdk_root) |
316 | 316 |
317 if self._Test('CLANG_WARN_CONSTANT_CONVERSION', 'YES', default='NO'): | 317 if self._Test('CLANG_WARN_CONSTANT_CONVERSION', 'YES', default='NO'): |
318 cflags.append('-Wconstant-conversion') | 318 cflags.append('-Wconstant-conversion') |
319 | 319 |
320 if self._Test('CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS', | |
321 'YES', default='NO'): | |
322 cflags.append('-Wobjc-missing-property-synthesis') | |
Nico
2013/10/22 21:52:12
Is this set for .c and .cc files too?
justincohen
2013/10/22 21:53:44
It's just an objc thing, m/mm, am I setting it inc
Nico
2013/10/22 21:56:49
I don't think so as you're adding it to all cflags
justincohen
2013/10/23 01:58:14
I added the c and cc files but I see no warnings.
| |
323 | |
320 if self._Test('GCC_CHAR_IS_UNSIGNED_CHAR', 'YES', default='NO'): | 324 if self._Test('GCC_CHAR_IS_UNSIGNED_CHAR', 'YES', default='NO'): |
321 cflags.append('-funsigned-char') | 325 cflags.append('-funsigned-char') |
322 | 326 |
323 if self._Test('GCC_CW_ASM_SYNTAX', 'YES', default='YES'): | 327 if self._Test('GCC_CW_ASM_SYNTAX', 'YES', default='YES'): |
324 cflags.append('-fasm-blocks') | 328 cflags.append('-fasm-blocks') |
325 | 329 |
326 if 'GCC_DYNAMIC_NO_PIC' in self._Settings(): | 330 if 'GCC_DYNAMIC_NO_PIC' in self._Settings(): |
327 if self._Settings()['GCC_DYNAMIC_NO_PIC'] == 'YES': | 331 if self._Settings()['GCC_DYNAMIC_NO_PIC'] == 'YES': |
328 cflags.append('-mdynamic-no-pic') | 332 cflags.append('-mdynamic-no-pic') |
329 else: | 333 else: |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1290 new_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos' | 1294 new_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos' |
1291 target_dict['configurations'][new_config_name] = new_config_dict | 1295 target_dict['configurations'][new_config_name] = new_config_dict |
1292 return targets | 1296 return targets |
1293 | 1297 |
1294 def CloneConfigurationForDeviceAndEmulator(target_dicts): | 1298 def CloneConfigurationForDeviceAndEmulator(target_dicts): |
1295 """If |target_dicts| contains any iOS targets, automatically create -iphoneos | 1299 """If |target_dicts| contains any iOS targets, automatically create -iphoneos |
1296 targets for iOS device builds.""" | 1300 targets for iOS device builds.""" |
1297 if _HasIOSTarget(target_dicts): | 1301 if _HasIOSTarget(target_dicts): |
1298 return _AddIOSDeviceConfigurations(target_dicts) | 1302 return _AddIOSDeviceConfigurations(target_dicts) |
1299 return target_dicts | 1303 return target_dicts |
OLD | NEW |