-
Notifications
You must be signed in to change notification settings - Fork 5
/
windows_dev_prepare.ps1
25 lines (16 loc) · 803 Bytes
/
windows_dev_prepare.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
$windows_premake_url = 'https://github.com/premake/premake-core/releases/download/v5.0.0-beta1/premake-5.0.0-beta1-windows.zip'
$windows_sdl2_url = 'https://www.libsdl.org/release/SDL2-devel-2.0.20-VC.zip'
$project_folder = '.\\'
$dependency_folder = $project_folder + '\\dependencies'
# Download required dependencies
Invoke-WebRequest -Uri $windows_premake_url -OutFile PREMAKE.zip
Expand-Archive PREMAKE.zip -DestinationPath $project_folder
Invoke-WebRequest -Uri $windows_sdl2_url -OutFile SDL2.zip
Expand-Archive SDL2.zip -DestinationPath $dependency_folder
# Generate project files
$windows_sdl2_dir = '.\\dependencies\\SDL2-2.0.20'
$env:SDL2_DIR = $windows_sdl2_dir
Set-Location -Path $project_folder
& .\\premake5 vs2019
# Open solution
& .\\project_vs2019_windows\\OpenDriver2Tools.sln