Build improvements (#1422)

Co-authored-by: Alexandru Macocian <amacocian@microsoft.com>
This commit is contained in:
2026-02-11 04:37:30 -08:00
parent ca526d352e
commit 176365b4a4
6 changed files with 44 additions and 14 deletions
+8 -12
View File
@@ -3,19 +3,15 @@
"configurations": [
{
"name": "Debug Daybreak.Linux",
"type": "coreclr",
"type": "dotnet",
"request": "launch",
"preLaunchTask": "build-linux",
"program": "${workspaceFolder}/Daybreak.Linux/bin/Debug/net10.0/linux-x64/Daybreak.dll",
"args": [],
"cwd": "${workspaceFolder}/Daybreak.Linux/bin/Debug/net10.0/linux-x64",
"env": {
"GDK_BACKEND": "x11",
"WEBKIT_DISABLE_DMABUF_RENDERER": "1",
"WEBKIT_DISABLE_COMPOSITING_MODE": "1"
},
"console": "integratedTerminal",
"stopAtEntry": false
"projectPath": "${workspaceFolder}/Daybreak.Linux/Daybreak.Linux.csproj"
},
{
"name": "Debug Daybreak.Windows",
"type": "dotnet",
"request": "launch",
"projectPath": "${workspaceFolder}/Daybreak.Windows/Daybreak.Windows.csproj"
}
]
}
+12
View File
@@ -12,6 +12,18 @@
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "build-windows",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Daybreak.Windows/Daybreak.Windows.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
]
}
@@ -0,0 +1,12 @@
{
"profiles": {
"Daybreak.Linux": {
"commandName": "Project",
"environmentVariables": {
"GDK_BACKEND": "x11",
"WEBKIT_DISABLE_DMABUF_RENDERER": "1",
"WEBKIT_DISABLE_COMPOSITING_MODE": "1"
}
}
}
}
@@ -0,0 +1,7 @@
{
"profiles": {
"Daybreak.Windows": {
"commandName": "Project"
}
}
}
+1 -2
View File
@@ -10,5 +10,4 @@ if (-not $env:WEBKIT_DISABLE_DMABUF_RENDERER) { $env:WEBKIT_DISABLE_DMABUF_RENDE
# Disable GPU compositing (blank windows on some drivers)
if (-not $env:WEBKIT_DISABLE_COMPOSITING_MODE) { $env:WEBKIT_DISABLE_COMPOSITING_MODE = "1" }
dotnet run --project Daybreak.Linux
dotnet run --project Daybreak.Linux
+4
View File
@@ -0,0 +1,4 @@
$ErrorActionPreference = "Stop"
$RepoRoot = Resolve-Path "$PSScriptRoot/.."
dotnet run --project Daybreak.Windows