feat: add activateWinDoxygen

This commit is contained in:
Amin Yahyaabadi 2021-09-20 07:31:40 -05:00
parent 3640522fa1
commit cd02056faf
1 changed files with 8 additions and 3 deletions

View File

@ -33,9 +33,7 @@ export async function setupDoxygen(version: string | undefined, _setupCppDir: st
* at setupDoxygen (src/doxygen/doxygen.ts:11:27)
* at Object.<anonymous> (src/doxygen/__tests__/doxygen.test.ts:8:25)
*/
addPath("C:/Program Files/Graphviz/bin")
const binDir = "C:/Program Files/doxygen/bin"
addPath(binDir)
const binDir = activateWinDoxygen()
return { binDir }
}
case "darwin": {
@ -51,3 +49,10 @@ export async function setupDoxygen(version: string | undefined, _setupCppDir: st
}
}
}
function activateWinDoxygen() {
addPath("C:/Program Files/Graphviz/bin")
const binDir = "C:/Program Files/doxygen/bin"
addPath(binDir)
return binDir
}