-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Building for UWP
Josh Matthews edited this page Jul 8, 2020
·
26 revisions
- Install Python 2 and Python 3
- Set up virtualenv for Python 2 by running
path\to\python2.exe -m pip install virtualenv
- Set the
PYTHON3
environment 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.sln
in Visual Studio 2019 - Activate Developer Mode (Settings -> For developers -> Developer mode) if it is not already active.
- 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.
- 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.
- 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.
- 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.