Building for UWP
Set up the required build pieces
- Install Python 2 and Python 3
- Set up virtualenv for Python 2 by running
path\to\python2.exe -m pip install virtualenv - Set the
PYTHON3environment variable to point to a python3 executable. - Install Windows 10 SDK, version 1809 (10.0.17763.0) and Visual Studio 2019
- from a powershell terminal with administrator privileges, run this command followed by these commands to install the required components for building FxR
- (optional) Install the HoloLens 2 emulator
- Open
support/hololens/ServoApp.slnin Visual Studio 2019 - Activate Developer Mode (Settings -> For developers -> Developer mode) if it is not already active.
(Option 1) Make a debug desktop build
- Open a terminal to the root of the Servo repository.
path\to\python2.exe mach build -d --uwp- When the build is complete, select the "Debug" and "x64" build configurations in Visual Studio.
- Press the "> Local Machine" button to build and launch the UWP app.
(Option 2) Make a release desktop build
- Open a terminal to the root of the Servo repository.
path\to\python2.exe mach build -r --uwp- When the build is complete, select the "Release" and "x64" build configurations in Visual Studio.
- Press the "> Local Machine" button to build and launch the UWP app.
(Option 3) Make a release arm64 build for HoloLens 2
- Open a terminal to the root of the Servo repository.
path\to\python2.exe mach build -r --uwp --win-arm64- When the build is complete, select the "Release" and "ARM64" build configuration in Visual Studio.
- Press the "> Device" button to build and then launch the UWP app on a connected device.
(Sidebar) Make a build with a debug version of ANGLE for investigating GL issues
- Open the NuGet Package manager, select "Include prereleases", and select the appropriate -debug package of ANGLE.WindowsStore.Servo:
- Configure Visual Studio to allow code other than Just My Code to be debugged:
- Start a debugging session, open the Modules window (Debug | Windows | Modules), find the entry for libEGL, and select "Load Symbols":
- The symbols can be found in the folder
packages\ANGLE.WindowsStore.Servo.VERSION\bin\UAP\ARCH, and the source (for step debugging) can be found inpackages\ANGLE.WindowsStore.Servo.VERSION\src.
See Publishing a new Nuget ANGLE version for how the nuget debug package is created.