This commit makes some changes to the dockerfile to make it work again. We install cmake from source in order to meet the minimum required version specified in the CMakeLists.txt file. We build the same version that is installed on the CI runner image. We also build tinyxml2 from source because we need some cmake files that are apparently not included in the apt package.
89 lines
2.2 KiB
JSON
89 lines
2.2 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Setup CMake Project",
|
|
"type": "shell",
|
|
"command": "cmake",
|
|
"args": [
|
|
"-S",
|
|
".",
|
|
"-B",
|
|
"build-cmake",
|
|
"-G",
|
|
"Ninja"
|
|
],
|
|
"windows": {
|
|
"args": [
|
|
"-S",
|
|
".",
|
|
"-B",
|
|
"build/x64",
|
|
"-G",
|
|
"Visual Studio 17 2022",
|
|
"-T",
|
|
"v143",
|
|
"-A",
|
|
"x64"
|
|
]
|
|
},
|
|
"group": "build",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Generate SOH OTR",
|
|
"type": "shell",
|
|
"command": "cmake",
|
|
"args": [
|
|
"--build",
|
|
"build-cmake",
|
|
"--target",
|
|
"GenerateSohOtr",
|
|
"--parallel"
|
|
],
|
|
"windows": {
|
|
"args": [
|
|
"--build",
|
|
"./build/x64",
|
|
"--target",
|
|
"GenerateSohOtr"
|
|
]
|
|
},
|
|
"group": "build",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Build Project",
|
|
"type": "shell",
|
|
"command": "cmake",
|
|
"args": [
|
|
"--build",
|
|
"build-cmake",
|
|
"--parallel",
|
|
"8"
|
|
],
|
|
"windows": {
|
|
"args": [
|
|
"--build",
|
|
"./build/x64"
|
|
]
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"dependsOn": ["Generate SOH OTR"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Build All",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": [
|
|
"Setup CMake Project",
|
|
"Generate SOH OTR",
|
|
"Build Project"
|
|
]
|
|
}
|
|
]
|
|
}
|