-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·27 lines (21 loc) · 828 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·27 lines (21 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/bash
# Cloning
git clone https://chromium.googlesource.com/angle/angle
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export BUILDROOT=`pwd`
# Add depot_tools to PATH, for gclient/gn and friends
export PATH=$BUILDROOT/depot_tools:$PATH
# Download everything else
cd angle
scripts/bootstrap.py
gclient sync
sudo ./build/install-build-deps.sh
# Apply custom patches for GGP public builds
git apply $BUILDROOT/patches/XXXX-Vulkan-Add-support-for-swap_control_tear-behavior-wi.patch
# This header has to be in Vulkan-Headers!
mkdir third_party/vulkan-headers/src/include/ggp_c
cat > third_party/vulkan-headers/src/include/ggp_c/vulkan_types.h << EOF
typedef uint64_t GgpFrameToken;
typedef uint32_t GgpStreamDescriptor;
static const GgpStreamDescriptor kGgpPrimaryStreamDescriptor = 1;
EOF