OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 # This target does NOT depend on skia. One can depend on this target to avoid | 7 # This target does NOT depend on skia. One can depend on this target to avoid |
8 # picking up a dependency on skia. | 8 # picking up a dependency on skia. |
9 mojom("mojo") { | 9 mojom("mojo") { |
10 sources = [ | 10 sources = [ |
11 "range.mojom", | 11 "range.mojom", |
12 ] | 12 ] |
13 } | 13 } |
14 | 14 |
15 mojom("test_interfaces") { | 15 mojom("test_interfaces") { |
16 sources = [ | 16 sources = [ |
17 "range_traits_test_service.mojom", | 17 "range_traits_test_service.mojom", |
18 ] | 18 ] |
19 | 19 |
20 public_deps = [ | 20 public_deps = [ |
21 ":mojo", | 21 ":mojo", |
22 ] | 22 ] |
| 23 |
| 24 # TODO(crbug.com/714018): Convert the implementation to use OnceCallback. |
| 25 use_once_callback = false |
23 } | 26 } |
24 | 27 |
25 source_set("unit_test") { | 28 source_set("unit_test") { |
26 testonly = true | 29 testonly = true |
27 | 30 |
28 sources = [ | 31 sources = [ |
29 "range_struct_traits_unittest.cc", | 32 "range_struct_traits_unittest.cc", |
30 ] | 33 ] |
31 | 34 |
32 deps = [ | 35 deps = [ |
33 ":test_interfaces", | 36 ":test_interfaces", |
34 "//base", | 37 "//base", |
35 "//mojo/public/cpp/bindings", | 38 "//mojo/public/cpp/bindings", |
36 "//testing/gtest", | 39 "//testing/gtest", |
37 "//ui/gfx/range", | 40 "//ui/gfx/range", |
38 ] | 41 ] |
39 } | 42 } |
40 | 43 |
41 source_set("struct_traits") { | 44 source_set("struct_traits") { |
42 sources = [ | 45 sources = [ |
43 "range_struct_traits.h", | 46 "range_struct_traits.h", |
44 ] | 47 ] |
45 public_deps = [ | 48 public_deps = [ |
46 ":mojo_shared_cpp_sources", | 49 ":mojo_shared_cpp_sources", |
47 "//ui/gfx/range", | 50 "//ui/gfx/range", |
48 ] | 51 ] |
49 } | 52 } |
OLD | NEW |