2021-06-30 18:14:14 +05:30
|
|
|
|
|
|
|
declare_args() {
|
|
|
|
_is_debug_build = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
not_needed(["_target_build", "_is_debug_build"])
|
|
|
|
|
|
|
|
if(getenv("TARGET_CPU") != "") {
|
|
|
|
target_cpu = getenv("TARGET_CPU")
|
|
|
|
}
|
2021-12-01 13:03:43 +05:30
|
|
|
|
2022-10-13 15:53:20 +05:30
|
|
|
if (target_os == "android") {
|
2022-10-21 20:28:53 +05:30
|
|
|
enable_kythe_annotations = true
|
2022-10-13 15:53:20 +05:30
|
|
|
chrome_public_manifest_package = "org.bromite.bromite.dev"
|
2021-06-30 18:14:14 +05:30
|
|
|
|
2022-10-21 20:45:27 +05:30
|
|
|
_is_debug_build = getenv("TARGET_ISDEBUG")
|
2022-10-21 20:28:53 +05:30
|
|
|
if(_is_debug_build == "true") {
|
|
|
|
# print("Debug build on")
|
|
|
|
is_debug = true
|
|
|
|
is_official_build = false
|
|
|
|
dcheck_always_on = true
|
2022-10-13 15:53:20 +05:30
|
|
|
symbol_level = 1
|
2022-10-21 20:28:53 +05:30
|
|
|
strip_debug_info = false
|
|
|
|
generate_linker_map = false
|
2022-02-22 19:04:51 +05:30
|
|
|
|
2022-10-21 20:28:53 +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 {
|
2022-10-14 11:41:06 +05:30
|
|
|
generate_linker_map = true
|
|
|
|
}
|
2022-10-20 12:31:05 +05:30
|
|
|
}
|
2022-10-14 15:29:47 +05:30
|
|
|
|
2022-10-20 12:31:05 +05:30
|
|
|
if (target_os == "win") {
|
2022-10-21 20:45:27 +05:30
|
|
|
target_cpu = "x64"
|
2022-10-21 20:28:53 +05:30
|
|
|
symbol_level = 0
|
|
|
|
use_large_pdbs = true
|
|
|
|
|
2022-10-20 12:31:05 +05:30
|
|
|
is_cfi = false # disable it
|
|
|
|
use_cfi_cast = false # disable it
|
2021-06-30 18:14:14 +05:30
|
|
|
}
|