• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2
3set -ex
4
5ANGLE_REV="0518a3ff4d4e7e5b2ce8203358f719613a31c118"
6
7# DEPOT tools
8git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
9PWD=$(pwd)
10export PATH=$PWD/depot_tools:$PATH
11export DEPOT_TOOLS_UPDATE=0
12
13mkdir /angle-build
14pushd /angle-build
15git init
16git remote add origin https://chromium.googlesource.com/angle/angle.git
17git fetch --depth 1 origin "$ANGLE_REV"
18git checkout FETCH_HEAD
19
20# source preparation
21python3 scripts/bootstrap.py
22mkdir -p build/config
23gclient sync
24
25sed -i "/catapult/d" testing/BUILD.gn
26
27mkdir -p out/Release
28echo '
29is_debug = false
30angle_enable_swiftshader = false
31angle_enable_null = false
32angle_enable_gl = false
33angle_enable_vulkan = true
34angle_has_histograms = false
35build_angle_trace_perf_tests = false
36build_angle_deqp_tests = false
37angle_use_custom_libvulkan = false
38dcheck_always_on=true
39' > out/Release/args.gn
40
41if [[ "$DEBIAN_ARCH" = "arm64" ]]; then
42  build/linux/sysroot_scripts/install-sysroot.py --arch=arm64
43fi
44
45gn gen out/Release
46# depot_tools overrides ninja with a version that doesn't work.  We want
47# ninja with FDO_CI_CONCURRENT anyway.
48/usr/local/bin/ninja -C out/Release/
49
50mkdir /angle
51cp out/Release/lib*GL*.so /angle/
52ln -s libEGL.so /angle/libEGL.so.1
53ln -s libGLESv2.so /angle/libGLESv2.so.2
54
55rm -rf out
56
57popd
58rm -rf ./depot_tools
59