-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup-angle.sh
More file actions
executable file
·43 lines (33 loc) · 2.68 KB
/
setup-angle.sh
File metadata and controls
executable file
·43 lines (33 loc) · 2.68 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
set -e
apply_git_patch() {
local patch_file=$1
if git apply --check --reverse < "$patch_file" > /dev/null 2>&1; then
echo "Already applied $patch_file"
else
if git apply < "$patch_file" > /dev/null 2>&1; then
echo "Applied $patch_file"
else
echo "Failed to apply $patch_file" >&2
exit 1
fi
fi
}
cd "$(dirname "$0")"
export PATH="$(pwd)/depot_tools:$PATH"
cd angle
python3 scripts/bootstrap.py
gclient sync
apply_git_patch ../angle_include_fix.patch
#apply_git_patch ../angle_metal_default_fix.patch
apply_git_patch ../angle_feature_util_fix.patch
apply_git_patch ../angle_feature_util_metal_check.patch
apply_git_patch ../angle_disable_posix_handler.patch
apply_git_patch ../angle_metal_shader_prebuild.patch
apply_git_patch ../angle_metal_blit_flush_hack.patch
gn gen out/Debug-iphonesimulator_arm64 --args="is_debug=true enable_dsyms=true target_os=\"ios\" target_cpu=\"arm64\" ios_enable_code_signing=false angle_enable_metal=true angle_enable_gl=false angle_enable_null=false angle_enable_wgpu=false ios_deployment_target=\"11.0\" angle_build_all=false target_environment=\"simulator\""
gn gen out/Debug-iphonesimulator_x86_64 --args="is_debug=true enable_dsyms=true target_os=\"ios\" target_cpu=\"x64\" ios_enable_code_signing=false angle_enable_metal=true angle_enable_gl=false angle_enable_null=false angle_enable_wgpu=false ios_deployment_target=\"11.0\" angle_build_all=false target_environment=\"simulator\""
gn gen out/Debug-iphoneos --args="is_debug=true enable_dsyms=true target_os=\"ios\" ios_enable_code_signing=false angle_enable_metal=true angle_enable_gl=false angle_enable_null=false angle_enable_wgpu=false ios_deployment_target=\"11.0\" angle_build_all=false target_environment=\"device\""
gn gen out/Release-iphonesimulator_arm64 --args="is_official_build=true target_os=\"ios\" target_cpu=\"arm64\" ios_enable_code_signing=false angle_enable_metal=true angle_enable_gl=false angle_enable_null=false angle_enable_wgpu=false ios_deployment_target=\"11.0\" angle_build_all=false target_environment=\"simulator\""
gn gen out/Release-iphonesimulator_x86_64 --args="is_official_build=true target_os=\"ios\" target_cpu=\"x64\" ios_enable_code_signing=false angle_enable_metal=true angle_enable_gl=false angle_enable_null=false angle_enable_wgpu=false ios_deployment_target=\"11.0\" angle_build_all=false target_environment=\"simulator\""
gn gen out/Release-iphoneos --args="is_official_build=true target_os=\"ios\" ios_enable_code_signing=false angle_enable_metal=true angle_enable_gl=false angle_enable_null=false angle_enable_wgpu=false ios_deployment_target=\"11.0\" angle_build_all=false target_environment=\"device\""