OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 | 6 |
7 # GYP version: components/gcm_driver.gypi:gcm_driver_crypto | 7 # GYP version: components/gcm_driver.gypi:gcm_driver_crypto |
8 source_set("crypto") { | 8 source_set("crypto") { |
9 sources = [ | 9 sources = [ |
| 10 "gcm_encryption_provider.cc", |
| 11 "gcm_encryption_provider.h", |
10 "gcm_key_store.cc", | 12 "gcm_key_store.cc", |
11 "gcm_key_store.h", | 13 "gcm_key_store.h", |
12 "gcm_message_cryptographer.cc", | 14 "gcm_message_cryptographer.cc", |
13 "gcm_message_cryptographer.h", | 15 "gcm_message_cryptographer.h", |
14 "gcm_message_cryptographer_nss.cc", | 16 "gcm_message_cryptographer_nss.cc", |
15 "gcm_message_cryptographer_openssl.cc", | 17 "gcm_message_cryptographer_openssl.cc", |
16 ] | 18 ] |
17 | 19 |
18 deps = [ | 20 deps = [ |
| 21 "proto", |
19 "//base", | 22 "//base", |
20 "//crypto", | 23 "//crypto", |
21 "//crypto:platform", | 24 "//crypto:platform", |
22 "//components/gcm_driver", | |
23 "//components/gcm_driver/crypto/proto", | |
24 "//components/leveldb_proto", | 25 "//components/leveldb_proto", |
25 "//third_party/protobuf:protobuf_lite", | 26 "//third_party/protobuf:protobuf_lite", |
26 ] | 27 ] |
27 | 28 |
28 if (use_openssl) { | 29 if (use_openssl) { |
29 sources -= [ "gcm_message_cryptographer_nss.cc" ] | 30 sources -= [ "gcm_message_cryptographer_nss.cc" ] |
30 } else { | 31 } else { |
31 sources -= [ "gcm_message_cryptographer_openssl.cc" ] | 32 sources -= [ "gcm_message_cryptographer_openssl.cc" ] |
32 } | 33 } |
33 } | 34 } |
34 | 35 |
35 source_set("unit_tests") { | 36 source_set("unit_tests") { |
36 testonly = true | 37 testonly = true |
37 sources = [ | 38 sources = [ |
38 "gcm_key_store_unittest.cc", | 39 "gcm_key_store_unittest.cc", |
39 "gcm_message_cryptographer_unittest.cc", | 40 "gcm_message_cryptographer_unittest.cc", |
40 ] | 41 ] |
41 | 42 |
42 deps = [ | 43 deps = [ |
43 ":crypto", | 44 ":crypto", |
44 "//base", | 45 "//base", |
45 "//crypto:platform", | 46 "//crypto:platform", |
46 "//testing/gtest", | 47 "//testing/gtest", |
47 "//third_party/protobuf:protobuf_lite", | 48 "//third_party/protobuf:protobuf_lite", |
48 ] | 49 ] |
49 } | 50 } |
OLD | NEW |