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("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
6 | 6 |
7 static_library("common") { | 7 static_library("common") { |
8 sources = [ | 8 sources = [ |
9 "content_settings.cc", | 9 "content_settings.cc", |
10 "content_settings.h", | 10 "content_settings.h", |
11 "content_settings_pattern.cc", | 11 "content_settings_pattern.cc", |
12 "content_settings_pattern.h", | 12 "content_settings_pattern.h", |
13 "content_settings_pattern_parser.cc", | 13 "content_settings_pattern_parser.cc", |
14 "content_settings_pattern_parser.h", | 14 "content_settings_pattern_parser.h", |
15 "content_settings_types.h", | 15 "content_settings_types.h", |
16 "pref_names.cc", | 16 "pref_names.cc", |
17 "pref_names.h", | 17 "pref_names.h", |
18 ] | 18 ] |
19 | 19 |
20 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 20 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
21 | 21 |
22 deps = [ | 22 deps = [ |
23 "//base", | 23 "//base", |
24 "//mojo/public/cpp/bindings:struct_traits", | 24 "//mojo/public/cpp/bindings:struct_traits", |
25 "//net", | 25 "//net", |
| 26 "//third_party/re2", |
26 "//url", | 27 "//url", |
27 ] | 28 ] |
28 } | 29 } |
29 | 30 |
30 source_set("unit_tests") { | 31 source_set("unit_tests") { |
31 testonly = true | 32 testonly = true |
32 sources = [ | 33 sources = [ |
33 "content_settings_pattern_parser_unittest.cc", | 34 "content_settings_pattern_parser_unittest.cc", |
34 "content_settings_pattern_unittest.cc", | 35 "content_settings_pattern_unittest.cc", |
35 ] | 36 ] |
36 | 37 |
37 deps = [ | 38 deps = [ |
38 ":common", | 39 ":common", |
39 "//net", | 40 "//net", |
40 "//testing/gmock", | 41 "//testing/gmock", |
41 "//testing/gtest", | 42 "//testing/gtest", |
42 "//url", | 43 "//url", |
43 ] | 44 ] |
44 } | 45 } |
45 | 46 |
46 mojom("mojo_bindings") { | 47 mojom("mojo_bindings") { |
47 sources = [ | 48 sources = [ |
48 "content_settings.mojom", | 49 "content_settings.mojom", |
49 ] | 50 ] |
50 } | 51 } |
OLD | NEW |