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
|
# Copyright 2017 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("//build/config/jumbo.gni")
if (is_android) {
import("//build/config/android/config.gni")
import("//build/config/android/rules.gni")
}
jumbo_source_set("public") {
sources = [
"configuration.cc",
"configuration.h",
"event_constants.cc",
"event_constants.h",
"feature_configurations.cc",
"feature_configurations.h",
"feature_constants.cc",
"feature_constants.h",
"feature_list.cc",
"feature_list.h",
"tracker.cc",
"tracker.h",
]
deps = [
"//base",
"//components/feature_engagement:buildflags",
"//components/flags_ui",
"//components/keyed_service/core",
]
}
jumbo_source_set("unit_tests") {
testonly = true
visibility = [ "//components/feature_engagement:unit_tests" ]
# IMPORTANT NOTE: When adding new tests, also remember to update the list of
# tests in //components/feature_engagement/components_unittests.filter
sources = [ "configuration_unittest.cc" ]
deps = [
":public",
"//testing/gtest",
]
}
if (is_android) {
android_library("public_java") {
sources = [
"android/java/src/org/chromium/components/feature_engagement/EventConstants.java",
"android/java/src/org/chromium/components/feature_engagement/FeatureConstants.java",
"android/java/src/org/chromium/components/feature_engagement/Tracker.java",
]
deps = [
"//base:base_java",
"//third_party/android_deps:androidx_annotation_annotation_java",
]
srcjar_deps = [ ":public_java_enums_srcjar" ]
}
java_cpp_enum("public_java_enums_srcjar") {
visibility = [ ":*" ]
sources = [ "tracker.h" ]
}
}
|