... and use it to control debug symbols and SK_ALLOW_STATIC_GLOBAL_INITIALIZERS.
This will most directly have the effect of disabling GLProgramsTest and a bunch
of similar failing Vk tests on Android.
Hopefully this makes the N7 trybot go green, keeping the N5 trybot green. Just running the N10 for fun.
(is_official_build is how Chrome terms this sort of ReleaseForReal build.)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2340723003
Review-Url: https://codereview.chromium.org/
2340723003
"SK_GAMMA_CONTRAST=0.0",
]
}
+ if (is_official_build || is_android) {
+ # TODO(bsalomon): it'd be nice to make Android normal.
+ defines += [ "SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0" ]
+ }
}
# Any code that's linked into Skia-the-library should use this config via += skia_library_configs.
}
}
+config("debug_symbols") {
+ # It's annoying to wait for full debug symbols to push over
+ # to Android devices. -gline-tables-only is a lot slimmer.
+ if (is_android) {
+ cflags = [ "-gline-tables-only" ]
+ } else {
+ cflags = [ "-g" ]
+ }
+}
+
config("default") {
cflags = [
"-O1",
]
ldflags = []
- # It's annoying to wait for full debug symbols to push over
- # to Android devices. -gline-tables-only is a lot slimmer.
- if (is_android) {
- cflags += [ "-gline-tables-only" ]
- } else {
- cflags += [ "-g" ]
- }
-
if (current_cpu == "arm") {
cflags += [
"-march=armv7-a",
# It's best to keep the names and defaults of is_foo flags consistent with Chrome.
declare_args() {
- is_debug = true
+ is_official_build = false
is_component_build = false
ndk = ""
ndk_api = 0 # 0 == picked automatically for target_cpu.
sanitize = ""
}
+declare_args() {
+ is_debug = !is_official_build
+}
+
+assert(!(is_debug && is_official_build))
# Platform detection
if (target_os == "") {
if (!is_debug) {
default_configs += [ "//gn:release" ]
}
+if (!is_official_build) {
+ default_configs += [ "//gn:debug_symbols" ]
+}
set_defaults("executable") {
configs = default_configs + [ "//gn:executable" ]