- Integrate premake-ecc module for generating compile_commands.json - Add .clangd config pointing to build/ directory - Add 'Generate compile_commands.json' task - Run compile_commands generation automatically on build
125 lines
3.1 KiB
JSON
125 lines
3.1 KiB
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "build debug",
|
|
"type": "process",
|
|
"command": "make",
|
|
"windows": {
|
|
"command": "mingw32-make.exe",
|
|
},
|
|
"osx": {
|
|
"args": [
|
|
"config=debug_arm64"
|
|
],
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"dependsOn":["UpdateMake"]
|
|
},
|
|
{
|
|
"label": "build release",
|
|
"type": "process",
|
|
"command": "make",
|
|
"windows": {
|
|
"command": "mingw32-make.exe",
|
|
"args": [
|
|
"config=release_x64"
|
|
],
|
|
},
|
|
"linux": {
|
|
"args": [
|
|
"config=release_x64"
|
|
],
|
|
},
|
|
"osx": {
|
|
"args": [
|
|
"config=release_arm64"
|
|
],
|
|
},
|
|
"group": "build",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"dependsOn":["UpdateMake"]
|
|
},
|
|
{
|
|
"label": "Clean",
|
|
"type": "process",
|
|
"command": "make",
|
|
"windows": {
|
|
"command": "mingw32-make.exe",
|
|
"args": [
|
|
"clean"
|
|
],
|
|
},
|
|
"linux": {
|
|
"args": [
|
|
"clean"
|
|
],
|
|
},
|
|
"osx": {
|
|
"args": [
|
|
"clean"
|
|
],
|
|
},
|
|
"group": "build",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"dependsOn":["UpdateMake"]
|
|
},
|
|
{
|
|
"label": "UpdateMake",
|
|
"type": "process",
|
|
"command": "./premake5",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/build/"
|
|
},
|
|
"args": [
|
|
"gmake"
|
|
],
|
|
"windows": {
|
|
"command": "./premake5.exe"
|
|
},
|
|
"linux": {
|
|
"command": "./premake5"
|
|
},
|
|
"osx": {
|
|
"command": "premake5.osx"
|
|
},
|
|
"group": "build",
|
|
"dependsOn": ["Generate compile_commands.json"]
|
|
},
|
|
{
|
|
"label": "Generate compile_commands.json",
|
|
"type": "process",
|
|
"command": "./premake5",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/build/"
|
|
},
|
|
"args": [
|
|
"ecc"
|
|
],
|
|
"windows": {
|
|
"command": "./premake5.exe"
|
|
},
|
|
"linux": {
|
|
"command": "./premake5"
|
|
},
|
|
"osx": {
|
|
"command": "premake5.osx"
|
|
},
|
|
"group": "build",
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|