xref: /aosp_15_r20/external/angle/build/config/linux/dbus/BUILD.gn (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1# Copyright 2016 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/buildflag_header.gni")
6import("//build/config/features.gni")
7import("//build/config/linux/pkg_config.gni")
8
9buildflag_header("buildflags") {
10  header = "buildflags.h"
11  flags = [ "USE_DBUS=$use_dbus" ]
12}
13
14if (use_dbus) {
15  # Note: if your target also depends on //dbus, you don't need to add this
16  # config (it will get added automatically if you depend on //dbus).
17  pkg_config("dbus") {
18    packages = [ "dbus-1" ]
19  }
20}
21