Skip to content

Commit 2ff39ba

Browse files
authored
Add build scripts
1 parent ee2cc7a commit 2ff39ba

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

build-android.gen.gn

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
target_os = "android"
2+
target_cpu = "$TARGET_ARCH"
3+
angle_enable_vulkan = true
4+
is_component_build = false
5+
#is_official_build = true
6+
is_debug = false
7+
android_ndk_api_level = 26

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
3+
export PATH=$PWD/depot_tools/:$PATH
4+
fetch angle
5+
echo "target_os = ['android']" >> .gclient
6+
gclient sync
7+
mkdir out
8+
mkdir build_out

build_arch.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
mkdir out/Android-$TARGET_ARCH
3+
mkdir build_out/$ANDROID_TARGET
4+
envsubst < build-android.gen.gn > out/Android-$TARGET_ARCH/args.gn
5+
gn gen out/Android-$TARGET_ARCH
6+
autoninja -C out/Android-$TARGET_ARCH libEGL libGLESv2
7+
cp out/Android-$TARGET_ARCH/libGLESv2_angle.so build_out/$ANDROID_TARGET/
8+
cp out/Android-$TARGET_ARCH/libEGL_angle.so build_out/$ANDROID_TARGET/

0 commit comments

Comments
 (0)