(
self,
properties=None,
id=None,
parent=None,
force_outdir=None,
force_prefix=None,
force_extension=None,
)
| 2330 | ) |
| 2331 | |
| 2332 | def __init__( |
| 2333 | self, |
| 2334 | properties=None, |
| 2335 | id=None, |
| 2336 | parent=None, |
| 2337 | force_outdir=None, |
| 2338 | force_prefix=None, |
| 2339 | force_extension=None, |
| 2340 | ): |
| 2341 | # super |
| 2342 | XCRemoteObject.__init__(self, properties, id, parent) |
| 2343 | |
| 2344 | # Set up additional defaults not expressed in the schema. If a "name" |
| 2345 | # property was supplied, set "productName" if it is not present. Also set |
| 2346 | # the "PRODUCT_NAME" build setting in each configuration, but only if |
| 2347 | # the setting is not present in any build configuration. |
| 2348 | if "name" in self._properties and "productName" not in self._properties: |
| 2349 | self.SetProperty("productName", self._properties["name"]) |
| 2350 | |
| 2351 | if "productName" in self._properties: |
| 2352 | if "buildConfigurationList" in self._properties: |
| 2353 | configs = self._properties["buildConfigurationList"] |
| 2354 | if configs.HasBuildSetting("PRODUCT_NAME") == 0: |
| 2355 | configs.SetBuildSetting( |
| 2356 | "PRODUCT_NAME", self._properties["productName"] |
| 2357 | ) |
| 2358 | |
| 2359 | def AddDependency(self, other): |
| 2360 | pbxproject = self.PBXProjectAncestor() |
nothing calls this directly
no test coverage detected