1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-11 15:45:05 +02:00

add VS Code project

This commit is contained in:
xproger
2020-06-08 03:35:31 +03:00
parent b0b78171a6
commit 8f1b9a0334
4 changed files with 77 additions and 1 deletions

24
src/platform/nix/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,24 @@
{
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/../../../bin/OpenLara",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/../../../bin/",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

View File

@@ -0,0 +1,5 @@
{
"files.associations": {
"typeinfo": "cpp"
}
}

47
src/platform/nix/.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,47 @@
{
"version" : "2.0.0",
"tasks": [
{
"type": "shell",
"label": "C/C++: clang++ build active file",
"command": "/usr/bin/clang++",
"args": [
"-std=c++11",
"-Os",
"-s",
"-fno-exceptions",
"-fno-rtti",
"-ffunction-sections",
"-fdata-sections",
"-Wl,--gc-sections",
"-Wno-invalid-source-encoding",
"-DNDEBUG",
"-D_POSIX_THREADS",
"-D_POSIX_READER_WRITER_LOCKS",
"main.cpp",
"../../libs/stb_vorbis/stb_vorbis.c",
"../../libs/minimp3/minimp3.cpp",
"../../libs/tinf/tinflate.c",
"-I../../",
"-lX11",
"-lGL",
"-lm",
"-lpthread",
"-lpulse-simple",
"-lpulse",
"-o",
"../../../bin/OpenLara"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

View File

@@ -86,7 +86,7 @@
#define COS60 0.50000000000f
#define SQR(x) ((x)*(x))
#define randf() ((float)rand()/RAND_MAX)
#define randf() (float(rand())/float(RAND_MAX))
typedef signed char int8;
typedef signed short int16;