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:
24
src/platform/nix/.vscode/launch.json
vendored
Normal file
24
src/platform/nix/.vscode/launch.json
vendored
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
}
|
5
src/platform/nix/.vscode/settings.json
vendored
Normal file
5
src/platform/nix/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"typeinfo": "cpp"
|
||||
}
|
||||
}
|
47
src/platform/nix/.vscode/tasks.json
vendored
Normal file
47
src/platform/nix/.vscode/tasks.json
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user