mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-24 11:22:39 +01:00
- add Windows-specific powershell script for setting up VC++ project files and dependencies
This commit is contained in:
parent
3ac05ca113
commit
1f59ac4d0f
37
windows_dev_prepare.ps1
Normal file
37
windows_dev_prepare.ps1
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
$windows_premake_url = 'https://github.com/premake/premake-core/releases/download/v5.0.0-beta1/premake-5.0.0-beta1-windows.zip'
|
||||||
|
$windows_jpeg_url = 'http://www.ijg.org/files/jpegsr9d.zip'
|
||||||
|
$windows_openal_url = 'https://openal-soft.org/openal-binaries/openal-soft-1.21.1-bin.zip'
|
||||||
|
$windows_sdl2_url = 'https://www.libsdl.org/release/SDL2-devel-2.0.20-VC.zip'
|
||||||
|
|
||||||
|
$project_folder = '.\\src_rebuild'
|
||||||
|
$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
|
||||||
|
|
||||||
|
Invoke-WebRequest -Uri $windows_openal_url -OutFile OPENAL.zip
|
||||||
|
Expand-Archive OPENAL.zip -DestinationPath $dependency_folder
|
||||||
|
|
||||||
|
Invoke-WebRequest -Uri $windows_jpeg_url -OutFile JPEG.zip
|
||||||
|
Expand-Archive JPEG.zip -DestinationPath $dependency_folder
|
||||||
|
|
||||||
|
# Generate project files
|
||||||
|
$windows_jpeg_dir = '.\\dependencies\\jpeg-9d'
|
||||||
|
$windows_openal_dir = '.\\dependencies\\openal-soft-1.21.1-bin'
|
||||||
|
$windows_sdl2_dir = '.\\dependencies\\SDL2-2.0.20'
|
||||||
|
|
||||||
|
$env:SDL2_DIR = $windows_sdl2_dir
|
||||||
|
$env:OPENAL_DIR = $windows_openal_dir
|
||||||
|
$env:JPEG_DIR = $windows_jpeg_dir
|
||||||
|
|
||||||
|
Set-Location -Path $project_folder
|
||||||
|
Rename-Item -Path ($windows_jpeg_dir + '\\jconfig.vc') -NewName "jconfig.h"
|
||||||
|
|
||||||
|
& .\\premake5 vs2019
|
||||||
|
|
||||||
|
# Open solution
|
||||||
|
& .\\project_vs2019_windows\\REDRIVER2.sln
|
Loading…
Reference in New Issue
Block a user