MCPcopy Create free account
hub / github.com/nodejs/node / PBXNativeTarget

Class PBXNativeTarget

tools/gyp/pylib/gyp/xcodeproj_file.py:2421–2716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2419
2420
2421class PBXNativeTarget(XCTarget):
2422 # buildPhases is overridden in the schema to be able to set defaults.
2423 #
2424 # NOTE: Contrary to most objects, it is advisable to set parent when
2425 # constructing PBXNativeTarget. A parent of an XCTarget must be a PBXProject
2426 # object. A parent reference is required for a PBXNativeTarget during
2427 # construction to be able to set up the target defaults for productReference,
2428 # because a PBXBuildFile object must be created for the target and it must
2429 # be added to the PBXProject's mainGroup hierarchy.
2430 _schema = XCTarget._schema.copy()
2431 _schema.update(
2432 {
2433 "buildPhases": [
2434 1,
2435 XCBuildPhase,
2436 1,
2437 1,
2438 [PBXSourcesBuildPhase(), PBXFrameworksBuildPhase()],
2439 ],
2440 "buildRules": [1, PBXBuildRule, 1, 1, []],
2441 "productReference": [0, PBXFileReference, 0, 1],
2442 "productType": [0, str, 0, 1],
2443 }
2444 )
2445
2446 # Mapping from Xcode product-types to settings. The settings are:
2447 # filetype : used for explicitFileType in the project file
2448 # prefix : the prefix for the file name
2449 # suffix : the suffix for the file name
2450 _product_filetypes = {
2451 "com.apple.product-type.application": ["wrapper.application", "", ".app"],
2452 "com.apple.product-type.application.watchapp": [
2453 "wrapper.application",
2454 "",
2455 ".app",
2456 ],
2457 "com.apple.product-type.watchkit-extension": [
2458 "wrapper.app-extension",
2459 "",
2460 ".appex",
2461 ],
2462 "com.apple.product-type.app-extension": ["wrapper.app-extension", "", ".appex"],
2463 "com.apple.product-type.bundle": ["wrapper.cfbundle", "", ".bundle"],
2464 "com.apple.product-type.framework": ["wrapper.framework", "", ".framework"],
2465 "com.apple.product-type.library.dynamic": [
2466 "compiled.mach-o.dylib",
2467 "lib",
2468 ".dylib",
2469 ],
2470 "com.apple.product-type.library.static": ["archive.ar", "lib", ".a"],
2471 "com.apple.product-type.tool": ["compiled.mach-o.executable", "", ""],
2472 "com.apple.product-type.bundle.unit-test": ["wrapper.cfbundle", "", ".xctest"],
2473 "com.apple.product-type.bundle.ui-testing": ["wrapper.cfbundle", "", ".xctest"],
2474 "com.googlecode.gyp.xcode.bundle": ["compiled.mach-o.dylib", "", ".so"],
2475 "com.apple.product-type.kernel-extension": ["wrapper.kext", "", ".kext"],
2476 }
2477
2478 def __init__(

Callers

nothing calls this directly

Calls 4

copyMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected