begin macos port

This commit is contained in:
2026-03-03 10:00:38 -05:00
parent 7e298faadd
commit ad30ca8cb7
13 changed files with 2205 additions and 124 deletions

70
.vscode/tasks.json vendored
View File

@@ -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"
}
]
}