本文整理汇总了Python中pbxproj.XcodeProject.add_other_cflags方法的典型用法代码示例。如果您正苦于以下问题:Python XcodeProject.add_other_cflags方法的具体用法?Python XcodeProject.add_other_cflags怎么用?Python XcodeProject.add_other_cflags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pbxproj.XcodeProject
的用法示例。
在下文中一共展示了XcodeProject.add_other_cflags方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testAddOtherCFlags
# 需要导入模块: from pbxproj import XcodeProject [as 别名]
# 或者: from pbxproj.XcodeProject import add_other_cflags [as 别名]
def testAddOtherCFlags(self):
project = XcodeProject(self.obj)
project.add_other_cflags('-ObjC')
self.assertEqual(project.objects['5'].buildSettings.OTHER_CFLAGS, '-ObjC')
self.assertEqual(project.objects['6'].buildSettings.OTHER_CFLAGS, '-ObjC')
self.assertEqual(project.objects['7'].buildSettings.OTHER_CFLAGS, '-ObjC')
self.assertEqual(project.objects['8'].buildSettings.OTHER_CFLAGS, '-ObjC')
示例2: testRemoveOtherCFlags
# 需要导入模块: from pbxproj import XcodeProject [as 别名]
# 或者: from pbxproj.XcodeProject import add_other_cflags [as 别名]
def testRemoveOtherCFlags(self):
project = XcodeProject(self.obj)
project.add_other_cflags('-ObjC')
self.assertEqual(project.objects['5'].buildSettings.OTHER_CFLAGS, '-ObjC')
self.assertEqual(project.objects['6'].buildSettings.OTHER_CFLAGS, '-ObjC')
self.assertEqual(project.objects['7'].buildSettings.OTHER_CFLAGS, '-ObjC')
self.assertEqual(project.objects['8'].buildSettings.OTHER_CFLAGS, '-ObjC')
project.remove_other_cflags('-ObjC')
self.assertIsNone(project.objects['5'].buildSettings['OTHER_CFLAGS'])
self.assertIsNone(project.objects['6'].buildSettings['OTHER_CFLAGS'])
self.assertIsNone(project.objects['7'].buildSettings['OTHER_CFLAGS'])
self.assertIsNone(project.objects['8'].buildSettings['OTHER_CFLAGS'])