mirror of
https://github.com/tnodir/fort
synced 2024-11-15 01:55:44 +00:00
Deploy: deployment.json: Sections per Config.
This commit is contained in:
parent
b60c87713b
commit
7b3ca14be8
@ -22,7 +22,7 @@
|
||||
"qt": [
|
||||
"${QTPATH}/plugins/platforms | qwindows.dll | *d.dll"
|
||||
],
|
||||
"qt-tls?": [
|
||||
"qt-tls | Win10": [
|
||||
"${QTPATH}/plugins/tls | schannelbackend.dll | *dd.dll"
|
||||
]
|
||||
}
|
||||
|
1
deploy/setup-deployment-win10.bat
Normal file
1
deploy/setup-deployment-win10.bat
Normal file
@ -0,0 +1 @@
|
||||
@%~dp0setup-deployment.bat -QtPath ".\build-qt\qtbase" -Config Win10
|
1
deploy/setup-deployment-win7.bat
Normal file
1
deploy/setup-deployment-win7.bat
Normal file
@ -0,0 +1 @@
|
||||
@%~dp0setup-deployment.bat -QtPath ".\build-qt-win7\qtbase" -Config Win7
|
@ -2,7 +2,8 @@ param (
|
||||
[string]$TargetPath = ".\build",
|
||||
[string]$BuildPath = "..\build",
|
||||
[string]$RootPath = "..",
|
||||
[string]$QtPath = ".\build-qt\qtbase"
|
||||
[string]$QtPath = ".\build-qt\qtbase",
|
||||
[string]$Config = ""
|
||||
)
|
||||
|
||||
echo "Setting up deployment files."
|
||||
@ -27,6 +28,18 @@ for ($i = 0; $i -lt $targetDirs.length; $i++) {
|
||||
for ($j = 0; $j -lt $sections.length; $j++) {
|
||||
$sectionName = $sections[$j]
|
||||
$sectionOptional = $sectionName -match '\?$'
|
||||
|
||||
if ($Config -And $sectionName.Contains('|')) {
|
||||
$sectionParts = $sectionName.Split('|')
|
||||
|
||||
$sectionConf = $sectionParts[1].Trim().Split(' ')
|
||||
|
||||
if ($sectionConf -notcontains $Config) {
|
||||
Write-Host -ForeGround Yellow " $sectionName (Skipped for $Config)"
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
echo " $sectionName"
|
||||
|
||||
$files = @($jsonTargetDir."$sectionName")
|
||||
|
Loading…
Reference in New Issue
Block a user