| 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 source_set("embedder") { | 5 source_set("embedder") { |
| 6 # This isn't really a standalone target; it must be linked into the | 6 # This isn't really a standalone target, it must be linked into the |
| 7 # mojo_system_impl component. | 7 # mojo_system_impl component. |
| 8 visibility = [ "//mojo/edk/system" ] | 8 visibility = [ "//mojo/edk/system" ] |
| 9 | 9 |
| 10 sources = [ | 10 deps = [ "//base", ] |
| 11 "channel_info_forward.h", | |
| 12 "channel_init.cc", | |
| 13 "channel_init.h", | |
| 14 "configuration.h", | |
| 15 "embedder.cc", | |
| 16 "embedder.h", | |
| 17 "embedder_internal.h", | |
| 18 "entrypoints.cc", | |
| 19 # Test-only code: | |
| 20 # TODO(vtl): It's a little unfortunate that these end up in the same | |
| 21 # component as non-test-only code. In the static build, this code should | |
| 22 # hopefully be dead-stripped. | |
| 23 "test_embedder.cc", | |
| 24 "test_embedder.h", | |
| 25 ] | |
| 26 | 11 |
| 27 defines = [ | 12 defines = [ |
| 28 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", | 13 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", |
| 29 "MOJO_SYSTEM_IMPLEMENTATION", | 14 "MOJO_SYSTEM_IMPLEMENTATION", |
| 30 ] | 15 ] |
| 31 | 16 |
| 32 configs += [ "//mojo/edk/system:system_config" ] | 17 configs += [ "//mojo/edk/system:system_config" ] |
| 33 | 18 |
| 34 public_deps = [ | |
| 35 ":platform", | |
| 36 "//mojo/public/cpp/system", | |
| 37 ] | |
| 38 | |
| 39 deps = [ "//base" ] | |
| 40 } | |
| 41 | |
| 42 source_set("platform") { | |
| 43 # This isn't really a standalone target; it must be linked into the | |
| 44 # mojo_system_impl component. | |
| 45 visibility = [ | |
| 46 ":embedder", | |
| 47 "//mojo/edk/system", | |
| 48 ] | |
| 49 | |
| 50 sources = [ | 19 sources = [ |
| 20 "channel_info_forward.h", |
| 21 "channel_init.cc", |
| 22 "channel_init.h", |
| 23 "embedder.cc", |
| 24 "embedder.h", |
| 51 "platform_channel_pair.cc", | 25 "platform_channel_pair.cc", |
| 52 "platform_channel_pair.h", | 26 "platform_channel_pair.h", |
| 53 "platform_channel_pair_posix.cc", | 27 "platform_channel_pair_posix.cc", |
| 54 "platform_channel_pair_win.cc", | 28 "platform_channel_pair_win.cc", |
| 55 "platform_channel_utils_posix.cc", | 29 "platform_channel_utils_posix.cc", |
| 56 "platform_channel_utils_posix.h", | 30 "platform_channel_utils_posix.h", |
| 57 "platform_handle.cc", | 31 "platform_handle.cc", |
| 58 "platform_handle.h", | 32 "platform_handle.h", |
| 59 "platform_handle_utils.h", | 33 "platform_handle_utils.h", |
| 60 "platform_handle_utils_posix.cc", | 34 "platform_handle_utils_posix.cc", |
| 61 "platform_handle_utils_win.cc", | 35 "platform_handle_utils_win.cc", |
| 62 "platform_handle_vector.h", | 36 "platform_handle_vector.h", |
| 63 "platform_shared_buffer.h", | 37 "platform_shared_buffer.h", |
| 64 "platform_support.h", | 38 "platform_support.h", |
| 65 "scoped_platform_handle.h", | 39 "scoped_platform_handle.h", |
| 66 "simple_platform_shared_buffer.cc", | 40 "simple_platform_shared_buffer.cc", |
| 67 "simple_platform_shared_buffer.h", | 41 "simple_platform_shared_buffer.h", |
| 68 "simple_platform_shared_buffer_posix.cc", | 42 "simple_platform_shared_buffer_posix.cc", |
| 69 "simple_platform_shared_buffer_win.cc", | 43 "simple_platform_shared_buffer_win.cc", |
| 70 "simple_platform_support.cc", | 44 "simple_platform_support.cc", |
| 71 "simple_platform_support.h", | 45 "simple_platform_support.h", |
| 46 # Test-only code: |
| 47 # TODO(vtl): It's a little unfortunate that these end up in the same |
| 48 # component as non-test-only code. In the static build, this code should |
| 49 # hopefully be dead-stripped. |
| 50 "test_embedder.cc", |
| 51 "test_embedder.h", |
| 72 ] | 52 ] |
| 73 | |
| 74 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | |
| 75 | |
| 76 configs += [ "//mojo/edk/system:system_config" ] | |
| 77 | |
| 78 deps = [ "//base" ] | |
| 79 } | 53 } |
| 80 | 54 |
| 81 source_set("embedder_unittests") { | 55 source_set("embedder_unittests") { |
| 82 testonly = true | 56 testonly = true |
| 83 visibility = [ "//mojo/edk/system:mojo_system_unittests" ] | 57 visibility = [ "//mojo/edk/system:mojo_system_unittests" ] |
| 58 testonly = true |
| 59 |
| 60 deps = [ |
| 61 "//base", |
| 62 "//mojo/edk/test:test_support", |
| 63 "//mojo/edk/system", |
| 64 "//testing/gtest", |
| 65 ] |
| 84 | 66 |
| 85 sources = [ | 67 sources = [ |
| 86 "embedder_unittest.cc", | 68 "embedder_unittest.cc", |
| 87 "platform_channel_pair_posix_unittest.cc", | 69 "platform_channel_pair_posix_unittest.cc", |
| 88 "simple_platform_shared_buffer_unittest.cc", | 70 "simple_platform_shared_buffer_unittest.cc", |
| 89 ] | 71 ] |
| 90 | |
| 91 deps = [ | |
| 92 "//base", | |
| 93 "//base/test:test_support", | |
| 94 "//mojo/edk/test:test_support", | |
| 95 "//mojo/edk/system", | |
| 96 "//testing/gtest", | |
| 97 ] | |
| 98 } | 72 } |
| OLD | NEW |