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 "encryption_header_parsers.cc", |
| 11 "encryption_header_parsers.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 = [ |
19 "//base", | 21 "//base", |
20 "//crypto", | 22 "//crypto", |
21 "//crypto:platform", | 23 "//crypto:platform", |
22 "//components/gcm_driver", | 24 "//components/gcm_driver", |
23 "//components/gcm_driver/crypto/proto", | 25 "//components/gcm_driver/crypto/proto", |
24 "//components/leveldb_proto", | 26 "//components/leveldb_proto", |
25 "//third_party/protobuf:protobuf_lite", | 27 "//third_party/protobuf:protobuf_lite", |
26 ] | 28 ] |
27 | 29 |
28 if (use_openssl) { | 30 if (use_openssl) { |
29 sources -= [ "gcm_message_cryptographer_nss.cc" ] | 31 sources -= [ "gcm_message_cryptographer_nss.cc" ] |
30 } else { | 32 } else { |
31 sources -= [ "gcm_message_cryptographer_openssl.cc" ] | 33 sources -= [ "gcm_message_cryptographer_openssl.cc" ] |
32 } | 34 } |
33 } | 35 } |
34 | 36 |
35 source_set("unit_tests") { | 37 source_set("unit_tests") { |
36 testonly = true | 38 testonly = true |
37 sources = [ | 39 sources = [ |
| 40 "encryption_header_parsers_unittest.cc", |
38 "gcm_key_store_unittest.cc", | 41 "gcm_key_store_unittest.cc", |
39 "gcm_message_cryptographer_unittest.cc", | 42 "gcm_message_cryptographer_unittest.cc", |
40 ] | 43 ] |
41 | 44 |
42 deps = [ | 45 deps = [ |
43 ":crypto", | 46 ":crypto", |
44 "//base", | 47 "//base", |
45 "//crypto:platform", | 48 "//crypto:platform", |
46 "//testing/gtest", | 49 "//testing/gtest", |
47 "//third_party/protobuf:protobuf_lite", | 50 "//third_party/protobuf:protobuf_lite", |
48 ] | 51 ] |
49 } | 52 } |
OLD | NEW |