| 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("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
| 6 | 6 |
| 7 component("gcm") { | 7 component("gcm") { |
| 8 sources = [ | 8 sources = [ |
| 9 "base/mcs_message.cc", | 9 "base/mcs_message.cc", |
| 10 "base/mcs_message.h", | 10 "base/mcs_message.h", |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 "engine/registration_info.h", | 38 "engine/registration_info.h", |
| 39 "engine/registration_request.cc", | 39 "engine/registration_request.cc", |
| 40 "engine/registration_request.h", | 40 "engine/registration_request.h", |
| 41 "engine/unregistration_request.cc", | 41 "engine/unregistration_request.cc", |
| 42 "engine/unregistration_request.h", | 42 "engine/unregistration_request.h", |
| 43 "monitoring/gcm_stats_recorder.h", | 43 "monitoring/gcm_stats_recorder.h", |
| 44 ] | 44 ] |
| 45 | 45 |
| 46 defines = [ "GCM_IMPLEMENTATION" ] | 46 defines = [ "GCM_IMPLEMENTATION" ] |
| 47 | 47 |
| 48 public_deps = [ |
| 49 ":proto", |
| 50 ] |
| 48 deps = [ | 51 deps = [ |
| 49 ":proto", | |
| 50 "//base", | 52 "//base", |
| 51 "//base/third_party/dynamic_annotations", | 53 "//base/third_party/dynamic_annotations", |
| 52 "//net", | 54 "//net", |
| 53 "//third_party/leveldatabase", | 55 "//third_party/leveldatabase", |
| 54 "//url", | 56 "//url", |
| 55 ] | 57 ] |
| 56 | |
| 57 forward_dependent_configs_from = [ ":proto" ] | |
| 58 } | 58 } |
| 59 | 59 |
| 60 proto_library("proto") { | 60 proto_library("proto") { |
| 61 visibility = [ ":*" ] | 61 visibility = [ ":*" ] |
| 62 sources = [ | 62 sources = [ |
| 63 "protocol/android_checkin.proto", | 63 "protocol/android_checkin.proto", |
| 64 "protocol/checkin.proto", | 64 "protocol/checkin.proto", |
| 65 "protocol/mcs.proto", | 65 "protocol/mcs.proto", |
| 66 ] | 66 ] |
| 67 | 67 |
| 68 cc_generator_options = "dllexport_decl=GCM_EXPORT:" | 68 cc_generator_options = "dllexport_decl=GCM_EXPORT:" |
| 69 cc_include = "google_apis/gcm/base/gcm_export.h" | 69 cc_include = "google_apis/gcm/base/gcm_export.h" |
| 70 defines = [ "GCM_IMPLEMENTATION" ] | 70 defines = [ "GCM_IMPLEMENTATION" ] |
| 71 } | 71 } |
| 72 | 72 |
| 73 static_library("test_support") { | 73 static_library("test_support") { |
| 74 testonly = true | 74 testonly = true |
| 75 sources = [ | 75 sources = [ |
| 76 "base/fake_encryptor.cc", | 76 "base/fake_encryptor.cc", |
| 77 "base/fake_encryptor.h", | 77 "base/fake_encryptor.h", |
| 78 "engine/fake_connection_factory.cc", | 78 "engine/fake_connection_factory.cc", |
| 79 "engine/fake_connection_factory.h", | 79 "engine/fake_connection_factory.h", |
| 80 "engine/fake_connection_handler.cc", | 80 "engine/fake_connection_handler.cc", |
| 81 "engine/fake_connection_handler.h", | 81 "engine/fake_connection_handler.h", |
| 82 "monitoring/fake_gcm_stats_recorder.cc", | 82 "monitoring/fake_gcm_stats_recorder.cc", |
| 83 "monitoring/fake_gcm_stats_recorder.h", | 83 "monitoring/fake_gcm_stats_recorder.h", |
| 84 ] | 84 ] |
| 85 | 85 |
| 86 public_deps = [ |
| 87 ":gcm", |
| 88 ] |
| 86 deps = [ | 89 deps = [ |
| 87 ":gcm", | |
| 88 "//base", | 90 "//base", |
| 89 "//testing/gtest", | 91 "//testing/gtest", |
| 90 ] | 92 ] |
| 91 | |
| 92 forward_dependent_configs_from = [ ":gcm" ] | |
| 93 } | 93 } |
| 94 | 94 |
| 95 # A standalone MCS (mobile connection server) client. | 95 # A standalone MCS (mobile connection server) client. |
| 96 executable("mcs_probe") { | 96 executable("mcs_probe") { |
| 97 testonly = true | 97 testonly = true |
| 98 sources = [ | 98 sources = [ |
| 99 "tools/mcs_probe.cc", | 99 "tools/mcs_probe.cc", |
| 100 ] | 100 ] |
| 101 | 101 |
| 102 deps = [ | 102 deps = [ |
| (...skipping 26 matching lines...) Expand all Loading... |
| 129 deps = [ | 129 deps = [ |
| 130 ":proto", | 130 ":proto", |
| 131 ":test_support", | 131 ":test_support", |
| 132 "//base", | 132 "//base", |
| 133 "//base/test:run_all_unittests", | 133 "//base/test:run_all_unittests", |
| 134 "//net", | 134 "//net", |
| 135 "//net:test_support", | 135 "//net:test_support", |
| 136 "//testing/gtest", | 136 "//testing/gtest", |
| 137 ] | 137 ] |
| 138 } | 138 } |
| OLD | NEW |