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_edk.gni") | 5 import("../mojo_edk.gni") |
6 | 6 |
7 mojo_edk_source_set("embedder") { | 7 mojo_edk_source_set("embedder") { |
8 # This isn't really a standalone target; it must be linked into the | 8 # This isn't really a standalone target; it must be linked into the |
9 # mojo_system_impl component. | 9 # mojo_system_impl component. |
10 mojo_edk_visibility = [ "mojo/edk/system" ] | 10 mojo_edk_visibility = [ "mojo/edk/system" ] |
(...skipping 20 matching lines...) Expand all Loading... |
31 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", | 31 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", |
32 "MOJO_SYSTEM_IMPLEMENTATION", | 32 "MOJO_SYSTEM_IMPLEMENTATION", |
33 ] | 33 ] |
34 | 34 |
35 mojo_edk_configs = [ "mojo/edk/system:system_config" ] | 35 mojo_edk_configs = [ "mojo/edk/system:system_config" ] |
36 | 36 |
37 public_deps = [ | 37 public_deps = [ |
38 ":platform", | 38 ":platform", |
39 ] | 39 ] |
40 | 40 |
41 mojo_sdk_public_deps = [ | 41 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ] |
42 "mojo/public/cpp/system", | |
43 ] | |
44 | 42 |
45 deps = [ | 43 deps = [ |
46 "//base", | 44 "//base", |
47 ] | 45 ] |
48 } | 46 } |
49 | 47 |
50 mojo_edk_source_set("platform") { | 48 mojo_edk_source_set("platform") { |
51 # This isn't really a standalone target; it must be linked into the | 49 # This isn't really a standalone target; it must be linked into the |
52 # mojo_system_impl component. | 50 # mojo_system_impl component. |
53 visibility = [ | 51 visibility = [ ":embedder" ] |
54 ":embedder", | |
55 ] | |
56 | 52 |
57 mojo_edk_visibility = [ | 53 mojo_edk_visibility = [ "mojo/edk/system" ] |
58 "mojo/edk/system", | |
59 ] | |
60 | 54 |
61 sources = [ | 55 sources = [ |
62 "platform_channel_pair.cc", | 56 "platform_channel_pair.cc", |
63 "platform_channel_pair.h", | 57 "platform_channel_pair.h", |
64 "platform_channel_pair_posix.cc", | 58 "platform_channel_pair_posix.cc", |
65 "platform_channel_pair_win.cc", | 59 "platform_channel_pair_win.cc", |
66 "platform_channel_utils_posix.cc", | 60 "platform_channel_utils_posix.cc", |
67 "platform_channel_utils_posix.h", | 61 "platform_channel_utils_posix.h", |
68 "platform_handle.cc", | 62 "platform_handle.cc", |
69 "platform_handle.h", | 63 "platform_handle.h", |
(...skipping 13 matching lines...) Expand all Loading... |
83 "simple_platform_support.h", | 77 "simple_platform_support.h", |
84 ] | 78 ] |
85 | 79 |
86 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | 80 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
87 | 81 |
88 mojo_edk_configs = [ "mojo/edk/system:system_config" ] | 82 mojo_edk_configs = [ "mojo/edk/system:system_config" ] |
89 | 83 |
90 deps = [ | 84 deps = [ |
91 "//base", | 85 "//base", |
92 ] | 86 ] |
| 87 |
| 88 if (is_android) { |
| 89 deps += [ "//third_party/ashmem" ] |
| 90 } |
93 } | 91 } |
94 | 92 |
95 mojo_edk_source_set("embedder_unittests") { | 93 mojo_edk_source_set("embedder_unittests") { |
96 testonly = true | 94 testonly = true |
97 mojo_edk_visibility = [ "mojo/edk/system:mojo_system_unittests" ] | 95 mojo_edk_visibility = [ "mojo/edk/system:mojo_system_unittests" ] |
98 | 96 |
99 sources = [ | 97 sources = [ |
100 "embedder_unittest.cc", | 98 "embedder_unittest.cc", |
101 "platform_channel_pair_posix_unittest.cc", | 99 "platform_channel_pair_posix_unittest.cc", |
102 "simple_platform_shared_buffer_unittest.cc", | 100 "simple_platform_shared_buffer_unittest.cc", |
103 ] | 101 ] |
104 | 102 |
105 deps = [ | 103 deps = [ |
106 "//base", | 104 "//base", |
107 "//base/test:test_support", | 105 "//base/test:test_support", |
108 "//testing/gtest", | 106 "//testing/gtest", |
109 ] | 107 ] |
110 | 108 |
111 mojo_edk_deps = [ | 109 mojo_edk_deps = [ |
112 "mojo/edk/test:test_support", | 110 "mojo/edk/test:test_support", |
113 "mojo/edk/system", | 111 "mojo/edk/system", |
114 "mojo/edk/system:test_utils", | 112 "mojo/edk/system:test_utils", |
115 ] | 113 ] |
116 } | 114 } |
OLD | NEW |