Created
June 26, 2021 09:14
-
-
Save h1romas4/2fb843478ef62e165893aaa753e302c9 to your computer and use it in GitHub Desktop.
vscode C/C++ project defines example (.vscode/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"intelliSenseMode": "clang-x64", | |
"cStandard": "c11", | |
"cppStandard": "c++17", | |
"includePath": [ | |
"${workspaceFolder}/src/**", | |
"${workspaceFolder}/3rdparty/**", | |
"${workspaceFolder}/build/generated/**" | |
], | |
"defines": [ | |
"SDLMAME_UNIX=1" | |
], | |
"compilerPath": "/usr/bin/clang" | |
} | |
], | |
"version": 4 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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": "vgmplay 起動 (LLDB debug)", | |
"type": "lldb", | |
"request": "launch", | |
"program": "${workspaceFolder}/vgmplay", | |
"args": [ | |
"vgmplay", | |
"-window", | |
"-resolution", | |
"1280x768" | |
], | |
"cwd": "${workspaceFolder}", | |
"stopOnEntry": false | |
}, | |
{ | |
"name": "vgmplay 起動", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceFolder}/vgmplay", | |
"args": [ | |
"vgmplay", | |
"-window", | |
"-resolution", | |
"1280x768" | |
], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole": false, | |
"MIMode": "gdb", | |
"setupCommands": [ | |
{ | |
"description": "gdb の再フォーマットを有効にする", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
] | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "make vgmplay (debug)", | |
"type": "shell", | |
"command": "make", | |
"args": [ | |
"-j8", | |
"OPTIMIZE=0", | |
"SYMBOLS=1", | |
"OVERRIDE_CC=clang", | |
"OVERRIDE_CXX=clang++", | |
"SUBTARGET=vgmplay", | |
"SOURCES=src/mame/drivers/vgmplay.cpp" | |
], | |
"group": "build", | |
"presentation": { | |
"clear": true, | |
"focus": true | |
}, | |
"problemMatcher": "$gcc" | |
}, | |
{ | |
"label": "make vgmplay (release)", | |
"type": "shell", | |
"command": "make", | |
"args": [ | |
"-j8", | |
"OVERRIDE_CC=clang", | |
"OVERRIDE_CXX=clang++", | |
"SUBTARGET=vgmplay", | |
"SOURCES=src/mame/drivers/vgmplay.cpp" | |
], | |
"group": "build", | |
"presentation": { | |
"clear": true, | |
"focus": true | |
}, | |
"problemMatcher": "$gcc" | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment