mirror of https://github.com/aminya/setup-cpp
perf: install graphviz after doxygen
This commit is contained in:
parent
998539ef66
commit
00f3a11471
|
@ -7,20 +7,20 @@ import { setupChocoPack } from "../utils/setup/setupChocoPack"
|
||||||
export async function setupDoxygen(version: string | undefined, _setupCppDir: string, _arch: string) {
|
export async function setupDoxygen(version: string | undefined, _setupCppDir: string, _arch: string) {
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
case "win32": {
|
case "win32": {
|
||||||
await setupChocoPack("graphviz", version)
|
|
||||||
await setupChocoPack("doxygen.install", version)
|
await setupChocoPack("doxygen.install", version)
|
||||||
|
await setupChocoPack("graphviz", version)
|
||||||
addPath("C:/Program Files/Graphviz/bin")
|
addPath("C:/Program Files/Graphviz/bin")
|
||||||
const binDir = "C:/Program Files/doxygen/bin"
|
const binDir = "C:/Program Files/doxygen/bin"
|
||||||
addPath(binDir)
|
addPath(binDir)
|
||||||
return { binDir }
|
return { binDir }
|
||||||
}
|
}
|
||||||
case "darwin": {
|
case "darwin": {
|
||||||
setupBrewPack("graphviz", version)
|
setupBrewPack("doxygen", version)
|
||||||
return setupBrewPack("doxygen", version)
|
return setupBrewPack("graphviz", version)
|
||||||
}
|
}
|
||||||
case "linux": {
|
case "linux": {
|
||||||
await setupAptPack("graphviz", version)
|
await setupAptPack("doxygen", version)
|
||||||
return setupAptPack("doxygen", version)
|
return setupAptPack("graphviz", version)
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
throw new Error(`Unsupported platform`)
|
throw new Error(`Unsupported platform`)
|
||||||
|
|
Loading…
Reference in New Issue