Skip to content

Commit b4e7299

Browse files
committed
build[args.gn]: Only build whats needed and add comments
1 parent d2a2498 commit b4e7299

4 files changed

Lines changed: 120 additions & 12 deletions

File tree

out/android-arm/args.gn

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
11
# Build arguments go here.
22
# See "gn args <out_dir> --list" for available build arguments.
3+
# Standard boilerplate for our usage
34
target_os = "android"
45
target_cpu = "arm"
6+
7+
is_component_build = false # Dynamically links dependencies, rather than static
8+
is_debug = false # Sets as "release" build
9+
angle_expose_non_conformant_extensions_and_versions = true # Enables ES3.2
10+
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
11+
12+
# Stops libs.uncompressed from being built, which is only when symbol_level != 0
13+
symbol_level = 0
14+
15+
# Stops ANGLE APKs from being built (we are never using those)
16+
angle_standalone = false
17+
18+
# Disable all unneeded backends
19+
angle_enable_gl = false
20+
angle_enable_d3d9 = false
21+
angle_enable_d3d11 = false
22+
angle_enable_null = false
23+
angle_enable_metal = false
24+
angle_enable_wgpu = false
25+
angle_enable_swiftshader = false
26+
527
angle_enable_vulkan = true
6-
is_component_build = false
7-
is_debug = false
8-
angle_build_tests=false
28+
angle_enable_essl = true
29+
angle_enable_glsl = true
30+
31+
# Other stuff
32+
angle_has_frame_capture = false # Turns off frame capture (we don't use it, why would you?! Also turns off rapidJSON)
33+
build_angle_deqp_tests = false # This was somehow being set to true, am forcing it false
34+
angle_build_all = false # Why would we need all of it? (yes this is redundant)
35+
# libcxx_abi_unstable = false # Apparently breaks std::string, doesn't seem to anymore. Comments mention this option causing slowdowns.

out/android-arm64/args.gn

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
11
# Build arguments go here.
22
# See "gn args <out_dir> --list" for available build arguments.
3+
# Standard boilerplate for our usage
34
target_os = "android"
45
target_cpu = "arm64"
6+
7+
is_component_build = false # Dynamically links dependencies, rather than static
8+
is_debug = false # Sets as "release" build
9+
angle_expose_non_conformant_extensions_and_versions = true # Enables ES3.2
10+
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
11+
12+
# Stops libs.uncompressed from being built, which is only when symbol_level != 0
13+
symbol_level = 0
14+
15+
# Stops ANGLE APKs from being built (we are never using those)
16+
angle_standalone = false
17+
18+
# Disable all unneeded backends
19+
angle_enable_gl = false
20+
angle_enable_d3d9 = false
21+
angle_enable_d3d11 = false
22+
angle_enable_null = false
23+
angle_enable_metal = false
24+
angle_enable_wgpu = false
25+
angle_enable_swiftshader = false
26+
527
angle_enable_vulkan = true
6-
is_component_build = false
7-
is_debug = false
8-
angle_build_tests=false
28+
angle_enable_essl = true
29+
angle_enable_glsl = true
30+
31+
# Other stuff
32+
angle_has_frame_capture = false # Turns off frame capture (we don't use it, why would you?! Also turns off rapidJSON)
33+
build_angle_deqp_tests = false # This was somehow being set to true, am forcing it false
34+
angle_build_all = false # Why would we need all of it? (yes this is redundant)
35+
# libcxx_abi_unstable = false # Apparently breaks std::string, doesn't seem to anymore. Comments mention this option causing slowdowns.

out/android-x64/args.gn

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
11
# Build arguments go here.
22
# See "gn args <out_dir> --list" for available build arguments.
3+
# Standard boilerplate for our usage
34
target_os = "android"
45
target_cpu = "x64"
6+
7+
is_component_build = false # Dynamically links dependencies, rather than static
8+
is_debug = false # Sets as "release" build
9+
angle_expose_non_conformant_extensions_and_versions = true # Enables ES3.2
10+
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
11+
12+
# Stops libs.uncompressed from being built, which is only when symbol_level != 0
13+
symbol_level = 0
14+
15+
# Stops ANGLE APKs from being built (we are never using those)
16+
angle_standalone = false
17+
18+
# Disable all unneeded backends
19+
angle_enable_gl = false
20+
angle_enable_d3d9 = false
21+
angle_enable_d3d11 = false
22+
angle_enable_null = false
23+
angle_enable_metal = false
24+
angle_enable_wgpu = false
25+
angle_enable_swiftshader = false
26+
527
angle_enable_vulkan = true
6-
is_component_build = false
7-
is_debug = false
8-
angle_build_tests=false
28+
angle_enable_essl = true
29+
angle_enable_glsl = true
30+
31+
# Other stuff
32+
angle_has_frame_capture = false # Turns off frame capture (we don't use it, why would you?! Also turns off rapidJSON)
33+
build_angle_deqp_tests = false # This was somehow being set to true, am forcing it false
34+
angle_build_all = false # Why would we need all of it? (yes this is redundant)
35+
# libcxx_abi_unstable = false # Apparently breaks std::string, doesn't seem to anymore. Comments mention this option causing slowdowns.

out/android-x86/args.gn

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
11
# Build arguments go here.
22
# See "gn args <out_dir> --list" for available build arguments.
3+
# Standard boilerplate for our usage
34
target_os = "android"
45
target_cpu = "x86"
6+
7+
is_component_build = false # Dynamically links dependencies, rather than static
8+
is_debug = false # Sets as "release" build
9+
angle_expose_non_conformant_extensions_and_versions = true # Enables ES3.2
10+
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
11+
12+
# Stops libs.uncompressed from being built, which is only when symbol_level != 0
13+
symbol_level = 0
14+
15+
# Stops ANGLE APKs from being built (we are never using those)
16+
angle_standalone = false
17+
18+
# Disable all unneeded backends
19+
angle_enable_gl = false
20+
angle_enable_d3d9 = false
21+
angle_enable_d3d11 = false
22+
angle_enable_null = false
23+
angle_enable_metal = false
24+
angle_enable_wgpu = false
25+
angle_enable_swiftshader = false
26+
527
angle_enable_vulkan = true
6-
is_component_build = false
7-
is_debug = false
8-
angle_build_tests=false
28+
angle_enable_essl = true
29+
angle_enable_glsl = true
30+
31+
# Other stuff
32+
angle_has_frame_capture = false # Turns off frame capture (we don't use it, why would you?! Also turns off rapidJSON)
33+
build_angle_deqp_tests = false # This was somehow being set to true, am forcing it false
34+
angle_build_all = false # Why would we need all of it? (yes this is redundant)
35+
# libcxx_abi_unstable = false # Apparently breaks std::string, doesn't seem to anymore. Comments mention this option causing slowdowns.

0 commit comments

Comments
 (0)