Last active
August 30, 2024 17:31
-
-
Save assiless/f2647c000667a4a4a6364a6d9f7b86cd to your computer and use it in GitHub Desktop.
msys2 in vscode
This file contains 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": "MSYS", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"Generated Files/**", | |
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/include", | |
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/cppwinrt", | |
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/shared", | |
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/ucrt", | |
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/um", | |
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/winrt" | |
], | |
"defines": ["_DEBUG", "UNICODE", "_UNICODE"], | |
"windowsSdkVersion": "10.0.22621.0", | |
"compilerPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe", | |
"cStandard": "c17", | |
"cppStandard": "c++17", | |
"intelliSenseMode": "windows-msvc-x64" | |
}, | |
{ | |
"name": "GCC", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"defines": ["_DEBUG", "UNICODE", "_UNICODE"], | |
"compilerPath": "C:/msys64/mingw64/bin/g++.exe", | |
"cStandard": "c11", | |
"cppStandard": "c++17", | |
"intelliSenseMode": "windows-gcc-x64" | |
} | |
], | |
"version": 4 | |
} |
This file contains 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
{ | |
// ${workspaceFolder} - /home/your-username/your-project | |
// ${workspaceFolderBasename} - your-project | |
// ${file} - /home/your-username/your-project/folder/file.ext | |
// ${relativeFile} - folder/file.ext | |
// ${fileBasename} - file.ext | |
// ${fileBasenameNoExtension} - file | |
// ${fileDirname} - /home/your-username/your-project/folder | |
// ${fileExtname} - .ext | |
// ${lineNumber} - 5 | |
// ${selectedText} - Text selected in your code editor | |
// 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": "(gdb) Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${fileDirname}/${fileBasenameNoExtension}.exe", | |
"args": [], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole": true, | |
"MIMode": "gdb", | |
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
], | |
"preLaunchTask": "gcc" | |
} | |
] | |
} |
This file contains 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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "target", | |
"command": "C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/MSBuild.exe", | |
"args": [ | |
"${workspaceRoot}/ShareTarget.sln", | |
"-t:${input:target}", | |
"-verbosity:${input:verbosity}", | |
"-property:Configuration=${input:Configuration}", | |
"-property:Platform=${input:Platform}" | |
], | |
"problemMatcher": "$msCompile" | |
}, | |
{ | |
"label": "build ${fileBasenameNoExtension}", | |
"type": "shell", | |
"command": "g++", | |
"args": [ | |
// "-std=c11", | |
"-g", | |
"-fexec-charset=GBK", | |
"${file}", | |
"-o", | |
"${fileDirname}/${fileBasenameNoExtension}.exe", | |
"-Wall", | |
"-static-libgcc" | |
], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
} | |
} | |
], | |
"inputs": [ | |
{ | |
"id": "target", | |
"description": "target", | |
"default": "build", | |
"options": [ | |
"clean", | |
"build", | |
"rebuild", | |
"clean;build", | |
"MarkupCompilePass1" | |
], | |
"type": "pickString" | |
}, | |
{ | |
"id": "verbosity", | |
"description": "verbose", | |
"default": "Minimal", | |
"options": [ | |
"Quiet", | |
"Minimal", | |
"Normal", | |
"Detailed", | |
"Diagnostic" | |
], | |
"type": "pickString" | |
}, | |
{ | |
"id": "verbosity", | |
"description": "verbose", | |
"default": "Minimal", | |
"options": [ | |
"Quiet", | |
"Minimal", | |
"Normal", | |
"Detailed", | |
"Diagnostic" | |
], | |
"type": "pickString" | |
}, | |
{ | |
"id": "Platform", | |
"description": "Platform", | |
"default": "x64", | |
"options": [ | |
"ARM", | |
"ARM64", | |
"x64", | |
"x86" | |
], | |
"type": "pickString" | |
}, | |
{ | |
"id": "Configuration", | |
"description": "Configuration", | |
"default": "Debug", | |
"options": [ | |
"Debug", | |
"Release" | |
], | |
"type": "pickString" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment