forked from WebKitForWindows/WebKitRequirements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRun-All.ps1
55 lines (44 loc) · 1.64 KB
/
Run-All.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Param (
# Common options
[Parameter()]
[string] $sourcePath = 'src',
[Parameter()]
[string] $buildPath = 'build',
[Parameter()]
[string] $installationPath = 'dist',
# Build-RequirementSource options
[Parameter()]
[ValidateSet('Release','Debug')]
[string] $buildType = 'Release',
[Parameter()]
[ValidateSet('ninja','vs2015','vs2017')]
[string] $generator = 'ninja',
[Parameter()]
[string] $platform = 'Windows'
)
#----------------------------------------------------------------------
# Get
#----------------------------------------------------------------------
# TODO: Remove CFLite https://github.com/WebKitForWindows/WinCairoRequirements/issues/9
& (Join-Path $PSScriptRoot Get-CFLite) -Root $installationPath;
& (Join-Path $PSScriptRoot Get-RequirementSource.ps1) -Root $sourcePath;
#----------------------------------------------------------------------
# Patch
#----------------------------------------------------------------------
& (Join-Path $PSScriptRoot Patch-RequirementSource.ps1) -Root $sourcePath;
#----------------------------------------------------------------------
# Build
#----------------------------------------------------------------------
$args = @{
Root = $sourcePath;
InstallPath = $installationPath;
BuildPath = $buildPath;
BuildType = $buildType;
Generator = $generator;
Platform = $platform;
}
& (Join-Path $PSScriptRoot Build-RequirementSource) @args
#----------------------------------------------------------------------
# Package
#----------------------------------------------------------------------
& (Join-Path $PSScriptRoot Package-RequirementSource.ps1) -Root $installationPath;