forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.gn
118 lines (102 loc) · 2.59 KB
/
BUILD.gn
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
# Copyright 2022 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/protobuf/proto_library.gni")
# Local content analysis SDK.
source_set("liblcasdk") {
public = [ "src/browser/include/content_analysis/sdk/analysis_client.h" ]
sources = [
"src/browser/src/client_base.cc",
"src/browser/src/client_base.h",
]
if (is_win) {
sources += [
"src/browser/src/client_win.cc",
"src/browser/src/client_win.h",
"src/common/utils_win.cc",
"src/common/utils_win.h",
]
}
if (is_linux) {
sources += [
"src/browser/src/client_posix.cc",
"src/browser/src/client_posix.h",
]
}
if (is_mac) {
sources += [
"src/browser/src/client_mac.cc",
"src/browser/src/client_mac.h",
]
}
include_dirs = [
"src",
"src/browser/include",
"gen/third_party/content_analysis_sdk/src/proto",
]
public_deps = [
":proto",
"//third_party/protobuf:protobuf_lite",
]
}
source_set("libagentsdk") {
sources = [
"src/agent/include/content_analysis/sdk/analysis_agent.h",
"src/agent/include/content_analysis/sdk/result_codes.h",
"src/agent/src/agent_base.cc",
"src/agent/src/agent_base.h",
"src/agent/src/event_base.cc",
"src/agent/src/event_base.h",
]
if (is_win) {
sources += [
"src/agent/src/agent_utils_win.cc",
"src/agent/src/agent_utils_win.h",
"src/agent/src/agent_win.cc",
"src/agent/src/agent_win.h",
"src/agent/src/event_win.cc",
"src/agent/src/event_win.h",
"src/common/utils_win.cc",
"src/common/utils_win.h",
]
} else if (is_mac) {
sources += [
"src/agent/src/agent_mac.cc",
"src/agent/src/agent_mac.h",
"src/agent/src/event_mac.cc",
"src/agent/src/event_mac.h",
]
} else {
sources += [
"src/agent/src/agent_posix.cc",
"src/agent/src/agent_posix.h",
"src/agent/src/event_posix.cc",
"src/agent/src/event_posix.h",
]
}
include_dirs = [
"src",
"src/agent/include",
"gen/third_party/content_analysis_sdk/src/proto",
]
public_deps = [
":proto",
"//third_party/protobuf:protobuf_lite",
]
}
executable("lca_agent") {
sources = [
"src/demo/agent.cc",
"src/demo/handler.h",
]
include_dirs = [
"src",
"src/agent/include",
"gen/third_party/content_analysis_sdk/src/proto",
]
public_deps = [ ":libagentsdk" ]
}
proto_library("proto") {
proto_in_dir = "src/proto"
sources = [ "src/proto/content_analysis/sdk/analysis.proto" ]
}