File: BUILD.gn

package info (click to toggle)
chromium 138.0.7204.183-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,080,960 kB
  • sloc: cpp: 34,937,079; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,954; 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,811; 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 (67 lines) | stat: -rw-r--r-- 2,013 bytes parent folder | download | duplicates (2)
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
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//components/safe_browsing/buildflags.gni")
import(
    "//components/safe_browsing/core/common/proto_to_value/proto_to_value.gni")
import("//third_party/libprotobuf-mutator/fuzzable_proto_library.gni")
import("//third_party/protobuf/proto_library.gni")

# Because csd.proto is included from a proto file outside its own directory,
# proto_in_dir is required so that import can follow the Chromium style guide
# that all imports start from the source root.
#
# However, due to the way that protoc generates C++ code, this directive is
# also required in all build targets for protos that import csd.proto, including
# the protos in the same directory.  Those protos also need to import csd.proto
# using a path from the source root, otherwise they won't compile.

fuzzable_proto_library("csd_proto") {
  proto_in_dir = "//"
  sources = [ "csd.proto" ]
}

proto_to_value("csd_proto_to_value") {
  sources = [ "csd.proto" ]
  deps = [ ":csd_proto" ]
}

proto_library("webui_proto") {
  sources = [ "webui.proto" ]
}

fuzzable_proto_library("realtimeapi_proto") {
  proto_in_dir = "//"
  sources = [ "realtimeapi.proto" ]
  deps = [
    ":csd_proto",
    "//components/enterprise/common/proto:connectors_proto",
  ]
}

proto_to_value("realtimeapi_proto_to_value") {
  sources = [ "realtimeapi.proto" ]
  deps = [
    ":csd_proto",
    ":csd_proto_to_value",
    ":realtimeapi_proto",
    "//components/enterprise/common/proto:connectors_proto",
    "//components/enterprise/common/proto:connectors_proto_to_value",
  ]
}

fuzzable_proto_library("client_model_proto") {
  proto_in_dir = "//"
  sources = [ "client_model.proto" ]
  deps = [ ":csd_proto" ]
}

proto_library("safebrowsingv5_proto") {
  sources = [ "safebrowsingv5.proto" ]
}

proto_to_value("safebrowsingv5_proto_to_value") {
  sources = [ "safebrowsingv5.proto" ]
  deps = [ ":safebrowsingv5_proto" ]
}