tcc-based vscode project for windows (#1191)

Signed-off-by: misterpah <misterpah@gmail.com>
This commit is contained in:
pah arif
2020-04-11 17:23:00 +08:00
committed by GitHub
parent cc816345bf
commit 17ee57c458
5 changed files with 168 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"C:/raylib/raylib/src/**",
"C:/raylib/tcc/**",
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE",
"GRAPHICS_API_OPENGL_33",
"PLATFORM_DESKTOP"
],
"compilerPath": "C:/raylib/tcc/tcc.exe",
"cStandard": "c99",
"cppStandard": "c++14",
"intelliSenseMode": "gcc-x64"
}
],
"version": 4
}

View File

@ -0,0 +1,10 @@
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/*.o": true
}
}

View File

@ -0,0 +1,34 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"windows": {
"options": {
"shell": {
"executable": "C:\\windows\\System32\\cmd.exe",
"args": [
"/d", "/c"
]
}
}
},
"tasks": [
{
"label": "build & run",
"type": "shell",
"command": "tcc.exe ${workspaceFolder}\\${fileBasename} -o ${workspaceFolder}\\${fileBasenameNoExtension}.exe -std=c99 -Wall -lmsvcrt -lraylib -lopengl32 -lgdi32 -lkernel32 -lshell32 -luser32 -lwinmm -Wl,-subsystem=gui && ${fileBasenameNoExtension}.exe",
"options": {
"env":{
"PATH" : "C:\\raylib\\tcc\\;%PATH%"
}
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
}
]
}