Skip to content

Commit 5b7234a

Browse files
committed
bisect script nice
1 parent 1d61407 commit 5b7234a

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

run.sh

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/bin/bash
2+
set -euxo pipefail
3+
4+
OUT_DIR="out/android-arm64-testing"
5+
PROJECT_DIR="/home/tom/Desktop/Projects/StudioProjects/PojavLauncher/testing/use-fcl-old-angle"
6+
DEST_DIR="$PROJECT_DIR/app_pojavlauncher/src/main/jniLibs/arm64-v8a"
7+
8+
export PATH=/home/tom/Desktop/Projects/StudioProjects/depot_tools:$PATH
9+
gclient sync -RDf
10+
rm -r $OUT_DIR
11+
mkdir $OUT_DIR
12+
echo "# Build arguments go here.
13+
# See \"gn args <out_dir> --list\" for available build arguments.
14+
# Standard boilerplate for our usage
15+
target_os = \"android\"
16+
target_cpu = \"arm64\"
17+
18+
is_component_build = false # Dynamically links dependencies, rather than static
19+
is_debug = false # Sets as \"release\" build
20+
angle_expose_non_conformant_extensions_and_versions = true # Enables ES3.2
21+
angle_build_tests = false # This is a big portion of the build time that is just never used because this goes into CI, so keep it off
22+
23+
# Stops libs.uncompressed from being built, which is only when symbol_level != 0
24+
symbol_level = 0
25+
26+
# Stops ANGLE APKs from being built (we are never using those)
27+
angle_standalone = false
28+
29+
# Disable all unneeded backends
30+
angle_enable_gl = false
31+
angle_enable_d3d9 = false
32+
angle_enable_d3d11 = false
33+
angle_enable_null = false
34+
angle_enable_metal = false
35+
angle_enable_wgpu = false
36+
angle_enable_swiftshader = false
37+
38+
angle_enable_vulkan = true
39+
angle_enable_essl = true
40+
angle_enable_glsl = true
41+
42+
# Other stuff
43+
angle_has_frame_capture = false # Turns off frame capture (we don't use it, why would you?! Also turns off rapidJSON)
44+
build_angle_deqp_tests = false # This was somehow being set to true, am forcing it false
45+
angle_build_all = false # Why would we need all of it? (yes this is redundant)
46+
# libcxx_abi_unstable = false # Apparently breaks std::string, doesn't seem to anymore. Comments mention this option causing slowdowns." \
47+
> out/android-arm64-testing/args.gn
48+
49+
gn gen $OUT_DIR
50+
autoninja -C "$OUT_DIR"
51+
52+
cp "$OUT_DIR/libGLESv1_CM_angle.so" "$DEST_DIR"
53+
cp "$OUT_DIR/libGLESv2_angle.so" "$DEST_DIR"
54+
cp "$OUT_DIR/libEGL_angle.so" "$DEST_DIR"
55+
56+
cd "$PROJECT_DIR"
57+
58+
git add "$DEST_DIR/libGLESv1_CM_angle.so"
59+
git add "$DEST_DIR/libGLESv2_angle.so"
60+
git add "$DEST_DIR/libEGL_angle.so"
61+
62+
git commit -m "test(ANGLE): Bisecting, based on $(git rev-parse HEAD)"
63+
64+
./gradlew installDebug

0 commit comments

Comments
 (0)