User:Geenz Linden

From Second Life Wiki
Revision as of 06:56, 12 October 2022 by Geenz Linden (talk | contribs) (Created page with "Some weird space bird crux thing or other making weird engine and rendering things on the internet! =Useful Scripts= ==Geenz's Build Environment Setup Script== Here's a power...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Some weird space bird crux thing or other making weird engine and rendering things on the internet!

Useful Scripts

Geenz's Build Environment Setup Script

Here's a powershell script I tend to use while I'm doing viewer development that automatically sets up some environment variables, and ensures the correct build variables are checked out.

For open source builds, make sure you change AUTOBUILD_CONFIGURATION to "RelWithDebInfoOS" or a similar open source configuration. Make sure you check out Build the Viewer on Windows for a couple more build configurations (such as ReleaseOS).

$execpath=Get-Location

$env:AUTOBUILD_ADDRSIZE=64
$env:AUTOBUILD_CONFIGURATION="RelWithDebInfo"
$env:AUTOBUILD_INSTALLABLE_CACHE="$execpath\autobuild-cache"
$env:AUTOBUILD_VARIABLES_DIR="$execpath\build-variables"
$env:AUTOBUILD_VARIABLES_FILE="$execpath\build-variables\variables"
$env:AUTOBUILD_VSVER=160

if((Test-Path -Path $env:AUTOBUILD_VARIABLES_DIR) -eq $false) {
    "Path does not exist.  Cloning."
    git clone https://bitbucket.org/lindenlab/build-variables.git
} else {
    "Build variables exist.  Skipping clone."
}

cd $env:AUTOBUILD_VARIABLES_DIR
git checkout viewer
cd $execpath