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