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 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 component("common") { | 8 component("common") { |
9 output_name = "mojo_common_lib" | 9 output_name = "mojo_common_lib" |
10 | 10 |
11 sources = [ | 11 sources = [ |
| 12 "binding_set.h", |
12 "common_type_converters.cc", | 13 "common_type_converters.cc", |
13 "common_type_converters.h", | 14 "common_type_converters.h", |
14 "data_pipe_drainer.cc", | 15 "data_pipe_drainer.cc", |
15 "data_pipe_drainer.h", | 16 "data_pipe_drainer.h", |
16 "data_pipe_file_utils.cc", | 17 "data_pipe_file_utils.cc", |
17 "data_pipe_utils.cc", | 18 "data_pipe_utils.cc", |
18 "data_pipe_utils.h", | 19 "data_pipe_utils.h", |
19 "data_pipe_utils_internal.h", | 20 "data_pipe_utils_internal.h", |
20 "handle_watcher.cc", | 21 "handle_watcher.cc", |
21 "handle_watcher.h", | 22 "handle_watcher.h", |
22 "interface_ptr_set.h", | 23 "interface_ptr_set.h", |
23 "message_pump_mojo.cc", | 24 "message_pump_mojo.cc", |
24 "message_pump_mojo.h", | 25 "message_pump_mojo.h", |
25 "message_pump_mojo_handler.h", | 26 "message_pump_mojo_handler.h", |
26 "task_tracker.cc", | 27 "task_tracker.cc", |
27 "task_tracker.h", | 28 "task_tracker.h", |
28 "time_helper.cc", | 29 "time_helper.cc", |
29 "time_helper.h", | 30 "time_helper.h", |
30 "weak_binding_set.h", | |
31 ] | 31 ] |
32 | 32 |
33 if (is_nacl) { | 33 if (is_nacl) { |
34 sources -= [ "data_pipe_file_utils.cc" ] | 34 sources -= [ "data_pipe_file_utils.cc" ] |
35 } | 35 } |
36 | 36 |
37 deps = [ | 37 deps = [ |
38 "//base", | 38 "//base", |
39 "//base/third_party/dynamic_annotations", | 39 "//base/third_party/dynamic_annotations", |
40 "//mojo/public/c/system", | 40 "//mojo/public/c/system", |
41 "//mojo/public/cpp/bindings", | 41 "//mojo/public/cpp/bindings", |
42 "//mojo/public/cpp/system", | 42 "//mojo/public/cpp/system", |
43 "//url", | 43 "//url", |
44 ] | 44 ] |
45 } | 45 } |
46 | 46 |
47 test("mojo_common_unittests") { | 47 test("mojo_common_unittests") { |
48 sources = [ | 48 sources = [ |
| 49 "binding_set_unittest.cc", |
49 "common_type_converters_unittest.cc", | 50 "common_type_converters_unittest.cc", |
50 "data_pipe_utils_unittest.cc", | 51 "data_pipe_utils_unittest.cc", |
51 "handle_watcher_unittest.cc", | 52 "handle_watcher_unittest.cc", |
52 "interface_ptr_set_unittest.cc", | 53 "interface_ptr_set_unittest.cc", |
53 "message_pump_mojo_unittest.cc", | 54 "message_pump_mojo_unittest.cc", |
54 "task_tracker_unittest.cc", | 55 "task_tracker_unittest.cc", |
55 "weak_binding_set_unittest.cc", | |
56 ] | 56 ] |
57 | 57 |
58 deps = [ | 58 deps = [ |
59 ":common", | 59 ":common", |
60 ":test_interfaces", | 60 ":test_interfaces", |
61 "//base", | 61 "//base", |
62 "//base/test:test_support", | 62 "//base/test:test_support", |
63 "//base:message_loop_tests", | 63 "//base:message_loop_tests", |
64 "//mojo/edk/test:run_all_unittests", | 64 "//mojo/edk/test:run_all_unittests", |
65 "//mojo/edk/test:test_support", | 65 "//mojo/edk/test:test_support", |
(...skipping 22 matching lines...) Expand all Loading... |
88 "tracing_impl.h", | 88 "tracing_impl.h", |
89 ] | 89 ] |
90 | 90 |
91 deps = [ | 91 deps = [ |
92 "//base", | 92 "//base", |
93 "//mojo/public/cpp/application", | 93 "//mojo/public/cpp/application", |
94 "//mojo/public/cpp/bindings", | 94 "//mojo/public/cpp/bindings", |
95 "//mojo/services/tracing/public/interfaces", | 95 "//mojo/services/tracing/public/interfaces", |
96 ] | 96 ] |
97 } | 97 } |
OLD | NEW |