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