Bug 1773223 - Make the definition of MOZ_X11 independent of the OS. r=firefox-build-system-reviewers,ahochheiden

Differential Revision: https://phabricator.services.mozilla.com/D149474
This commit is contained in:
Mike Hommey 2022-06-20 22:04:20 +00:00
parent 9b835365cc
commit ca6dabc47f

View File

@ -178,8 +178,8 @@ def filter_gn_config(path, gn_result, sandbox_vars, input_vars, gn_target):
"HOST_CPU_ARCH": cpus.get(input_vars["host_cpu"], input_vars["host_cpu"]),
"CPU_ARCH": cpus.get(input_vars["target_cpu"], input_vars["target_cpu"]),
}
if input_vars["target_os"] in ("linux", "android", "openbsd"):
mozbuild_args["MOZ_X11"] = "1" if input_vars.get("use_x11") else None
if "use_x11" in input_vars:
mozbuild_args["MOZ_X11"] = "1" if input_vars["use_x11"] else None
gn_out["mozbuild_args"] = mozbuild_args
all_deps = find_deps(gn_result["targets"], gn_target)