OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # GYP version: components/gcm_driver.gypi:gcm_driver | 5 # GYP version: components/gcm_driver.gypi:gcm_driver |
6 static_library("gcm_driver") { | 6 static_library("gcm_driver") { |
7 sources = [ | 7 sources = [ |
8 "android/component_jni_registrar.cc", | 8 "android/component_jni_registrar.cc", |
9 "android/component_jni_registrar.h", | 9 "android/component_jni_registrar.h", |
10 "default_gcm_app_handler.cc", | 10 "default_gcm_app_handler.cc", |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 "gcm_client_impl.cc", | 64 "gcm_client_impl.cc", |
65 "gcm_client_impl.h", | 65 "gcm_client_impl.h", |
66 "gcm_delayed_task_controller.cc", | 66 "gcm_delayed_task_controller.cc", |
67 "gcm_delayed_task_controller.h", | 67 "gcm_delayed_task_controller.h", |
68 "gcm_driver_desktop.cc", | 68 "gcm_driver_desktop.cc", |
69 "gcm_driver_desktop.h", | 69 "gcm_driver_desktop.h", |
70 "gcm_stats_recorder_impl.cc", | 70 "gcm_stats_recorder_impl.cc", |
71 "gcm_stats_recorder_impl.h", | 71 "gcm_stats_recorder_impl.h", |
72 ] | 72 ] |
73 deps -= [ | 73 deps -= [ |
74 "//components/gcm_driver/proto", | |
75 "//google_apis/gcm", | 74 "//google_apis/gcm", |
76 ] | 75 ] |
77 deps += [ ":jni_headers" ] | 76 deps += [ "android:jni_headers" ] |
78 } | 77 } |
79 } | 78 } |
80 | 79 |
81 static_library("test_support") { | 80 static_library("test_support") { |
82 testonly = true | 81 testonly = true |
83 sources = [ | 82 sources = [ |
84 "fake_gcm_app_handler.cc", | 83 "fake_gcm_app_handler.cc", |
85 "fake_gcm_app_handler.h", | 84 "fake_gcm_app_handler.h", |
86 "fake_gcm_client.cc", | 85 "fake_gcm_client.cc", |
87 "fake_gcm_client.h", | 86 "fake_gcm_client.h", |
(...skipping 13 matching lines...) Expand all Loading... |
101 if (is_android) { | 100 if (is_android) { |
102 sources -= [ | 101 sources -= [ |
103 "fake_gcm_client.cc", | 102 "fake_gcm_client.cc", |
104 "fake_gcm_client.h", | 103 "fake_gcm_client.h", |
105 "fake_gcm_client_factory.cc", | 104 "fake_gcm_client_factory.cc", |
106 "fake_gcm_client_factory.h", | 105 "fake_gcm_client_factory.h", |
107 ] | 106 ] |
108 deps -= [ "//google_apis/gcm" ] | 107 deps -= [ "//google_apis/gcm" ] |
109 } | 108 } |
110 } | 109 } |
111 | |
112 if (is_android) { | |
113 import("//build/config/android/rules.gni") | |
114 | |
115 # GYP version: components/gcm_driver.gypi:gcm_driver_jni_headers | |
116 generate_jni("jni_headers") { | |
117 sources = [ | |
118 "android/java/src/org/chromium/components/gcm_driver/GCMDriver.java", | |
119 ] | |
120 jni_package = "components/gcm_driver" | |
121 } | |
122 } | |
OLD | NEW |