build: make is_mas_build a generated header instead of config (#43737)

This commit is contained in:
Samuel Attard 2024-09-17 01:38:56 -07:00 committed by GitHub
parent b83810982e
commit c1c8fbfd9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 601 additions and 306 deletions

View file

@ -1,8 +1,11 @@
# For MAS build, we force defining "MAS_BUILD".
config("mas_build") {
action("generate_mas_config") {
outputs = [ "$target_gen_dir/../../mas.h" ]
script = "../../script/generate-mas-config.py"
if (is_mas_build) {
defines = [ "IS_MAS_BUILD()=1" ]
args = [ "true" ]
} else {
defines = [ "IS_MAS_BUILD()=0" ]
args = [ "false" ]
}
args += rebase_path(outputs)
}