begin macos port
This commit is contained in:
13
.vscode/launch.json
vendored
13
.vscode/launch.json
vendored
@@ -2,10 +2,19 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug autosample",
|
||||
"name": "Debug autosample (macOS)",
|
||||
"type": "lldb",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/build_debug/autosample.app/Contents/MacOS/autosample",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"preLaunchTask": "build-debug"
|
||||
},
|
||||
{
|
||||
"name": "Debug autosample (Windows)",
|
||||
"type": "cppvsdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/build/autosample.exe",
|
||||
"program": "${workspaceFolder}/build_debug/autosample.exe",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"console": "integratedTerminal",
|
||||
|
||||
70
.vscode/tasks.json
vendored
70
.vscode/tasks.json
vendored
@@ -2,48 +2,76 @@
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "bootstrap nob",
|
||||
"label": "bootstrap",
|
||||
"type": "shell",
|
||||
"command": "cl",
|
||||
"args": ["/nologo", "nob.c"],
|
||||
"command": "cc",
|
||||
"args": ["build.c", "-o", "build"],
|
||||
"windows": {
|
||||
"command": "cl",
|
||||
"args": ["/nologo", "build.c"]
|
||||
},
|
||||
"group": "build",
|
||||
"problemMatcher": "$msCompile",
|
||||
"detail": "One-time bootstrap: compile nob.c with cl.exe"
|
||||
"problemMatcher": [],
|
||||
"detail": "One-time bootstrap: compile build.c"
|
||||
},
|
||||
{
|
||||
"label": "build",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/nob.exe",
|
||||
"command": "${workspaceFolder}/build",
|
||||
"windows": {
|
||||
"command": "${workspaceFolder}/build.exe"
|
||||
},
|
||||
"group": "build",
|
||||
"problemMatcher": "$msCompile",
|
||||
"problemMatcher": {
|
||||
"owner": "cpp",
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"pattern": {
|
||||
"regexp": "^(.+?):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"column": 3,
|
||||
"severity": 4,
|
||||
"message": 5
|
||||
}
|
||||
},
|
||||
"detail": "Build autosample (release)"
|
||||
},
|
||||
{
|
||||
"label": "build-debug",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/nob.exe",
|
||||
"command": "${workspaceFolder}/build",
|
||||
"args": ["debug"],
|
||||
"windows": {
|
||||
"command": "${workspaceFolder}/build.exe",
|
||||
"args": ["debug"]
|
||||
},
|
||||
"group": "build",
|
||||
"problemMatcher": "$msCompile",
|
||||
"problemMatcher": {
|
||||
"owner": "cpp",
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"pattern": {
|
||||
"regexp": "^(.+?):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"column": 3,
|
||||
"severity": 4,
|
||||
"message": 5
|
||||
}
|
||||
},
|
||||
"detail": "Build autosample (debug)"
|
||||
},
|
||||
{
|
||||
"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": [],
|
||||
"command": "rm",
|
||||
"args": ["-rf", "build_debug", "build_release"],
|
||||
"windows": {
|
||||
"command": "PowerShell",
|
||||
"args": ["-Command", "Remove-Item -Recurse -Force -ErrorAction SilentlyContinue build_debug, build_release"]
|
||||
},
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"detail": "Remove build directory"
|
||||
"detail": "Remove build directories"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user