Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the prerequisites #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ The free Commmunity Edition of Visual Studio will work fine.

> **NOTE:** Make sure to install the `MSVC v142 - VS 2019 C++ x64/x86 build tools` from the _Individual Components_ list in the Visual Studio Installer interface. NVIDIA RTX Remix has only been tested with the Visual Studio 2019 build tools, and newer compiler versions may or may not work and/or lead to unexpected results/issues.

[Meson](https://mesonbuild.com/) - v0.61.4 has been tested, latest version should work. Follow [instructions](https://mesonbuild.com/SimpleStart.html#installing-meson) on how to install and reboot the PC before moving on (Meson will indicate as much).

Make sure PowerShell scripts are enabled. One-time system setup: run `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned` in an elevated PowerShell prompt, then close and reopen any existing PowerShell prompts.

# How to build

To generate the initial Visual Studio solutions and build, run `build_bridge_all.bat`, which will generate four separate solutions for the debug/release configurations for both 32 and 64 bit builds.
Expand Down
22 changes: 21 additions & 1 deletion build_common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@ function SetupVS {
Write-Host "vswhere found at: $vsWhere" -ForegroundColor Yellow


#
# Update submodules
#
git submodule update --init --recursive
if ( $LASTEXITCODE -ne 0 ) {
Write-Output "Failed to update submodules"
exit $LASTEXITCODE
}
Write-Host "Submodules updated" -ForegroundColor Yellow

#
# Make sure the external sources are exists
#
$CurrentDir = Get-Location
$detoursDir = [IO.Path]::Combine($CurrentDir, "ext", "Detours", "src")
if ( !( Test-Path -Path $detoursDir ) ) {
Write-Error "Detours not found. Aborting" -ErrorAction Stop
}
Write-Host "Detours found at: $detoursDir" -ForegroundColor Yellow

#
# Get path to Visual Studio installation using vswhere.
#
Expand Down Expand Up @@ -89,7 +109,7 @@ function PerformBuild {

Push-Location $CurrentDir
$mesonArgs = "setup --buildtype `"$BuildFlavour`" --backend vs `"$BuildSubDir`" --debug"
Start-Process "meson" -ArgumentList $mesonArgs -wait
Start-Process "meson" -NoNewWindow -ArgumentList $mesonArgs -wait
Pop-Location

if ( $LASTEXITCODE -ne 0 ) {
Expand Down