INNER CODE UNIT · Swift
sourcehashOutputPath
skiptools/skip · Plugins/SkipPlugin/SkipPlugin.swift:160
let sourcehashOutputPath = Path(outputURL.appendingPathComponent(sourceHashDot + peerTarget.name + sourcehashExtension, isDirectory: false).path)
//Diagnostics.warning("add sourcehash output for \(target.name): \(sourcehashOutputPath)", file: sourcehashOutputPath.string)
struct Dep {
let package: Package
let target: Target
}
var buildModuleArgs: [String] = [
"--module",
peerTarget.name + ":" + peerTarget.directory.string,
]
@discardableResult func addModuleLinkFlag(_ target: SourceModuleTarget, packageID: String?) throws -> String? {
let targetName = target.name
// build up a relative link path to the related module based on the plug-in output directory structure
buildModuleArgs += ["--module", targetName + ":" + target.directory.string]
// e.g. ../../../skiphub.output/SkipFoundationKotlin/skip/SkipFoundation