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 group("common") { | 8 group("common") { |
9 public_deps = [ | 9 public_deps = [ |
10 ":common_base", | 10 ":common_base", |
(...skipping 10 matching lines...) Expand all Loading... |
21 "unguessable_token.mojom", | 21 "unguessable_token.mojom", |
22 "values.mojom", | 22 "values.mojom", |
23 "version.mojom", | 23 "version.mojom", |
24 ] | 24 ] |
25 } | 25 } |
26 | 26 |
27 component("common_base") { | 27 component("common_base") { |
28 output_name = "mojo_common_lib" | 28 output_name = "mojo_common_lib" |
29 | 29 |
30 sources = [ | 30 sources = [ |
31 "common_type_converters.cc", | |
32 "common_type_converters.h", | |
33 "data_pipe_drainer.cc", | 31 "data_pipe_drainer.cc", |
34 "data_pipe_drainer.h", | 32 "data_pipe_drainer.h", |
35 "data_pipe_utils.cc", | 33 "data_pipe_utils.cc", |
36 "data_pipe_utils.h", | 34 "data_pipe_utils.h", |
37 ] | 35 ] |
38 | 36 |
39 defines = [ "MOJO_COMMON_IMPLEMENTATION" ] | 37 defines = [ "MOJO_COMMON_IMPLEMENTATION" ] |
40 | 38 |
41 public_deps = [ | 39 public_deps = [ |
42 "//base", | 40 "//base", |
(...skipping 24 matching lines...) Expand all Loading... |
67 "//mojo/edk/test:run_all_unittests", | 65 "//mojo/edk/test:run_all_unittests", |
68 "//mojo/edk/test:test_support", | 66 "//mojo/edk/test:test_support", |
69 "//mojo/public/cpp/bindings", | 67 "//mojo/public/cpp/bindings", |
70 "//mojo/public/cpp/test_support:test_utils", | 68 "//mojo/public/cpp/test_support:test_utils", |
71 "//testing/gtest", | 69 "//testing/gtest", |
72 "//url", | 70 "//url", |
73 ] | 71 ] |
74 | 72 |
75 sources = [ | 73 sources = [ |
76 "common_custom_types_unittest.cc", | 74 "common_custom_types_unittest.cc", |
77 "common_type_converters_unittest.cc", | |
78 "struct_traits_unittest.cc", | 75 "struct_traits_unittest.cc", |
79 ] | 76 ] |
80 } | 77 } |
81 | 78 |
82 test("mojo_common_perftests") { | 79 test("mojo_common_perftests") { |
83 deps = [ | 80 deps = [ |
84 ":common", | 81 ":common", |
85 "//base", | 82 "//base", |
86 "//mojo/edk/test:run_all_perftests", | 83 "//mojo/edk/test:run_all_perftests", |
87 "//mojo/public/cpp/test_support:test_utils", | 84 "//mojo/public/cpp/test_support:test_utils", |
88 "//testing/gtest", | 85 "//testing/gtest", |
89 ] | 86 ] |
90 } | 87 } |
91 | 88 |
92 source_set("struct_traits") { | 89 source_set("struct_traits") { |
93 sources = [ | 90 sources = [ |
94 "common_custom_types_struct_traits.cc", | 91 "common_custom_types_struct_traits.cc", |
95 "common_custom_types_struct_traits.h", | 92 "common_custom_types_struct_traits.h", |
96 ] | 93 ] |
97 deps = [ | 94 deps = [ |
98 ":common_custom_types_shared_cpp_sources", | 95 ":common_custom_types_shared_cpp_sources", |
99 "//base:base", | 96 "//base:base", |
100 "//mojo/public/cpp/system", | 97 "//mojo/public/cpp/system", |
101 ] | 98 ] |
102 } | 99 } |
OLD | NEW |