Index: mojo/edk/embedder/BUILD.gn |
diff --git a/mojo/edk/embedder/BUILD.gn b/mojo/edk/embedder/BUILD.gn |
index 50e93b0485185796c552b4635547cdae39d33a25..3bd9df007243f52013925f7a6eb8b0012355f56b 100644 |
--- a/mojo/edk/embedder/BUILD.gn |
+++ b/mojo/edk/embedder/BUILD.gn |
@@ -3,11 +3,26 @@ |
# found in the LICENSE file. |
source_set("embedder") { |
- # This isn't really a standalone target, it must be linked into the |
+ # This isn't really a standalone target; it must be linked into the |
# mojo_system_impl component. |
visibility = [ "//mojo/edk/system" ] |
- deps = [ "//base", ] |
+ sources = [ |
+ "channel_info_forward.h", |
+ "channel_init.cc", |
+ "channel_init.h", |
+ "configuration.h", |
+ "embedder.cc", |
+ "embedder.h", |
+ "embedder_internal.h", |
+ "entrypoints.cc", |
+ # Test-only code: |
+ # TODO(vtl): It's a little unfortunate that these end up in the same |
+ # component as non-test-only code. In the static build, this code should |
+ # hopefully be dead-stripped. |
+ "test_embedder.cc", |
+ "test_embedder.h", |
+ ] |
defines = [ |
"MOJO_SYSTEM_IMPL_IMPLEMENTATION", |
@@ -16,12 +31,23 @@ source_set("embedder") { |
configs += [ "//mojo/edk/system:system_config" ] |
+ public_deps = [ |
+ ":platform", |
+ "//mojo/public/cpp/system", |
+ ] |
+ |
+ deps = [ "//base" ] |
+} |
+ |
+source_set("platform") { |
+ # This isn't really a standalone target; it must be linked into the |
+ # mojo_system_impl component. |
+ visibility = [ |
+ ":embedder", |
+ "//mojo/edk/system", |
+ ] |
+ |
sources = [ |
- "channel_info_forward.h", |
- "channel_init.cc", |
- "channel_init.h", |
- "embedder.cc", |
- "embedder.h", |
"platform_channel_pair.cc", |
"platform_channel_pair.h", |
"platform_channel_pair_posix.cc", |
@@ -43,30 +69,30 @@ source_set("embedder") { |
"simple_platform_shared_buffer_win.cc", |
"simple_platform_support.cc", |
"simple_platform_support.h", |
- # Test-only code: |
- # TODO(vtl): It's a little unfortunate that these end up in the same |
- # component as non-test-only code. In the static build, this code should |
- # hopefully be dead-stripped. |
- "test_embedder.cc", |
- "test_embedder.h", |
] |
+ |
+ defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
+ |
+ configs += [ "//mojo/edk/system:system_config" ] |
+ |
+ deps = [ "//base" ] |
} |
source_set("embedder_unittests") { |
testonly = true |
visibility = [ "//mojo/edk/system:mojo_system_unittests" ] |
- testonly = true |
+ |
+ sources = [ |
+ "embedder_unittest.cc", |
+ "platform_channel_pair_posix_unittest.cc", |
+ "simple_platform_shared_buffer_unittest.cc", |
+ ] |
deps = [ |
"//base", |
+ "//base/test:test_support", |
"//mojo/edk/test:test_support", |
"//mojo/edk/system", |
"//testing/gtest", |
] |
- |
- sources = [ |
- "embedder_unittest.cc", |
- "platform_channel_pair_posix_unittest.cc", |
- "simple_platform_shared_buffer_unittest.cc", |
- ] |
} |