| # 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") { |
| java_files = [ |
| "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", |
| ] |
| } |
| } |