Skip to content

Commit a93f685

Browse files
committed
Cleanup of Windows build scripts
1 parent d033437 commit a93f685

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

scripts/windows/TODO.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/windows/config.ps1

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
[CmdletBinding()]
2-
param (
3-
[Parameter()][String]
4-
$DepsDirectory="deps"
5-
)
6-
71
$ErrorActionPreference = "Stop"
82

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"
128

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"
1810

19-
cmake $ROOT `
20-
-B"$ROOT/tmp/build-windows" `
11+
cmake `
12+
-S $ROOT_PATH `
13+
-B "$BUILD_PATH" `
2114
-DCMAKE_INSTALL_PREFIX="$INSTALL_PATH" `
2215
-DCMAKE_PREFIX_PATH="$DEPS_PATH"

scripts/windows/dependencies-install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ param (
77
$SDLMixerVersion="1.2.12",
88

99
[Parameter()][String]
10-
$DepsDirectory="deps"
10+
$DepsDirectory="../../tmp/deps-windows"
1111
)
1212

1313
$ErrorActionPreference = "Stop"

0 commit comments

Comments
 (0)