Commit e2e6dec4 authored by Drew's avatar Drew

Treat atllbuild "sources" header as a briding header

We need a better solution for multiple headers (maybe synthesizing a master one)
parent 1c5c75d6
......@@ -151,7 +151,14 @@ func process(tasks: [Task], testTask: Task?, package: Package, xcodeprojGUID: St
bridgingHeader = task.importedPath.description + "/" + bf
}
else {
bridgingHeader = nil
if headerRefs.count == 1 {
bridgingHeader = task.importedPath.description + "/" + headerRefs[0].path
}
else if headerRefs.count >= 1 {
print("Warning: don't support a bridging header when multiple headers (\(headerRefs)) are used")
bridgingHeader = nil
}
else { bridgingHeader = nil }
}
let target = PbxNativeTarget(productReference: product, outputType: outputType, sourceFiles: sourceRefs, linkFiles: linkWith, otherFiles: headerRefs, bridgingHeader: bridgingHeader, headerSearchPaths: headerSearchPaths, otherLdFlags: ldFlags, appTarget: nil, xcodeprojGUID: xcodeprojGUID )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment