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") |
| 6 |
5 static_library("crx_file") { | 7 static_library("crx_file") { |
6 sources = [ | 8 sources = [ |
7 "crx2_file.cc", | 9 "crx2_file.cc", |
8 "crx2_file.h", | 10 "crx2_file.h", |
9 "crx_verifier.cc", | 11 "crx_verifier.cc", |
10 "crx_verifier.h", | 12 "crx_verifier.h", |
11 "id_util.cc", | 13 "id_util.cc", |
12 "id_util.h", | 14 "id_util.h", |
13 ] | 15 ] |
14 | 16 |
15 deps = [ | 17 deps = [ |
16 "//base", | 18 "//base", |
17 "//crypto", | 19 "//crypto", |
18 ] | 20 ] |
| 21 |
| 22 public_deps = [ |
| 23 ":crx3_proto", |
| 24 ] |
19 } | 25 } |
20 | 26 |
21 source_set("unit_tests") { | 27 source_set("unit_tests") { |
22 testonly = true | 28 testonly = true |
23 sources = [ | 29 sources = [ |
| 30 "crx_verifier_unittest.cc", |
24 "id_util_unittest.cc", | 31 "id_util_unittest.cc", |
25 ] | 32 ] |
26 | 33 |
27 deps = [ | 34 deps = [ |
28 ":crx_file", | 35 ":crx_file", |
29 "//base", | 36 "//base", |
30 "//testing/gtest", | 37 "//testing/gtest", |
31 ] | 38 ] |
32 } | 39 } |
| 40 |
| 41 proto_library("crx3_proto") { |
| 42 sources = [ |
| 43 "crx3.proto", |
| 44 ] |
| 45 } |
OLD | NEW |