mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:06:08 +00:00
Deploy: deployment.json: Sections per Config.
This commit is contained in:
parent
b60c87713b
commit
7b3ca14be8
@ -22,7 +22,7 @@
|
|||||||
"qt": [
|
"qt": [
|
||||||
"${QTPATH}/plugins/platforms | qwindows.dll | *d.dll"
|
"${QTPATH}/plugins/platforms | qwindows.dll | *d.dll"
|
||||||
],
|
],
|
||||||
"qt-tls?": [
|
"qt-tls | Win10": [
|
||||||
"${QTPATH}/plugins/tls | schannelbackend.dll | *dd.dll"
|
"${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]$TargetPath = ".\build",
|
||||||
[string]$BuildPath = "..\build",
|
[string]$BuildPath = "..\build",
|
||||||
[string]$RootPath = "..",
|
[string]$RootPath = "..",
|
||||||
[string]$QtPath = ".\build-qt\qtbase"
|
[string]$QtPath = ".\build-qt\qtbase",
|
||||||
|
[string]$Config = ""
|
||||||
)
|
)
|
||||||
|
|
||||||
echo "Setting up deployment files."
|
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++) {
|
for ($j = 0; $j -lt $sections.length; $j++) {
|
||||||
$sectionName = $sections[$j]
|
$sectionName = $sections[$j]
|
||||||
$sectionOptional = $sectionName -match '\?$'
|
$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"
|
echo " $sectionName"
|
||||||
|
|
||||||
$files = @($jsonTargetDir."$sectionName")
|
$files = @($jsonTargetDir."$sectionName")
|
||||||
|
Loading…
Reference in New Issue
Block a user