blob: 53fd68bf7ad54c1f04b9ef2023b76ba7a9272149 [file] [log] [blame]
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/cast.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//build/config/sysroot.gni")
declare_args() {
# TODO(crbug.com/40260415): Allow QT in MSAN builds once QT is
# added to the instrumented libraries.
use_qt = is_linux && !is_castos && !is_msan
}
declare_args() {
if (!use_sysroot && use_qt) {
moc_qt5_path = ""
}
}
declare_args() {
use_qt6 = use_qt && use_sysroot
}
declare_args() {
if (!use_sysroot && use_qt6) {
moc_qt6_path = ""
}
}
# use_qt6 => use_qt
assert(!use_qt6 || use_qt)