mirror of https://github.com/aminya/setup-cpp
20 lines
642 B
TypeScript
20 lines
642 B
TypeScript
import { addPath } from "envosman"
|
|
import { rcOptions } from "../cli-options.js"
|
|
import { setupChocoPack } from "../utils/setup/setupChocoPack.js"
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
export async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {
|
|
if (process.platform !== "win32") {
|
|
return
|
|
}
|
|
await setupChocoPack("opencppcoverage", version)
|
|
const binDir = await activateOpencppcoverage()
|
|
return { binDir }
|
|
}
|
|
|
|
async function activateOpencppcoverage() {
|
|
const binDir = "C:/Program Files/OpenCppCoverage"
|
|
await addPath(binDir, rcOptions)
|
|
return binDir
|
|
}
|