This repository has been archived by the owner on Mar 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.gn
146 lines (130 loc) · 4.42 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
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
146
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
if (is_android) {
import("//build/config/android/rules.gni")
}
dep_base = rebase_path("../..", "//")
config("external_config") {
visibility = [
":*",
]
include_dirs = [ "include" ]
}
config("internal_config") {
visibility = [
":*",
"//brave/test:*",
]
include_dirs = [ "src" ]
}
group("bat-native-ads") {
public_deps = [
":ads",
]
data_deps = [
":bat-native-ads-standalone",
]
}
static_library("bat-native-ads-standalone") {
# TODO(bridiver) - only export symbols from `include`
complete_static_lib = true
output_dir = root_out_dir
configs -= [ "//build/config/compiler:thin_archive" ]
defines = [
"STANDALONE_BUILD",
]
deps = [
":ads"
]
}
source_set("ads") {
public_configs = [ ":external_config" ]
configs += [ ":internal_config" ]
visibility = [
":*",
# add this only when ledger and confirmations are in the same process
# rebase_path("bat-native-ledger", dep_base),
# rebase_path("bat-native-ads", dep_base),
]
output_name = "bat_native_ads"
sources = [
"include/bat/ads/ad_info.h",
"include/bat/ads/ads_client.h",
"include/bat/ads/ads.h",
"include/bat/ads/bundle_state.h",
"include/bat/ads/client_info_platform_type.h",
"include/bat/ads/client_info.h",
"include/bat/ads/export.h",
"include/bat/ads/issuer_info.h",
"include/bat/ads/issuers_info.h",
"include/bat/ads/notification_info.h",
"include/bat/ads/notification_result_type.h",
"include/bat/ads/result.h",
"src/bat/ads/ad_info.cc",
"src/bat/ads/ads.cc",
"src/bat/ads/bundle_state.cc",
"src/bat/ads/client_info.cc",
"src/bat/ads/issuer_info.cc",
"src/bat/ads/issuers_info.cc",
"src/bat/ads/notification_info.cc",
"src/bat/ads/internal/ads_impl.cc",
"src/bat/ads/internal/ads_impl.h",
"src/bat/ads/internal/ads_serve.cc",
"src/bat/ads/internal/ads_serve.h",
"src/bat/ads/internal/bundle.cc",
"src/bat/ads/internal/bundle.h",
"src/bat/ads/internal/campaign_info.cc",
"src/bat/ads/internal/campaign_info.h",
"src/bat/ads/internal/catalog_creative_info.cc",
"src/bat/ads/internal/catalog_creative_info.h",
"src/bat/ads/internal/catalog_creative_set_info.cc",
"src/bat/ads/internal/catalog_creative_set_info.h",
"src/bat/ads/internal/catalog_geo_target_info.cc",
"src/bat/ads/internal/catalog_geo_target_info.h",
"src/bat/ads/internal/catalog_payload_info.cc",
"src/bat/ads/internal/catalog_payload_info.h",
"src/bat/ads/internal/catalog_segment_info.cc",
"src/bat/ads/internal/catalog_segment_info.h",
"src/bat/ads/internal/catalog_state.cc",
"src/bat/ads/internal/catalog_state.h",
"src/bat/ads/internal/catalog_type_info.cc",
"src/bat/ads/internal/catalog_type_info.h",
"src/bat/ads/internal/catalog.cc",
"src/bat/ads/internal/catalog.h",
"src/bat/ads/internal/client_state.cc",
"src/bat/ads/internal/client_state.h",
"src/bat/ads/internal/client.cc",
"src/bat/ads/internal/client.h",
"src/bat/ads/internal/error_helper.cc",
"src/bat/ads/internal/error_helper.h",
"src/bat/ads/internal/event_type_blur_info.cc",
"src/bat/ads/internal/event_type_blur_info.h",
"src/bat/ads/internal/event_type_destroy_info.cc",
"src/bat/ads/internal/event_type_destroy_info.h",
"src/bat/ads/internal/event_type_focus_info.cc",
"src/bat/ads/internal/event_type_focus_info.h",
"src/bat/ads/internal/event_type_load_info.cc",
"src/bat/ads/internal/event_type_load_info.h",
"src/bat/ads/internal/json_helper.cc",
"src/bat/ads/internal/json_helper.h",
"src/bat/ads/internal/locale_helper.cc",
"src/bat/ads/internal/locale_helper.h",
"src/bat/ads/internal/logging.h",
"src/bat/ads/internal/search_provider_info.cc",
"src/bat/ads/internal/search_provider_info.h",
"src/bat/ads/internal/search_providers.cc",
"src/bat/ads/internal/search_providers.h",
"src/bat/ads/internal/static_values.h",
"src/bat/ads/internal/time_helper.cc",
"src/bat/ads/internal/time_helper.h",
"src/bat/ads/internal/uri_helper.cc",
"src/bat/ads/internal/uri_helper.h",
]
deps = [
"//base",
"//url",
rebase_path("bat-native-usermodel", dep_base),
rebase_path("bat-native-rapidjson", dep_base),
]
}