mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 06:53:41 +00:00
Added vscode config files
This commit is contained in:
parent
69bf328851
commit
52daf5c5b6
17
.gitignore
vendored
17
.gitignore
vendored
@ -24,7 +24,6 @@ build/
|
||||
*.app
|
||||
|
||||
# Generated by Visual Studio
|
||||
.vscode/
|
||||
.vs/
|
||||
*.suo
|
||||
*.user
|
||||
@ -58,6 +57,22 @@ build/
|
||||
*.sublime-workspace
|
||||
*.sublime-project
|
||||
|
||||
# Created by https://www.gitignore.io/api/visualstudiocode
|
||||
# Edit at https://www.gitignore.io/?templates=visualstudiocode
|
||||
|
||||
### VisualStudioCode ###
|
||||
.vscode/* # Maybe .vscode/**/* instead - see comments
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
|
||||
### VisualStudioCode Patch ###
|
||||
# Ignore all local history of files
|
||||
**/.history
|
||||
|
||||
# End of https://www.gitignore.io/api/visualstudiocode
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
|
||||
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "debug",
|
||||
"type": "cppdbg",
|
||||
"miDebuggerPath": "c:\\mingw64\\bin\\gdb.exe",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/build/SDL_Minigame.exe",
|
||||
"cwd": "${workspaceFolder}",
|
||||
"preLaunchTask": "build-debug"
|
||||
}
|
||||
]
|
||||
}
|
||||
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"cmake.configureOnOpen": true,
|
||||
"files.associations": {
|
||||
"iostream": "cpp"
|
||||
}
|
||||
}
|
||||
67
.vscode/tasks.json
vendored
Normal file
67
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "shell",
|
||||
"label": "build-engine-debug",
|
||||
"command": "cd build; cmake -DCMAKE_BUILD_TYPE=Debug; cmake --build .",
|
||||
"problemMatcher": [],
|
||||
"group": "build"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"label": "build-engine",
|
||||
"command": "cd build; cmake -DCMAKE_BUILD_TYPE=Release; cmake --build .",
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "docker-build",
|
||||
"label": "build-doxygen",
|
||||
"dockerBuild": {
|
||||
"context": "${workspaceRoot}/docs/docker",
|
||||
"tag": "vego_doxygen-docker",
|
||||
},
|
||||
"problemMatcher": [],
|
||||
},
|
||||
{
|
||||
"type": "docker-run",
|
||||
"label": "gen-doxygen",
|
||||
"dockerRun": {
|
||||
"image": "vego_doxygen-docker",
|
||||
"remove": true,
|
||||
"volumes": [
|
||||
{
|
||||
"localPath": "${workspaceFolder}",
|
||||
"containerPath": "/source"
|
||||
},
|
||||
{
|
||||
"localPath": "${workspaceFolder}/docs",
|
||||
"containerPath": "/output"
|
||||
},
|
||||
{
|
||||
"localPath": "${workspaceFolder}/docs/Doxyfile",
|
||||
"containerPath": "/Doxyfile"
|
||||
},
|
||||
]
|
||||
},
|
||||
"problemMatcher": [],
|
||||
},
|
||||
{
|
||||
"type": "process",
|
||||
"label": "open-doxygen",
|
||||
"command": "explorer",
|
||||
"windows": {
|
||||
"command": "explorer.exe"
|
||||
},
|
||||
"args": ["${workspaceFolder}\\docs\\html\\index.html"],
|
||||
"problemMatcher": [],
|
||||
"dependsOn": "gen-doxygen",
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -34,8 +34,8 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
|
||||
)
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -fno-omit-frame-pointer")
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE "-fsanitize=address")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") # -fsanitize=address -fno-omit-frame-pointer")
|
||||
#target_link_libraries(${PROJECT_NAME} PRIVATE "-fsanitize=address")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user