bromite-buildtools/images/bromite-build/build_args.gni

44 lines
915 B
Plaintext
Raw Normal View History

2021-06-30 18:14:14 +05:30
declare_args() {
_is_debug_build = ""
}
_is_debug_build = getenv("TARGET_ISDEBUG")
not_needed(["_target_build", "_is_debug_build"])
if(getenv("TARGET_CPU") != "") {
target_cpu = getenv("TARGET_CPU")
}
2021-12-01 13:03:43 +05:30
# print("Target " + target_cpu)
enable_kythe_annotations = true
# clang_use_chrome_plugins = false
if (target_os == "android") {
chrome_public_manifest_package = "org.bromite.bromite.dev"
}
2021-06-30 18:14:14 +05:30
2022-01-17 22:38:26 +05:30
if(_is_debug_build == "true") {
2021-12-01 13:03:43 +05:30
# print("Debug build on")
2021-06-30 18:14:14 +05:30
is_debug = true
is_official_build = false
dcheck_always_on = true
if (target_os == "win") {
symbol_level = 0
use_large_pdbs = true
} else {
symbol_level = 1
}
2021-06-30 18:14:14 +05:30
strip_debug_info = false
2021-10-10 20:31:38 +05:30
generate_linker_map = false
2022-02-22 19:04:51 +05:30
# since is_cfi require use_thin_lto
# but not work in debug mode
is_cfi = false # disable it
use_cfi_cast = false # disable it
} else {
if (target_os == "android") {
generate_linker_map = true
}
2021-06-30 18:14:14 +05:30
}