Update Build settings.

This commit is contained in:
haru-s 2023-01-24 10:56:14 +09:00
parent f31d2dc6f2
commit 0dc97a9c01
2 changed files with 33 additions and 47 deletions

69
.vscode/tasks.json vendored
View file

@ -3,71 +3,48 @@
"tasks": [
{
"type": "dub",
"label": "dub build dfl",
"run": false,
"cwd": "c:/d/gitproj/dfl",
"compiler": "$current",
"archType": "$current",
"buildType": "$current",
"configuration": "$current",
"problemMatcher": [
"$dmd"
],
"group": "build",
"label": "dub: Build dfl",
"detail": "dub build --compiler=dmd.EXE -a=x86_64 -b=debug"
},
{
"label": "dub: Build textbox_sample",
"type": "dub",
"run": false,
"cwd": "c:/d/gitproj/dfl/examples/textbox",
"cwd": ".",
"compiler": "$current",
"archType": "$current",
"buildType": "$current",
"configuration": "library",
"problemMatcher": [
"$dmd"
],
"dub_args": [
"--parallel",
"--root=C:\\d\\gitproj\\dfl\\examples\\textbox"
"--parallel"
],
"group": "build"
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"clear": true
}
},
{
"label": "dub: Build trackbar",
"type": "dub",
"run": false,
"cwd": "c:/d/gitproj/dfl/examples/trackbar",
"label": "dub test dfl",
"run": true,
"cwd": ".",
"compiler": "$current",
"archType": "$current",
"buildType": "$current",
"buildType": "unittest",
"configuration": "unittest",
"problemMatcher": [
"$dmd"
],
"dub_args": [
"--parallel",
"--root=C:\\d\\gitproj\\dfl\\examples\\trackbar"
"--parallel"
],
"group": "build"
},
{
"type": "dub",
"run": false,
"cwd": "c:/d/gitproj/dfl/examples/buttons",
"compiler": "$current",
"archType": "$current",
"buildType": "$current",
"configuration": "$current",
"problemMatcher": [
"$dmd"
],
"dub_args": [
"--parallel",
"--root=C:\\d\\gitproj\\dfl\\examples\\buttons"
],
"group": "build",
"label": "dub: Build buttons_example",
"detail": "dub build --compiler=dmd -a=x86_64 -b=debug -c=application"
"group": {
"kind": "test"
},
"presentation": {
"clear": true
}
}
]
}

View file

@ -8,7 +8,6 @@
"description": "D Forms Library, or DFL, is a Win32 windowing library for the D language.",
"license": "in license.txt",
"name": "dfl",
"targetType": "staticLibrary",
"targetPath": "bin",
"targetName": "dfl_dub",
"homepage": "https://github.com/Rayerd/dfl",
@ -48,5 +47,15 @@
"$DFL_PACKAGE_DIR/lib/windows-x86_64/ole32",
"$DFL_PACKAGE_DIR/lib/windows-x86_64/OLEAUT32",
"$DFL_PACKAGE_DIR/lib/windows-x86_64/ws2_32"
],
"configurations": [
{
"name" : "library",
"targetType": "staticLibrary"
},
{
"name" : "unittest",
"targetType": "staticLibrary"
}
]
}