-
Notifications
You must be signed in to change notification settings - Fork 941
/
Copy pathBUILD.gn
71 lines (64 loc) · 2.02 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
import("//build/buildflag_header.gni")
import("buildflags/buildflags.gni")
buildflag_header("buildflags") {
header = "buildflags.h"
flags = [ "ENABLE_TOR=$enable_tor" ]
}
source_set("tor") {
# Remove when https://github.com/brave/brave-browser/issues/10655 is resolved
check_includes = false
sources = [
"tor_launcher_service_observer.h",
"tor_profile_service_factory.cc",
"tor_profile_service_factory.h",
]
deps = [
"//base",
"//brave/common/tor",
"//components/keyed_service/content",
"//components/keyed_service/core",
"//content/public/browser",
"//mojo/public/cpp/bindings",
]
public_deps = [ ":buildflags" ]
if (enable_tor) {
sources += [
"onion_location_navigation_throttle.cc",
"onion_location_navigation_throttle.h",
"onion_location_tab_helper.cc",
"onion_location_tab_helper.h",
"tor_control.cc",
"tor_control.h",
"tor_launcher_factory.cc",
"tor_launcher_factory.h",
"tor_navigation_throttle.cc",
"tor_navigation_throttle.h",
"tor_profile_service.cc",
"tor_profile_service.h",
"tor_profile_service_impl.cc",
"tor_profile_service_impl.h",
"tor_tab_helper.cc",
"tor_tab_helper.h",
]
deps += [
"//brave/app:brave_generated_resources_grit",
"//brave/components/services/tor/public/interfaces",
"//content/public/browser",
"//content/public/common",
"//extensions/common:common_constants",
"//net",
"//services/service_manager",
"//url",
]
# Below dep list are not directly used tor target.
# Only added to fix intermittent build failure.
# Most of the case comes from including brave_browser_process_impl.h`
# headers. That header includes some buildflags but sometimes they are
# not generated before evaluating tor target.
deps += [
"//brave/components/brave_referrals/buildflags",
"//brave/components/greaselion/browser/buildflags",
"//brave/components/speedreader:buildflags",
]
}
}