add build system, vendor deps, init stuff
This commit is contained in:
14
.vscode/launch.json
vendored
Normal file
14
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug autosample",
|
||||
"type": "cppvsdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/build/autosample.exe",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"preLaunchTask": "build"
|
||||
}
|
||||
]
|
||||
}
|
||||
40
.vscode/tasks.json
vendored
Normal file
40
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "bootstrap nob",
|
||||
"type": "shell",
|
||||
"command": "cl",
|
||||
"args": ["/nologo", "nob.c"],
|
||||
"group": "build",
|
||||
"problemMatcher": "$msCompile",
|
||||
"detail": "One-time bootstrap: compile nob.c with cl.exe"
|
||||
},
|
||||
{
|
||||
"label": "build",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/nob.exe",
|
||||
"group": "build",
|
||||
"problemMatcher": "$msCompile",
|
||||
"detail": "Build autosample via nob"
|
||||
},
|
||||
{
|
||||
"label": "rebuild",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/nob.exe",
|
||||
"group": "build",
|
||||
"problemMatcher": "$msCompile",
|
||||
"detail": "Clean and rebuild",
|
||||
"dependsOn": "clean"
|
||||
},
|
||||
{
|
||||
"label": "clean",
|
||||
"type": "shell",
|
||||
"command": "if (Test-Path build) { Remove-Item -Recurse -Force build }",
|
||||
"args": [],
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"detail": "Remove build directory"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user