mirror of https://github.com/aminya/setup-cpp
20 lines
632 B
TypeScript
20 lines
632 B
TypeScript
import { addPath } from "os-env"
|
|
import { rcPath } from "../cli-options"
|
|
import { setupChocoPack } from "../utils/setup/setupChocoPack"
|
|
|
|
// 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, { rcPath })
|
|
return binDir
|
|
}
|