2023-05-25 14:48:26 +08:00
|
|
|
|
import { setupBazel } from "./bazel/bazel"
|
|
|
|
|
import { setupBrew } from "./brew/brew"
|
|
|
|
|
import { setupCcache } from "./ccache/ccache"
|
|
|
|
|
import { setupChocolatey } from "./chocolatey/chocolatey"
|
|
|
|
|
import { setupCmake } from "./cmake/cmake"
|
|
|
|
|
import { setupConan } from "./conan/conan"
|
|
|
|
|
import { setupCppcheck } from "./cppcheck/cppcheck"
|
|
|
|
|
import { setupDoxygen } from "./doxygen/doxygen"
|
|
|
|
|
import { setupGcc } from "./gcc/gcc"
|
|
|
|
|
import { setupGcovr } from "./gcovr/gcovr"
|
|
|
|
|
import { setupGraphviz } from "./graphviz/graphviz"
|
|
|
|
|
import { setupKcov } from "./kcov/kcov"
|
2023-09-11 14:58:16 +08:00
|
|
|
|
import { setupClangTools, setupLLVM, setupClangFormat } from "./llvm/llvm"
|
2023-05-25 14:48:26 +08:00
|
|
|
|
import { setupMake } from "./make/make"
|
|
|
|
|
import { setupMeson } from "./meson/meson"
|
|
|
|
|
import { setupMSVC } from "./msvc/msvc"
|
|
|
|
|
import { setupNala } from "./nala/nala"
|
|
|
|
|
import { setupNinja } from "./ninja/ninja"
|
|
|
|
|
import { setupOpencppcoverage } from "./opencppcoverage/opencppcoverage"
|
|
|
|
|
import { setupPowershell } from "./powershell/powershell"
|
|
|
|
|
import { setupPython } from "./python/python"
|
|
|
|
|
import { setupSccache } from "./sccache/sccache"
|
|
|
|
|
import { setupSevenZip } from "./sevenzip/sevenzip"
|
|
|
|
|
import { setupTask } from "./task/task"
|
|
|
|
|
import { setupVcpkg } from "./vcpkg/vcpkg"
|
|
|
|
|
import { setupVCVarsall } from "./vcvarsall/vcvarsall"
|
|
|
|
|
|
2023-08-22 11:11:21 +08:00
|
|
|
|
/** The setup functions */
|
2023-05-25 14:48:26 +08:00
|
|
|
|
export const setups = {
|
|
|
|
|
nala: setupNala,
|
|
|
|
|
cmake: setupCmake,
|
|
|
|
|
ninja: setupNinja,
|
|
|
|
|
python: setupPython,
|
|
|
|
|
vcpkg: setupVcpkg,
|
|
|
|
|
bazel: setupBazel,
|
|
|
|
|
conan: setupConan,
|
|
|
|
|
meson: setupMeson,
|
|
|
|
|
gcovr: setupGcovr,
|
|
|
|
|
opencppcoverage: setupOpencppcoverage,
|
|
|
|
|
llvm: setupLLVM,
|
|
|
|
|
gcc: setupGcc,
|
|
|
|
|
choco: setupChocolatey,
|
|
|
|
|
brew: setupBrew,
|
|
|
|
|
powershell: setupPowershell,
|
|
|
|
|
ccache: setupCcache,
|
|
|
|
|
sccache: setupSccache,
|
|
|
|
|
doxygen: setupDoxygen,
|
|
|
|
|
graphviz: setupGraphviz,
|
|
|
|
|
cppcheck: setupCppcheck,
|
|
|
|
|
clangtidy: setupClangTools,
|
2023-09-11 14:58:16 +08:00
|
|
|
|
clangformat: setupClangFormat,
|
2023-05-25 14:48:26 +08:00
|
|
|
|
msvc: setupMSVC,
|
|
|
|
|
vcvarsall: setupVCVarsall,
|
|
|
|
|
kcov: setupKcov,
|
|
|
|
|
make: setupMake,
|
|
|
|
|
task: setupTask,
|
|
|
|
|
sevenzip: setupSevenZip,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ToolName = keyof typeof setups
|
|
|
|
|
|
2023-08-22 11:11:21 +08:00
|
|
|
|
/** The tools that can be installed */
|
2023-05-25 14:48:26 +08:00
|
|
|
|
export const tools = Object.keys(setups) as Array<ToolName>
|
|
|
|
|
|
2023-08-22 12:41:17 +08:00
|
|
|
|
/** The possible inputs to the program */
|
|
|
|
|
export type Inputs = keyof typeof setups | "compiler" | "architecture" | "timeout"
|
2023-08-22 11:21:34 +08:00
|
|
|
|
|
2023-08-22 12:41:17 +08:00
|
|
|
|
/** an array of possible inputs */
|
|
|
|
|
export const inputs: Array<Inputs> = ["compiler", "architecture", "timeout", ...tools]
|