Chromium Code Reviews| 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("//build/config/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
| 6 | 6 |
| 7 source_set("headers") { | 7 source_set("headers") { |
| 8 sources = [ | 8 sources = [ |
| 9 "configuration.h", | 9 "configuration.h", |
| 10 "embedder.h", | 10 "embedder.h", |
| 11 "embedder_internal.h", | 11 "embedder_internal.h", |
| 12 "named_platform_channel_pair.h", | 12 "named_platform_channel_pair.h", |
| 13 "named_platform_handle.h", | |
| 14 "named_platform_handle_utils.h", | |
| 13 "platform_channel_pair.h", | 15 "platform_channel_pair.h", |
| 14 "platform_handle.h", | 16 "platform_handle.h", |
| 15 "platform_handle_utils.h", | 17 "platform_handle_utils.h", |
| 16 "process_delegate.h", | 18 "process_delegate.h", |
| 17 "scoped_platform_handle.h", | 19 "scoped_platform_handle.h", |
| 18 ] | 20 ] |
| 19 | 21 |
| 20 public_deps = [ | 22 public_deps = [ |
| 21 "//base", | 23 "//base", |
| 22 "//mojo/public/cpp/system", | 24 "//mojo/public/cpp/system", |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 # This isn't really a standalone target; it must be linked into the | 72 # This isn't really a standalone target; it must be linked into the |
| 71 # mojo_system_impl component. | 73 # mojo_system_impl component. |
| 72 visibility = [ | 74 visibility = [ |
| 73 ":embedder", | 75 ":embedder", |
| 74 "//mojo/edk/system", | 76 "//mojo/edk/system", |
| 75 ] | 77 ] |
| 76 | 78 |
| 77 sources = [ | 79 sources = [ |
| 78 "named_platform_channel_pair.h", | 80 "named_platform_channel_pair.h", |
| 79 "named_platform_channel_pair_win.cc", | 81 "named_platform_channel_pair_win.cc", |
| 82 "named_platform_handle.h", | |
| 83 "named_platform_handle_utils.h", | |
| 84 "named_platform_handle_utils_win.cc", | |
| 80 "platform_channel_pair.cc", | 85 "platform_channel_pair.cc", |
| 81 "platform_channel_pair.h", | 86 "platform_channel_pair.h", |
| 82 "platform_channel_pair_posix.cc", | 87 "platform_channel_pair_posix.cc", |
| 83 "platform_channel_pair_win.cc", | 88 "platform_channel_pair_win.cc", |
| 84 "platform_channel_utils_posix.cc", | 89 "platform_channel_utils_posix.cc", |
| 85 "platform_channel_utils_posix.h", | 90 "platform_channel_utils_posix.h", |
| 86 "platform_handle.cc", | 91 "platform_handle.cc", |
| 87 "platform_handle.h", | 92 "platform_handle.h", |
| 88 "platform_handle_utils.h", | 93 "platform_handle_utils.h", |
| 89 "platform_handle_utils_posix.cc", | 94 "platform_handle_utils_posix.cc", |
| 90 "platform_handle_utils_win.cc", | 95 "platform_handle_utils_win.cc", |
| 91 "platform_handle_vector.h", | 96 "platform_handle_vector.h", |
| 92 "platform_shared_buffer.cc", | 97 "platform_shared_buffer.cc", |
| 93 "platform_shared_buffer.h", | 98 "platform_shared_buffer.h", |
| 94 "scoped_platform_handle.h", | 99 "scoped_platform_handle.h", |
| 95 ] | 100 ] |
| 101 if (!is_nacl) { | |
| 102 sources += [ "named_platform_handle_utils_posix.cc" ] | |
| 103 } | |
| 96 | 104 |
| 97 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | 105 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
| 98 | 106 |
| 99 public_deps = [ | 107 public_deps = [ |
| 100 "//mojo/public/cpp/system", | 108 "//mojo/public/cpp/system", |
| 101 ] | 109 ] |
| 102 | 110 |
| 103 deps = [ | 111 deps = [ |
| 104 "//base", | 112 "//base", |
| 105 ] | 113 ] |
| 114 if (is_posix && !is_nacl) { | |
| 115 deps += [ "//ipc" ] | |
|
Ken Rockot(use gerrit already)
2016/08/30 16:58:31
I'd sooner duplicate the code or try to move it in
Sam McNally
2016/08/31 00:00:13
Done.
| |
| 116 } | |
| 106 | 117 |
| 107 if (is_android) { | 118 if (is_android) { |
| 108 deps += [ "//third_party/ashmem" ] | 119 deps += [ "//third_party/ashmem" ] |
| 109 } | 120 } |
| 110 | 121 |
| 111 if (is_nacl && !is_nacl_nonsfi) { | 122 if (is_nacl && !is_nacl_nonsfi) { |
| 112 sources -= [ "platform_channel_utils_posix.cc" ] | 123 sources -= [ "platform_channel_utils_posix.cc" ] |
| 113 } | 124 } |
| 114 } | 125 } |
| 115 | 126 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 146 | 157 |
| 147 deps = [ | 158 deps = [ |
| 148 "//base", | 159 "//base", |
| 149 "//base/test:test_support", | 160 "//base/test:test_support", |
| 150 "//mojo/edk/system", | 161 "//mojo/edk/system", |
| 151 "//mojo/edk/system:test_utils", | 162 "//mojo/edk/system:test_utils", |
| 152 "//mojo/edk/test:test_support", | 163 "//mojo/edk/test:test_support", |
| 153 "//testing/gtest", | 164 "//testing/gtest", |
| 154 ] | 165 ] |
| 155 } | 166 } |
| OLD | NEW |