File: BUILD.gn

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (145 lines) | stat: -rw-r--r-- 5,219 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# 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/chromebox_for_meetings/buildflags.gni")
import("//third_party/protobuf/proto_library.gni")

assert(is_chromeos, "Non ChromeOS builds must not depend on //chromeos/ash")

component("dbus") {
  output_name = "ash_dbus"  # Avoid conflict with //dbus
  defines = [ "IS_ASH_DBUS_IMPL" ]
  public_deps = [
    "//chromeos/dbus/common",
    "//chromeos/dbus/constants",
    "//chromeos/dbus/init",
    "//dbus",
  ]
  deps = [ "//base" ]
  sources = [
    "dbus_thread_manager.cc",
    "dbus_thread_manager.h",
  ]
}

source_set("test_support") {
  testonly = true
  configs += [ "//build/config/linux/dbus" ]
  public_deps = [
    ":dbus",
    "//chromeos/dbus/constants",
    "//dbus",
    "//dbus:test_support",
  ]
  deps = [
    "//base",
    "//testing/gmock",
    "//testing/gtest",
  ]
}

source_set("unit_tests") {
  configs += [ "//build/config/linux/dbus" ]
  testonly = true
  deps = [
    ":test_support",
    "//base",
    "//base/test:test_support",
    "//chromeos/ash/components/dbus/audio",
    "//chromeos/ash/components/dbus/audio:unit_tests",
    "//chromeos/ash/components/dbus/biod:test_support",
    "//chromeos/ash/components/dbus/cec_service:unit_tests",
    "//chromeos/ash/components/dbus/chaps:unit_tests",
    "//chromeos/ash/components/dbus/cros_disks:unit_tests",
    "//chromeos/ash/components/dbus/cryptohome",
    "//chromeos/ash/components/dbus/cryptohome:attestation_proto",
    "//chromeos/ash/components/dbus/device_management",
    "//chromeos/ash/components/dbus/device_management:device_management_proto",
    "//chromeos/ash/components/dbus/device_management:unit_tests",
    "//chromeos/ash/components/dbus/dlcservice:unit_tests",
    "//chromeos/ash/components/dbus/easy_unlock:unit_tests",
    "//chromeos/ash/components/dbus/featured:unit_tests",
    "//chromeos/ash/components/dbus/fwupd:test_support",
    "//chromeos/ash/components/dbus/gnubby:unit_tests",
    "//chromeos/ash/components/dbus/hermes:test_support",
    "//chromeos/ash/components/dbus/lorgnette_manager:unit_tests",
    "//chromeos/ash/components/dbus/oobe_config:unit_tests",
    "//chromeos/ash/components/dbus/printscanmgr:unit_tests",
    "//chromeos/ash/components/dbus/rmad:rmad_proto",
    "//chromeos/ash/components/dbus/rmad:test_support",
    "//chromeos/ash/components/dbus/services:unit_tests",
    "//chromeos/ash/components/dbus/session_manager",
    "//chromeos/ash/components/dbus/session_manager:unit_tests",
    "//chromeos/ash/components/dbus/shill:test_support",
    "//chromeos/ash/components/dbus/system_clock:unit_tests",
    "//chromeos/ash/components/dbus/userdataauth",
    "//chromeos/ash/components/dbus/userdataauth:userdataauth_proto",
    "//chromeos/ash/components/install_attributes:test_support",
    "//components/account_id",
    "//dbus",
  ]
  if (is_cfm) {
    deps +=
        [ "//chromeos/ash/components/dbus/chromebox_for_meetings:unit_tests" ]
  }
  sources = [
    "audio/cras_audio_client_unittest.cc",
    "biod/biod_client_unittest.cc",
    "biod/fake_biod_client_unittest.cc",
    "dbus_thread_manager_unittest.cc",
    "userdataauth/cryptohome_misc_client_unittest.cc",
    "userdataauth/cryptohome_pkcs11_client_unittest.cc",
    "userdataauth/userdataauth_client_unittest.cc",
  ]
}

# TODO(b/273117306): The below protos generate to
# gen/chromeos/ash/components/dbus/* which is the equivalent of
# *this build file*. This forces us to redefine proto_out_dir every
# time and jump through hoops for importing protos. To minimise
# configuration a better approach uses the default gen location
# gen/third_party/cros_system_api/dbus/* and avoids the below cfg.
config("system_api_proto_include_cfg") {
  include_dirs = [ "${root_gen_dir}/chromeos/ash/components/dbus" ]
}

proto_library("plugin_vm_service_proto") {
  sources = [ "//third_party/cros_system_api/dbus/plugin_vm_service/plugin_vm_service.proto" ]

  proto_out_dir = "chromeos/ash/components/dbus/plugin_vm_service"
}

proto_library("vm_applications_apps_proto") {
  sources = [ "//third_party/cros_system_api/dbus/vm_applications/apps.proto" ]

  proto_out_dir = "chromeos/ash/components/dbus/vm_applications"
}

proto_library("vm_launch_proto") {
  sources = [ "//third_party/cros_system_api/dbus/vm_launch/launch.proto" ]

  proto_out_dir = "chromeos/ash/components/dbus/vm_launch"
}

proto_library("vm_sk_forwarding_proto") {
  sources = [
    "//third_party/cros_system_api/dbus/vm_sk_forwarding/sk_forwarding.proto",
  ]

  proto_out_dir = "chromeos/ash/components/dbus/vm_sk_forwarding"
}

proto_library("vm_wl_proto") {
  sources = [ "//third_party/cros_system_api/dbus/vm_wl/wl.proto" ]
  proto_out_dir = "chromeos/ash/components/dbus/vm_wl"
  deps = [ ":vm_applications_apps_proto" ]
  import_dirs = [ "//third_party/cros_system_api/dbus" ]
  extra_configs = [ ":system_api_proto_include_cfg" ]
}

proto_library("vm_permission_service_proto") {
  sources = [ "//third_party/cros_system_api/dbus/vm_permission_service/vm_permission_service.proto" ]

  proto_out_dir = "chromeos/ash/components/dbus/vm_permission_service"
}