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 import("//components/gcm_driver/config.gni") | 5 import("//components/gcm_driver/config.gni") |
6 | 6 |
7 static_library("instance_id") { | 7 static_library("instance_id") { |
8 sources = [ | 8 sources = [ |
9 "instance_id.cc", | 9 "instance_id.cc", |
10 "instance_id.h", | 10 "instance_id.h", |
11 "instance_id_driver.cc", | 11 "instance_id_driver.cc", |
12 "instance_id_driver.h", | 12 "instance_id_driver.h", |
| 13 "instance_id_factory.h", |
13 "instance_id_impl.cc", | 14 "instance_id_impl.cc", |
14 "instance_id_impl.h", | 15 "instance_id_impl.h", |
| 16 "instance_id_impl_factory.cc", |
| 17 "instance_id_impl_factory.h", |
15 ] | 18 ] |
16 | 19 |
17 deps = [ | 20 deps = [ |
18 "//base", | 21 "//base", |
19 "//crypto", | 22 "//crypto", |
20 ] | 23 ] |
21 | 24 |
22 if (use_gcm_from_platform) { | 25 if (use_gcm_from_platform) { |
23 sources -= [ | 26 sources -= [ |
24 "instance_id_impl.cc", | 27 "instance_id_impl.cc", |
25 "instance_id_impl.h", | 28 "instance_id_impl.h", |
| 29 "instance_id_impl_factory.cc", |
| 30 "instance_id_impl_factory.h", |
26 ] | 31 ] |
27 sources += [ | 32 sources += [ |
28 "instance_id_android.cc", | 33 "instance_id_android.cc", |
29 "instance_id_android.h", | 34 "instance_id_android.h", |
| 35 "instance_id_android_factory.cc", |
| 36 "instance_id_android_factory.h", |
30 ] | 37 ] |
31 deps += [ "android:jni_headers" ] | 38 deps += [ "android:jni_headers" ] |
32 } | 39 } |
33 } | 40 } |
34 | 41 |
35 static_library("test_support") { | 42 static_library("test_support") { |
36 testonly = true | 43 testonly = true |
37 sources = [ | 44 sources = [ |
38 "fake_gcm_driver_for_instance_id.cc", | 45 "fake_gcm_driver_for_instance_id.cc", |
39 "fake_gcm_driver_for_instance_id.h", | 46 "fake_gcm_driver_for_instance_id.h", |
(...skipping 24 matching lines...) Expand all Loading... |
64 deps = [ | 71 deps = [ |
65 ":instance_id", | 72 ":instance_id", |
66 ":test_support", | 73 ":test_support", |
67 "//base", | 74 "//base", |
68 "//components/gcm_driver:gcm_build_features", | 75 "//components/gcm_driver:gcm_build_features", |
69 "//google_apis/gcm", | 76 "//google_apis/gcm", |
70 "//net:test_support", | 77 "//net:test_support", |
71 "//testing/gtest", | 78 "//testing/gtest", |
72 ] | 79 ] |
73 } | 80 } |
OLD | NEW |