| 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 mojom("common_custom_types") { | 15 mojom("common_custom_types") { |
| 16 sources = [ | 16 sources = [ |
| 17 "file.mojom", | 17 "file.mojom", |
| 18 "file_path.mojom", | 18 "file_path.mojom", |
| 19 "platform_handle.mojom", |
| 19 "string16.mojom", | 20 "string16.mojom", |
| 20 "time.mojom", | 21 "time.mojom", |
| 21 "unguessable_token.mojom", | 22 "unguessable_token.mojom", |
| 22 "values.mojom", | 23 "values.mojom", |
| 23 "version.mojom", | 24 "version.mojom", |
| 24 ] | 25 ] |
| 25 } | 26 } |
| 26 | 27 |
| 27 component("common_base") { | 28 component("common_base") { |
| 28 output_name = "mojo_common_lib" | 29 output_name = "mojo_common_lib" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 44 public_deps = [ | 45 public_deps = [ |
| 45 "//base", | 46 "//base", |
| 46 "//mojo/public/cpp/bindings", | 47 "//mojo/public/cpp/bindings", |
| 47 "//mojo/public/cpp/system", | 48 "//mojo/public/cpp/system", |
| 48 ] | 49 ] |
| 49 } | 50 } |
| 50 | 51 |
| 51 mojom("test_common_custom_types") { | 52 mojom("test_common_custom_types") { |
| 52 sources = [ | 53 sources = [ |
| 53 "test_common_custom_types.mojom", | 54 "test_common_custom_types.mojom", |
| 55 "test_invalid_typemapped_type.mojom", |
| 54 "traits_test_service.mojom", | 56 "traits_test_service.mojom", |
| 55 ] | 57 ] |
| 56 public_deps = [ | 58 public_deps = [ |
| 57 ":common_custom_types", | 59 ":common_custom_types", |
| 58 ] | 60 ] |
| 59 } | 61 } |
| 60 | 62 |
| 61 test("mojo_common_unittests") { | 63 test("mojo_common_unittests") { |
| 62 deps = [ | 64 deps = [ |
| 63 ":common", | 65 ":common", |
| (...skipping 25 matching lines...) Expand all Loading... |
| 89 "//mojo/edk/test:run_all_perftests", | 91 "//mojo/edk/test:run_all_perftests", |
| 90 "//mojo/public/cpp/test_support:test_utils", | 92 "//mojo/public/cpp/test_support:test_utils", |
| 91 "//testing/gtest", | 93 "//testing/gtest", |
| 92 ] | 94 ] |
| 93 } | 95 } |
| 94 | 96 |
| 95 source_set("struct_traits") { | 97 source_set("struct_traits") { |
| 96 sources = [ | 98 sources = [ |
| 97 "common_custom_types_struct_traits.cc", | 99 "common_custom_types_struct_traits.cc", |
| 98 "common_custom_types_struct_traits.h", | 100 "common_custom_types_struct_traits.h", |
| 101 "common_custom_types_struct_traits_posix.cc", |
| 102 "common_custom_types_struct_traits_posix.h", |
| 103 "common_custom_types_struct_traits_win.cc", |
| 104 "common_custom_types_struct_traits_win.h", |
| 105 "invalid_typemapped_type.h", |
| 106 "platform_handle.h", |
| 99 ] | 107 ] |
| 100 deps = [ | 108 deps = [ |
| 101 ":common_custom_types_shared_cpp_sources", | 109 ":common_custom_types_shared_cpp_sources", |
| 102 "//base:base", | 110 "//base:base", |
| 103 "//mojo/public/cpp/system", | 111 "//mojo/public/cpp/system", |
| 104 ] | 112 ] |
| 105 } | 113 } |
| OLD | NEW |