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 "content_settings_utils.cc", |
| 17 "content_settings_utils.h", |
16 "pref_names.cc", | 18 "pref_names.cc", |
17 "pref_names.h", | 19 "pref_names.h", |
18 ] | 20 ] |
19 | 21 |
20 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 22 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
21 | 23 |
22 deps = [ | 24 deps = [ |
23 "//base", | 25 "//base", |
| 26 "//mojo/common:common_custom_types", |
| 27 "//mojo/common:struct_traits", |
24 "//mojo/public/cpp/bindings:struct_traits", | 28 "//mojo/public/cpp/bindings:struct_traits", |
25 "//net", | 29 "//net", |
26 "//url", | 30 "//url", |
27 ] | 31 ] |
28 } | 32 } |
29 | 33 |
30 source_set("unit_tests") { | 34 source_set("unit_tests") { |
31 testonly = true | 35 testonly = true |
32 sources = [ | 36 sources = [ |
33 "content_settings_pattern_parser_unittest.cc", | 37 "content_settings_pattern_parser_unittest.cc", |
34 "content_settings_pattern_unittest.cc", | 38 "content_settings_pattern_unittest.cc", |
35 ] | 39 ] |
36 | 40 |
37 deps = [ | 41 deps = [ |
38 ":common", | 42 ":common", |
39 "//net", | 43 "//net", |
40 "//testing/gmock", | 44 "//testing/gmock", |
41 "//testing/gtest", | 45 "//testing/gtest", |
42 "//url", | 46 "//url", |
43 ] | 47 ] |
44 } | 48 } |
45 | 49 |
46 mojom("mojo_bindings") { | 50 mojom("mojo_bindings") { |
47 sources = [ | 51 sources = [ |
48 "content_settings.mojom", | 52 "content_settings.mojom", |
49 ] | 53 ] |
| 54 |
| 55 public_deps = [ |
| 56 "//mojo/common:common_custom_types", |
| 57 ] |
50 } | 58 } |
OLD | NEW |