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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 forward_dependent_configs_from = [ ":proto" ] | 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 |
| 68 cc_generator_options = "dllexport_decl=GCM_EXPORT:" |
| 69 cc_include = "google_apis/gcm/base/gcm_export.h" |
| 70 defines = [ "GCM_IMPLEMENTATION" ] |
67 } | 71 } |
68 | 72 |
69 static_library("test_support") { | 73 static_library("test_support") { |
70 testonly = true | 74 testonly = true |
71 sources = [ | 75 sources = [ |
72 "base/fake_encryptor.cc", | 76 "base/fake_encryptor.cc", |
73 "base/fake_encryptor.h", | 77 "base/fake_encryptor.h", |
74 "engine/fake_connection_factory.cc", | 78 "engine/fake_connection_factory.cc", |
75 "engine/fake_connection_factory.h", | 79 "engine/fake_connection_factory.h", |
76 "engine/fake_connection_handler.cc", | 80 "engine/fake_connection_handler.cc", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 deps = [ | 129 deps = [ |
126 ":proto", | 130 ":proto", |
127 ":test_support", | 131 ":test_support", |
128 "//base", | 132 "//base", |
129 "//base/test:run_all_unittests", | 133 "//base/test:run_all_unittests", |
130 "//net", | 134 "//net", |
131 "//net:test_support", | 135 "//net:test_support", |
132 "//testing/gtest", | 136 "//testing/gtest", |
133 ] | 137 ] |
134 } | 138 } |
OLD | NEW |