Skip to content

Commit 979c3a2

Browse files
committed
[WIP] Add ADS to Windows builds
1 parent 4a78aea commit 979c3a2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

CI/windows/01_install_dependencies.ps1

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,37 @@ function Install-cef {
116116
}
117117
}
118118

119+
function Install-ads {
120+
Write-Status "Setup for dependency ADS"
121+
Ensure-Directory $DepsBuildDir
122+
123+
Write-Step "Clone repo..."
124+
Invoke-Expression "git clone https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git ADS"
125+
Set-Location -Path "$DepsBuildDir/ADS"
126+
127+
Write-Step "Run CMake..."
128+
$CmakePrefixPath = Resolve-Path -Path "${CheckoutDir}/../obs-build-dependencies/windows-deps-${WindowsDepsVersion}-${BuildArch}"
129+
$GeneratorPlatform = "$(if (${BuildArch} -eq "x64") { "x64" } else { "Win32" })"
130+
$CmakeCommand = @(
131+
"-S . -B build",
132+
"-G `"${CmakeGenerator}`"",
133+
"-DCMAKE_GENERATOR_PLATFORM=`"${GeneratorPlatform}`"",
134+
"-DCMAKE_SYSTEM_VERSION=`"${CmakeSystemVersion}`"",
135+
"-DCMAKE_PREFIX_PATH:PATH=`"${CmakePrefixPath}`"",
136+
"-DCMAKE_INSTALL_PREFIX=`"${CmakePrefixPath}`"",
137+
"-DBUILD_EXAMPLES=OFF",
138+
"-DBUILD_STATIC=OFF",
139+
"$(if (Test-Path Variable:$Quiet) { "-Wno-deprecated -Wno-dev --log-level=ERROR" })"
140+
)
141+
Invoke-Expression "cmake ${CmakeCommand}"
142+
143+
Write-Step "Build ADS..."
144+
Invoke-Expression "cmake --build build --config ${BuildConfiguration}"
145+
146+
Write-Step "Install ADS..."
147+
Invoke-Expression "cmake --install build --config ${BuildConfiguration}"
148+
}
149+
119150
function Install-Dependencies {
120151
Param(
121152
[String]$BuildArch = $(if (Test-Path variable:BuildArch) { "${BuildArch}" })
@@ -138,6 +169,8 @@ function Install-Dependencies {
138169
Invoke-Expression "${FunctionName} -Version ${DependencyVersion}"
139170
}
140171

172+
Install-ads
173+
141174
Ensure-Directory ${CheckoutDir}
142175
}
143176

0 commit comments

Comments
 (0)