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