Skip to content

Instantly share code, notes, and snippets.

@h1romas4
Created June 26, 2021 09:14
Show Gist options
  • Save h1romas4/2fb843478ef62e165893aaa753e302c9 to your computer and use it in GitHub Desktop.
Save h1romas4/2fb843478ef62e165893aaa753e302c9 to your computer and use it in GitHub Desktop.
vscode C/C++ project defines example (.vscode/)
{
"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
}
{
// 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
}
]
}
]
}
{
// 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