| 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", |
| 11 ":common_custom_types", | 11 ":common_custom_types", |
| 12 ] | 12 ] |
| 13 } | 13 } |
| 14 | 14 |
| 15 # GYP version: mojo/mojo_base.gyp:mojo_common_custom_types | |
| 16 mojom("common_custom_types") { | 15 mojom("common_custom_types") { |
| 17 sources = [ | 16 sources = [ |
| 18 "common_custom_types.mojom", | 17 "common_custom_types.mojom", |
| 19 ] | 18 ] |
| 20 } | 19 } |
| 21 | 20 |
| 22 # GYP version: mojo/mojo_base.gyp:mojo_common_lib | |
| 23 component("common_base") { | 21 component("common_base") { |
| 24 output_name = "mojo_common_lib" | 22 output_name = "mojo_common_lib" |
| 25 | 23 |
| 26 sources = [ | 24 sources = [ |
| 27 "common_type_converters.cc", | 25 "common_type_converters.cc", |
| 28 "common_type_converters.h", | 26 "common_type_converters.h", |
| 29 "data_pipe_drainer.cc", | 27 "data_pipe_drainer.cc", |
| 30 "data_pipe_drainer.h", | 28 "data_pipe_drainer.h", |
| 31 "data_pipe_file_utils.cc", | 29 "data_pipe_file_utils.cc", |
| 32 "data_pipe_utils.cc", | 30 "data_pipe_utils.cc", |
| 33 "data_pipe_utils.h", | 31 "data_pipe_utils.h", |
| 34 "user_agent.cc", | 32 "user_agent.cc", |
| 35 "user_agent.h", | 33 "user_agent.h", |
| 36 ] | 34 ] |
| 37 | 35 |
| 38 defines = [ "MOJO_COMMON_IMPLEMENTATION" ] | 36 defines = [ "MOJO_COMMON_IMPLEMENTATION" ] |
| 39 | 37 |
| 40 public_deps = [ | 38 public_deps = [ |
| 41 "//base", | 39 "//base", |
| 42 "//mojo/public/cpp/bindings", | 40 "//mojo/public/cpp/bindings", |
| 43 "//mojo/public/cpp/system", | 41 "//mojo/public/cpp/system", |
| 44 ] | 42 ] |
| 45 } | 43 } |
| 46 | 44 |
| 47 # GYP version: mojo/mojo_base.gyp:mojo_test_common_custom_types | |
| 48 mojom("test_common_custom_types") { | 45 mojom("test_common_custom_types") { |
| 49 sources = [ | 46 sources = [ |
| 50 "test_common_custom_types.mojom", | 47 "test_common_custom_types.mojom", |
| 51 "traits_test_service.mojom", | 48 "traits_test_service.mojom", |
| 52 ] | 49 ] |
| 53 public_deps = [ | 50 public_deps = [ |
| 54 ":common_custom_types", | 51 ":common_custom_types", |
| 55 ] | 52 ] |
| 56 } | 53 } |
| 57 | 54 |
| 58 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests | |
| 59 test("mojo_common_unittests") { | 55 test("mojo_common_unittests") { |
| 60 deps = [ | 56 deps = [ |
| 61 ":common", | 57 ":common", |
| 62 ":common_custom_types", | 58 ":common_custom_types", |
| 63 ":struct_traits", | 59 ":struct_traits", |
| 64 ":test_common_custom_types", | 60 ":test_common_custom_types", |
| 65 "//base", | 61 "//base", |
| 66 "//base:message_loop_tests", | 62 "//base:message_loop_tests", |
| 67 "//base/test:test_support", | 63 "//base/test:test_support", |
| 68 "//mojo/edk/test:run_all_unittests", | 64 "//mojo/edk/test:run_all_unittests", |
| (...skipping 24 matching lines...) Expand all Loading... |
| 93 source_set("struct_traits") { | 89 source_set("struct_traits") { |
| 94 sources = [ | 90 sources = [ |
| 95 "common_custom_types_struct_traits.cc", | 91 "common_custom_types_struct_traits.cc", |
| 96 "common_custom_types_struct_traits.h", | 92 "common_custom_types_struct_traits.h", |
| 97 ] | 93 ] |
| 98 deps = [ | 94 deps = [ |
| 99 ":common_custom_types_shared_cpp_sources", | 95 ":common_custom_types_shared_cpp_sources", |
| 100 "//base:base", | 96 "//base:base", |
| 101 ] | 97 ] |
| 102 } | 98 } |
| OLD | NEW |