blob: 2f1714339f8c39e4f6adc0a1b2905c4cff2b7f42 [file] [log] [blame]
johnme2f8daf92016-04-15 18:17:441# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/config/android/rules.gni")
6
johnme2f8daf92016-04-15 18:17:447generate_jni("jni_headers") {
8 sources = [
9 "java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java",
10 ]
johnme2f8daf92016-04-15 18:17:4411}
12
johnme8638071c2016-04-22 16:07:3313generate_jni("test_support_jni_headers") {
Eric Stevenson4c4d6342019-10-04 20:02:4714 testonly = true
johnme8638071c2016-04-22 16:07:3315 sources = [
16 "javatests/src/org/chromium/components/gcm_driver/instance_id/FakeInstanceIDWithSubtype.java",
17 ]
johnme8638071c2016-04-22 16:07:3318}
19
johnme2f8daf92016-04-15 18:17:4420android_library("instance_id_driver_java") {
21 deps = [
Andrew Grieve2ae37012017-08-04 14:16:4322 "$google_play_services_package:google_play_services_iid_java",
johnme2f8daf92016-04-15 18:17:4423 "//base:base_java",
Eric Stevenson5c473ec2019-09-25 20:07:0424 "//base:jni_java",
Mohamed Amir Yosef1700f452018-10-29 10:19:4425 "//components/gcm_driver/android:gcm_driver_java",
johnme2f8daf92016-04-15 18:17:4426 ]
Eric Stevenson5c473ec2019-09-25 20:07:0427 annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
johnme2f8daf92016-04-15 18:17:4428
Richard Knoll882414b82019-08-05 15:19:4829 srcjar_deps =
30 [ "//components/gcm_driver/instance_id:instance_id_java_enums_srcjar" ]
31
johnme2f8daf92016-04-15 18:17:4432 java_files = [
33 "java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java",
34 "java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java",
35 ]
36}
johnme8638071c2016-04-22 16:07:3337
johnme8638071c2016-04-22 16:07:3338android_library("instance_id_driver_test_support_java") {
39 deps = [
40 ":instance_id_driver_java",
Andrew Grieve2ae37012017-08-04 14:16:4341 "$google_play_services_package:google_play_services_iid_java",
johnme8638071c2016-04-22 16:07:3342 "//base:base_java",
johnme8638071c2016-04-22 16:07:3343 ]
44
45 java_files = [ "javatests/src/org/chromium/components/gcm_driver/instance_id/FakeInstanceIDWithSubtype.java" ]
46}