Skip to content

Commit

Permalink
Cleanup of Windows build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeef committed Jun 16, 2024
1 parent d033437 commit a93f685
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
1 change: 0 additions & 1 deletion scripts/windows/TODO.txt

This file was deleted.

25 changes: 9 additions & 16 deletions scripts/windows/config.ps1
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
[CmdletBinding()]
param (
[Parameter()][String]
$DepsDirectory="deps"
)

$ErrorActionPreference = "Stop"

$ROOT = $(Get-Location)/../../
$INSTALL_PATH = "$ROOT/tmp/install-windows"
$DEPS_PATH = "$ROOT/$DepsDirectory/SDL"
$ROOT_PATH = "$(Get-Location)/../../"
$TMP_PATH = "$ROOT_PATH/tmp"
$DEPS_PATH = "$TMP_PATH/deps-windows/SDL"
$INSTALL_PATH = "$TMP_PATH/install-windows"
$BUILD_PATH = "$TMP_PATH/build-windows"

if (Test-Path "$ROOT/tmp/build-windows")
{
Remove-Item -Force -Recurse "$ROOT/tmp/build-windows"
}
New-Item -Path "$ROOT/tmp/build-windows" -ItemType "Directory"
New-Item -Path "$BUILD_PATH" -ItemType "Directory"

cmake $ROOT `
-B"$ROOT/tmp/build-windows" `
cmake `
-S $ROOT_PATH `
-B "$BUILD_PATH" `
-DCMAKE_INSTALL_PREFIX="$INSTALL_PATH" `
-DCMAKE_PREFIX_PATH="$DEPS_PATH"
2 changes: 1 addition & 1 deletion scripts/windows/dependencies-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ param (
$SDLMixerVersion="1.2.12",

[Parameter()][String]
$DepsDirectory="deps"
$DepsDirectory="../../tmp/deps-windows"
)

$ErrorActionPreference = "Stop"
Expand Down

0 comments on commit a93f685

Please sign in to comment.