Skip to content

Instantly share code, notes, and snippets.

@earlgreyxxx
Created August 7, 2021 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save earlgreyxxx/9319f1be85ca1080be805756054d91b6 to your computer and use it in GitHub Desktop.
Save earlgreyxxx/9319f1be85ca1080be805756054d91b6 to your computer and use it in GitHub Desktop.
{
"version": "2.0.0",
"tasks": [
{
"label": "run nmake",
"type": "shell",
"command": "nmake.exe",
"args": [
"debug=1"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "nmakeによるビルド",
"problemMatcher": []
},
{
"label": "run nmake clean",
"type": "shell",
"command": "nmake.exe",
"args": [
"clean"
],
"detail": "nmake clean 実行"
},
{
"type": "shell",
"label": "run cl.exe",
"command": "cl.exe",
"args": [
"/nologo",
"/DUNICODE",
"/D_UNICODE",
"/D_DEBUG",
"/Fo:${fileDirname}\\output\\",
"/Fd:${fileDirname}\\output\\",
"/Fe:${fileDirname}\\${fileBasenameNoExtension}.exe",
"/Zi",
"/EHsc",
"${file}",
"/link",
"/PDB:${fileDirname}\\output\\${fileBasenameNoExtension}.pdb",
"/ILK:${fileDirname}\\output\\${fileBasenameNoExtension}.ilk"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$msCompile"
],
"group": "build",
"detail": "CL.exeによるビルド",
"dependsOn": "run mkdir"
},
{
"type": "shell",
"label": "run csc.exe",
"command": "csc.exe",
"args": [
"-nologo",
"-target:exe",
"-platform:anycpu",
"-debug+",
"-debug:portable",
"-optimize-",
"-unsafe+",
"-pdb:${fileDirname}\\output\\${fileBasenameNoExtension}.pdb",
"-out:${fileDirname}\\output\\${fileBasenameNoExtension}.exe",
"${file}",
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$msCompile"
],
"group": "build",
"detail": "CSC.exeによるビルド",
"dependsOn": "run mkdir"
},
{
"type": "shell",
"label": "run mkdir",
"command": [
"IF",
"NOT",
"EXIST",
"output",
"MKDIR",
"output"
],
"group": "build",
"detail": "出力フォルダがなければ作成"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment