File tree Expand file tree Collapse file tree 3 files changed +10
-18
lines changed Expand file tree Collapse file tree 3 files changed +10
-18
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- [CmdletBinding ()]
2
- param (
3
- [Parameter ()][String ]
4
- $DepsDirectory = " deps"
5
- )
6
-
7
1
$ErrorActionPreference = " Stop"
8
2
9
- $ROOT = $ (Get-Location )/ ../ ../
10
- $INSTALL_PATH = " $ROOT /tmp/install-windows"
11
- $DEPS_PATH = " $ROOT /$DepsDirectory /SDL"
3
+ $ROOT_PATH = " $ ( Get-Location ) /../../"
4
+ $TMP_PATH = " $ROOT_PATH /tmp"
5
+ $DEPS_PATH = " $TMP_PATH /deps-windows/SDL"
6
+ $INSTALL_PATH = " $TMP_PATH /install-windows"
7
+ $BUILD_PATH = " $TMP_PATH /build-windows"
12
8
13
- if (Test-Path " $ROOT /tmp/build-windows" )
14
- {
15
- Remove-Item - Force - Recurse " $ROOT /tmp/build-windows"
16
- }
17
- New-Item - Path " $ROOT /tmp/build-windows" - ItemType " Directory"
9
+ New-Item - Path " $BUILD_PATH " - ItemType " Directory"
18
10
19
- cmake $ROOT `
20
- - B" $ROOT /tmp/build-windows" `
11
+ cmake `
12
+ - S $ROOT_PATH `
13
+ - B " $BUILD_PATH " `
21
14
- DCMAKE_INSTALL_PREFIX= " $INSTALL_PATH " `
22
15
- DCMAKE_PREFIX_PATH= " $DEPS_PATH "
Original file line number Diff line number Diff line change 7
7
$SDLMixerVersion = " 1.2.12" ,
8
8
9
9
[Parameter ()][String ]
10
- $DepsDirectory = " deps"
10
+ $DepsDirectory = " ../../tmp/ deps-windows "
11
11
)
12
12
13
13
$ErrorActionPreference = " Stop"
You can’t perform that action at this time.
0 commit comments