| # Copyright 2021 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/android/rules.gni") |
| |
| android_library("java") { |
| srcjar_deps = [ ":jni_headers" ] |
| sources = [ "java/src/org/chromium/components/ukm/UkmRecorder.java" ] |
| |
| deps = [ |
| "//base:jni_java", |
| "//build/android:build_java", |
| "//content/public/android:content_java", |
| "//third_party/androidx:androidx_annotation_annotation_java", |
| ] |
| } |
| |
| generate_jni("jni_headers") { |
| sources = [ "java/src/org/chromium/components/ukm/UkmRecorder.java" ] |
| } |
| |
| static_library("ukm_recorder") { |
| sources = [ "ukm_recorder.cc" ] |
| deps = [ |
| ":jni_headers", |
| "//base", |
| "//components/ukm/content", |
| "//content/public/browser", |
| "//services/metrics/public/cpp:ukm_builders", |
| ] |
| } |