summaryrefslogtreecommitdiff
path: root/chromium/components/gcm_driver/android/BUILD.gn
blob: 5909fd4a83c45a90221ea62d7937667100ea9a30 (plain)
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
# Copyright 2014 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/android/rules.gni")

generate_jni("jni_headers") {
  sources = [
    "java/src/org/chromium/components/gcm_driver/GCMDriver.java",
  ]
  jni_package = "components/gcm_driver"
}

android_library("gcm_driver_java") {
  deps = [
    "//base:base_java",
    "//content/public/android:content_java",
    "//third_party/android_tools:android_gcm_java",
    "//third_party/jsr-305:jsr_305_javalib",
  ]

  java_files = [
    "java/src/org/chromium/components/gcm_driver/GCMDriver.java",
    "java/src/org/chromium/components/gcm_driver/GCMMessage.java",
    "java/src/org/chromium/components/gcm_driver/GoogleCloudMessagingSubscriber.java",
    "java/src/org/chromium/components/gcm_driver/GoogleCloudMessagingV2.java",
  ]
}

junit_binary("components_gcm_driver_junit_tests") {
  java_files =
      [ "junit/src/org/chromium/components/gcm_driver/GCMMessageTest.java" ]
  deps = [
    ":gcm_driver_java",
    "//base:base_java",
    "//base:base_java_test_support",
    "//third_party/hamcrest:hamcrest_java",
  ]
}