2024-01-11 00:26:39 +00:00
|
|
|
{
|
|
|
|
|
"version": "2.0.0",
|
|
|
|
|
"tasks": [
|
|
|
|
|
{
|
|
|
|
|
"label": "build",
|
2024-07-18 16:51:06 +00:00
|
|
|
"type": "cmake",
|
2024-01-11 00:26:39 +00:00
|
|
|
"command": "build",
|
|
|
|
|
"targets": ["all"],
|
|
|
|
|
"preset": "${command:cmake.activeBuildPresetName}",
|
2024-06-28 09:35:18 +00:00
|
|
|
"group": {
|
|
|
|
|
"kind": "build",
|
|
|
|
|
"isDefault": true
|
|
|
|
|
}
|
2024-01-16 17:16:26 +00:00
|
|
|
},
|
2024-07-04 09:14:54 +00:00
|
|
|
{
|
2024-07-18 07:04:39 +00:00
|
|
|
"label": "clean",
|
2024-07-18 16:51:06 +00:00
|
|
|
"type": "cmake",
|
2024-07-04 09:14:54 +00:00
|
|
|
"command": "build",
|
2024-07-18 07:04:39 +00:00
|
|
|
"targets": ["clean"],
|
2024-07-04 09:14:54 +00:00
|
|
|
"preset": "${command:cmake.activeBuildPresetName}",
|
|
|
|
|
"group": "build"
|
|
|
|
|
},
|
2024-01-16 17:16:26 +00:00
|
|
|
{
|
2024-07-18 16:51:06 +00:00
|
|
|
"label": "tests",
|
|
|
|
|
"dependsOn": ["unittests", "integtests"],
|
|
|
|
|
"problemMatcher": []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "kill",
|
2024-01-16 17:16:26 +00:00
|
|
|
"type": "shell",
|
2024-07-18 16:51:06 +00:00
|
|
|
"command": "killall synergy; killall synergyc; killall synergys || true",
|
|
|
|
|
"windows": {
|
|
|
|
|
"command": "taskkill /F /IM synergy.exe /IM synergyc.exe /IM synergys.exe; $true"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "build-kill",
|
|
|
|
|
"dependsOn": ["build", "kill"]
|
2024-07-04 09:14:54 +00:00
|
|
|
},
|
|
|
|
|
{
|
2024-07-16 08:30:35 +00:00
|
|
|
"label": "gui",
|
|
|
|
|
"type": "process",
|
|
|
|
|
"command": "${workspaceFolder}/build/bin/synergy",
|
2024-07-18 16:51:06 +00:00
|
|
|
"dependsOn": ["build", "kill"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "windows daemon",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "python scripts/windows_daemon.py",
|
2024-07-16 08:30:35 +00:00
|
|
|
"dependsOn": ["build"]
|
|
|
|
|
},
|
2024-07-18 07:04:39 +00:00
|
|
|
{
|
|
|
|
|
"label": "clean-gcda",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "find . -name '*.gcda' -delete",
|
|
|
|
|
"windows": {
|
2024-07-18 16:51:06 +00:00
|
|
|
"command": "$null"
|
2024-07-18 07:04:39 +00:00
|
|
|
},
|
|
|
|
|
"presentation": {
|
|
|
|
|
"reveal": "silent"
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-07-16 08:30:35 +00:00
|
|
|
{
|
|
|
|
|
"label": "unittests (current)",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "python",
|
|
|
|
|
"args": [
|
|
|
|
|
"./scripts/tests.py",
|
|
|
|
|
"--unit-tests",
|
|
|
|
|
"--ignore-return-code",
|
|
|
|
|
"--filter-file=${file}"
|
|
|
|
|
],
|
2024-07-18 07:04:39 +00:00
|
|
|
"dependsOn": ["build", "clean-gcda"]
|
2024-07-16 08:30:35 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "integtests (current)",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "python",
|
|
|
|
|
"args": [
|
|
|
|
|
"./scripts/tests.py",
|
|
|
|
|
"--integ-tests",
|
|
|
|
|
"--ignore-return-code",
|
|
|
|
|
"--filter-file=${file}"
|
|
|
|
|
],
|
2024-07-18 07:04:39 +00:00
|
|
|
"dependsOn": ["build", "clean-gcda"]
|
2024-07-16 08:30:35 +00:00
|
|
|
},
|
|
|
|
|
{
|
2024-07-18 16:51:06 +00:00
|
|
|
"label": "unittests",
|
2024-07-04 09:14:54 +00:00
|
|
|
"type": "shell",
|
2024-07-16 08:30:35 +00:00
|
|
|
"command": "python",
|
|
|
|
|
"args": ["./scripts/tests.py", "--unit-tests", "--ignore-return-code"],
|
2024-07-18 07:04:39 +00:00
|
|
|
"dependsOn": ["build", "clean-gcda"]
|
2024-07-04 09:14:54 +00:00
|
|
|
},
|
|
|
|
|
{
|
2024-07-18 16:51:06 +00:00
|
|
|
"label": "integtests",
|
2024-07-04 09:14:54 +00:00
|
|
|
"type": "shell",
|
2024-07-16 08:30:35 +00:00
|
|
|
"command": "python",
|
|
|
|
|
"args": ["./scripts/tests.py", "--integ-tests", "--ignore-return-code"],
|
2024-07-18 07:04:39 +00:00
|
|
|
"dependsOn": ["build", "clean-gcda"]
|
2024-07-17 08:22:46 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "unittests (current, valgrind)",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "python",
|
|
|
|
|
"args": [
|
|
|
|
|
"./scripts/tests.py",
|
|
|
|
|
"--unit-tests",
|
|
|
|
|
"--ignore-return-code",
|
|
|
|
|
"--filter-file=${file}",
|
|
|
|
|
"--valgrind"
|
|
|
|
|
],
|
2024-07-18 07:04:39 +00:00
|
|
|
"dependsOn": ["build", "clean-gcda"]
|
2024-07-17 08:22:46 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "integtests (current, valgrind)",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "python",
|
|
|
|
|
"args": [
|
|
|
|
|
"./scripts/tests.py",
|
|
|
|
|
"--integ-tests",
|
|
|
|
|
"--ignore-return-code",
|
|
|
|
|
"--filter-file=${file}",
|
|
|
|
|
"--valgrind"
|
|
|
|
|
],
|
2024-07-18 07:04:39 +00:00
|
|
|
"dependsOn": ["build", "clean-gcda"]
|
2024-01-11 00:26:39 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|