btolsch | 9d6900c | 2018-05-30 18:22:53 -0700 | [diff] [blame] | 1 | # Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Yuri Wiitala | b2d1323 | 2019-02-04 18:07:28 -0800 | [diff] [blame] | 5 | import("//build_overrides/build.gni") |
btolsch | 5292c94 | 2018-07-26 00:06:22 -0700 | [diff] [blame] | 6 | |
mark a. foltz | 6e60fdc | 2022-10-27 17:05:39 -0700 | [diff] [blame] | 7 | visibility = [ "./*" ] |
| 8 | |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 9 | # Source files that depend on nothing (all your base/ are belong to us). |
| 10 | source_set("base") { |
Ryan Keane | 1d9c0c4 | 2019-07-29 15:22:19 -0700 | [diff] [blame] | 11 | defines = [] |
mark a. foltz | 6e60fdc | 2022-10-27 17:05:39 -0700 | [diff] [blame] | 12 | visibility += [ "*" ] |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 13 | public = [ |
mark a. foltz | eca304d | 2023-01-25 13:45:44 -0800 | [diff] [blame] | 14 | "base/byte_view.h", |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 15 | "base/error.h", |
| 16 | "base/interface_info.h", |
| 17 | "base/ip_address.h", |
| 18 | "base/location.h", |
mark a. foltz | cf5b8ca | 2023-02-07 14:44:54 -0800 | [diff] [blame^] | 19 | "base/span.h", |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 20 | "base/tls_connect_options.h", |
| 21 | "base/tls_credentials.h", |
| 22 | "base/tls_listen_options.h", |
| 23 | "base/trace_logging_activation.h", |
| 24 | "base/trace_logging_types.h", |
| 25 | "base/trivial_clock_traits.h", |
| 26 | "base/udp_packet.h", |
| 27 | ] |
Ryan Keane | 1d9c0c4 | 2019-07-29 15:22:19 -0700 | [diff] [blame] | 28 | |
Yuri Wiitala | b2d1323 | 2019-02-04 18:07:28 -0800 | [diff] [blame] | 29 | sources = [ |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 30 | "base/error.cc", |
Yuri Wiitala | 22f643c | 2019-11-25 14:54:17 -0800 | [diff] [blame] | 31 | "base/interface_info.cc", |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 32 | "base/ip_address.cc", |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 33 | "base/location.cc", |
Jordan Bayles | 1c785bd | 2019-08-15 10:32:33 -0700 | [diff] [blame] | 34 | "base/tls_credentials.cc", |
Yuri Wiitala | 8e6db3b | 2019-11-20 11:20:54 -0800 | [diff] [blame] | 35 | "base/trace_logging_activation.cc", |
Jordan Bayles | 20f3df6 | 2022-11-10 15:31:38 -0800 | [diff] [blame] | 36 | "base/trace_logging_types.cc", |
Yuri Wiitala | f162a61 | 2019-11-22 22:46:04 -0800 | [diff] [blame] | 37 | "base/trivial_clock_traits.cc", |
Yuri Wiitala | 977b6ef | 2019-11-07 17:08:25 -0800 | [diff] [blame] | 38 | "base/udp_packet.cc", |
Yuri Wiitala | b2d1323 | 2019-02-04 18:07:28 -0800 | [diff] [blame] | 39 | ] |
Jordan Bayles | 9eb0974 | 2019-01-15 14:04:52 -0800 | [diff] [blame] | 40 | |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 41 | public_configs = [ "../build:openscreen_include_dirs" ] |
| 42 | } |
| 43 | |
Ryan Keane | 37e21e8 | 2021-04-30 14:48:07 -0700 | [diff] [blame] | 44 | # Public API source files. May depend on nothing except :base. |
| 45 | source_set("logging") { |
| 46 | defines = [] |
mark a. foltz | 6e60fdc | 2022-10-27 17:05:39 -0700 | [diff] [blame] | 47 | visibility += [ "../util/*" ] |
Ryan Keane | 37e21e8 | 2021-04-30 14:48:07 -0700 | [diff] [blame] | 48 | |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 49 | public = [ "api/logging.h" ] |
Ryan Keane | 37e21e8 | 2021-04-30 14:48:07 -0700 | [diff] [blame] | 50 | |
| 51 | public_deps = [ ":base" ] |
| 52 | } |
| 53 | |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 54 | # Public API source files. These may depend on nothing except :base. |
| 55 | source_set("api") { |
| 56 | defines = [] |
mark a. foltz | 6e60fdc | 2022-10-27 17:05:39 -0700 | [diff] [blame] | 57 | visibility += [ "*" ] |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 58 | public = [ |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 59 | "api/export.h", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 60 | "api/network_interface.h", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 61 | "api/scoped_wake_lock.h", |
Ryan Keane | c241788 | 2020-05-08 09:41:21 -0700 | [diff] [blame] | 62 | "api/serial_delete_ptr.h", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 63 | "api/task_runner.h", |
| 64 | "api/time.h", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 65 | "api/tls_connection.h", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 66 | "api/tls_connection_factory.h", |
Jordan Bayles | 20f3df6 | 2022-11-10 15:31:38 -0800 | [diff] [blame] | 67 | "api/trace_event.h", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 68 | "api/trace_logging_platform.h", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 69 | "api/udp_socket.h", |
| 70 | ] |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 71 | sources = [ |
| 72 | "api/scoped_wake_lock.cc", |
| 73 | "api/tls_connection.cc", |
| 74 | "api/tls_connection_factory.cc", |
Jordan Bayles | 20f3df6 | 2022-11-10 15:31:38 -0800 | [diff] [blame] | 75 | "api/trace_event.cc", |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 76 | "api/trace_logging_platform.cc", |
| 77 | "api/udp_socket.cc", |
| 78 | ] |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 79 | |
Ryan Keane | 37e21e8 | 2021-04-30 14:48:07 -0700 | [diff] [blame] | 80 | public_deps = [ |
| 81 | ":base", |
| 82 | ":logging", |
| 83 | ] |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | # The following target is only activated in standalone builds (see :platform). |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 87 | if (!build_with_chromium) { |
| 88 | source_set("standalone_impl") { |
| 89 | defines = [] |
mark a. foltz | 6e60fdc | 2022-10-27 17:05:39 -0700 | [diff] [blame] | 90 | visibility += [ "../*" ] |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 91 | public = [ |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 92 | "impl/logging.h", |
Ryan Keane | b4d61bb | 2020-01-29 13:07:39 -0800 | [diff] [blame] | 93 | "impl/network_interface.h", |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 94 | "impl/task_runner.h", |
| 95 | "impl/text_trace_logging_platform.h", |
| 96 | ] |
| 97 | sources = [ |
| 98 | "impl/network_interface.cc", |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 99 | "impl/socket_handle.h", |
| 100 | "impl/socket_handle_waiter.cc", |
| 101 | "impl/socket_handle_waiter.h", |
Jordan Bayles | 8f0e043 | 2021-02-01 12:07:16 -0800 | [diff] [blame] | 102 | "impl/socket_state.h", |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 103 | "impl/stream_socket.h", |
| 104 | "impl/task_runner.cc", |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 105 | "impl/text_trace_logging_platform.cc", |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 106 | "impl/time.cc", |
| 107 | "impl/tls_write_buffer.cc", |
| 108 | "impl/tls_write_buffer.h", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 109 | ] |
| 110 | |
Jordan Bayles | 56af85f | 2020-04-27 15:08:55 -0700 | [diff] [blame] | 111 | public_configs = [ "//util:trace_logging_config" ] |
| 112 | |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 113 | if (is_linux) { |
Jordan Bayles | c35af7d | 2020-03-24 08:15:00 -0700 | [diff] [blame] | 114 | sources += [ |
| 115 | "impl/network_interface_linux.cc", |
| 116 | "impl/scoped_wake_lock_linux.cc", |
| 117 | "impl/scoped_wake_lock_linux.h", |
| 118 | ] |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 119 | } else if (is_mac) { |
| 120 | defines += [ |
| 121 | # Required, to use the new IPv6 Sockets options introduced by RFC 3542. |
| 122 | "__APPLE_USE_RFC_3542", |
| 123 | ] |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 124 | |
Jordan Bayles | 842767b | 2020-11-23 14:50:17 -0800 | [diff] [blame] | 125 | frameworks = [ |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 126 | "CoreFoundation.framework", |
| 127 | "IOKit.framework", |
| 128 | ] |
| 129 | |
| 130 | sources += [ |
| 131 | "impl/network_interface_mac.cc", |
| 132 | "impl/scoped_wake_lock_mac.cc", |
| 133 | "impl/scoped_wake_lock_mac.h", |
| 134 | ] |
| 135 | } |
| 136 | |
| 137 | if (is_posix) { |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 138 | public += [ "impl/platform_client_posix.h" ] |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 139 | sources += [ |
| 140 | "impl/logging_posix.cc", |
mark a. foltz | d6a5a22 | 2020-07-28 17:28:06 -0700 | [diff] [blame] | 141 | "impl/logging_test.h", |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 142 | "impl/platform_client_posix.cc", |
Jordan Bayles | 150295b | 2019-12-18 14:54:58 -0800 | [diff] [blame] | 143 | "impl/scoped_pipe.h", |
| 144 | "impl/socket_address_posix.cc", |
| 145 | "impl/socket_address_posix.h", |
| 146 | "impl/socket_handle_posix.cc", |
| 147 | "impl/socket_handle_posix.h", |
| 148 | "impl/socket_handle_waiter_posix.cc", |
| 149 | "impl/socket_handle_waiter_posix.h", |
| 150 | "impl/stream_socket_posix.cc", |
| 151 | "impl/stream_socket_posix.h", |
| 152 | "impl/timeval_posix.cc", |
| 153 | "impl/timeval_posix.h", |
| 154 | "impl/tls_connection_factory_posix.cc", |
| 155 | "impl/tls_connection_factory_posix.h", |
| 156 | "impl/tls_connection_posix.cc", |
| 157 | "impl/tls_connection_posix.h", |
| 158 | "impl/tls_data_router_posix.cc", |
| 159 | "impl/tls_data_router_posix.h", |
| 160 | "impl/udp_socket_posix.cc", |
| 161 | "impl/udp_socket_posix.h", |
| 162 | "impl/udp_socket_reader_posix.cc", |
| 163 | "impl/udp_socket_reader_posix.h", |
| 164 | ] |
| 165 | } |
| 166 | |
| 167 | deps = [ |
| 168 | ":api", |
| 169 | "../third_party/abseil", |
| 170 | "../third_party/boringssl", |
| 171 | "../util", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 172 | ] |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 173 | friend = [ ":unittests" ] |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 174 | } |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 175 | } |
Jordan Bayles | 9ade415 | 2019-05-08 17:03:24 -0700 | [diff] [blame] | 176 | |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 177 | # The main target, which either assumes an embedder will link-in the platform |
| 178 | # API implementation elsewhere, or links-in the :standalone_impl in the build. |
| 179 | source_set("platform") { |
mark a. foltz | 6e60fdc | 2022-10-27 17:05:39 -0700 | [diff] [blame] | 180 | visibility += [ "*" ] |
Ryan Keane | c241788 | 2020-05-08 09:41:21 -0700 | [diff] [blame] | 181 | public_deps = [ ":api" ] |
Jordan Bayles | a80724b | 2019-05-02 17:17:26 -0700 | [diff] [blame] | 182 | if (!build_with_chromium) { |
Ryan Keane | c241788 | 2020-05-08 09:41:21 -0700 | [diff] [blame] | 183 | deps = [ ":standalone_impl" ] |
Yuri Wiitala | b2d1323 | 2019-02-04 18:07:28 -0800 | [diff] [blame] | 184 | } |
btolsch | 9d6900c | 2018-05-30 18:22:53 -0700 | [diff] [blame] | 185 | } |
Yuri Wiitala | eb8eee7 | 2019-03-26 15:52:43 -0700 | [diff] [blame] | 186 | |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 187 | # Test helpers, referenced in other Open Screen BUILD.gn test targets. |
Jordan Bayles | aa021ce | 2019-05-29 13:57:44 -0700 | [diff] [blame] | 188 | source_set("test") { |
| 189 | testonly = true |
mark a. foltz | 6e60fdc | 2022-10-27 17:05:39 -0700 | [diff] [blame] | 190 | visibility += [ "../*" ] |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 191 | public = [ |
mark a. foltz | ccc269d | 2023-01-31 10:28:21 -0800 | [diff] [blame] | 192 | "test/byte_view_test_util.h", |
Jordan Bayles | aa021ce | 2019-05-29 13:57:44 -0700 | [diff] [blame] | 193 | "test/fake_clock.h", |
Yuri Wiitala | ec35361 | 2019-06-18 17:32:39 -0700 | [diff] [blame] | 194 | "test/fake_task_runner.h", |
Ryan Keane | 7d4b5fc | 2019-08-30 12:38:39 -0700 | [diff] [blame] | 195 | "test/fake_udp_socket.h", |
btolsch | 07bf81f | 2019-11-26 13:52:05 -0800 | [diff] [blame] | 196 | "test/mock_tls_connection.h", |
Ryan Keane | 1c69397 | 2020-03-11 15:26:28 -0700 | [diff] [blame] | 197 | "test/mock_udp_socket.h", |
btolsch | 31665eb | 2020-04-03 01:49:40 -0700 | [diff] [blame] | 198 | "test/paths.h", |
Ryan Keane | 38e7d51 | 2019-08-02 15:37:49 -0700 | [diff] [blame] | 199 | "test/trace_logging_helpers.h", |
Jordan Bayles | aa021ce | 2019-05-29 13:57:44 -0700 | [diff] [blame] | 200 | ] |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 201 | sources = [ |
mark a. foltz | ccc269d | 2023-01-31 10:28:21 -0800 | [diff] [blame] | 202 | "test/byte_view_test_util.cc", |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 203 | "test/fake_clock.cc", |
| 204 | "test/fake_task_runner.cc", |
| 205 | "test/fake_udp_socket.cc", |
| 206 | "test/paths_internal.h", |
| 207 | ] |
Jordan Bayles | aa021ce | 2019-05-29 13:57:44 -0700 | [diff] [blame] | 208 | |
btolsch | 31665eb | 2020-04-03 01:49:40 -0700 | [diff] [blame] | 209 | if (is_posix) { |
| 210 | sources += [ "test/paths_posix.cc" ] |
| 211 | } |
| 212 | if (is_linux) { |
| 213 | sources += [ "test/paths_internal_linux.cc" ] |
btolsch | b586d7a | 2020-04-30 15:53:15 -0700 | [diff] [blame] | 214 | } else if (is_mac) { |
btolsch | 31665eb | 2020-04-03 01:49:40 -0700 | [diff] [blame] | 215 | sources += [ "test/paths_internal_mac.cc" ] |
btolsch | b586d7a | 2020-04-30 15:53:15 -0700 | [diff] [blame] | 216 | } else if (build_with_chromium) { |
| 217 | # NOTE: This is used to resolve a linking issue when compiling in Chromium |
| 218 | # for other platforms, but nothing in here is called. |
| 219 | sources += [ "test/paths_internal_other.cc" ] |
btolsch | 31665eb | 2020-04-03 01:49:40 -0700 | [diff] [blame] | 220 | } |
| 221 | |
btolsch | 9d9da7b | 2021-02-09 10:39:30 -0800 | [diff] [blame] | 222 | public_deps = [ |
| 223 | ":api", |
| 224 | ":base", |
| 225 | ] |
| 226 | |
Jordan Bayles | aa021ce | 2019-05-29 13:57:44 -0700 | [diff] [blame] | 227 | deps = [ |
| 228 | ":platform", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 229 | "../third_party/abseil", |
Ryan Keane | deb48b3 | 2019-06-28 16:24:40 -0700 | [diff] [blame] | 230 | "../third_party/googletest:gmock", |
Yuri Wiitala | ca24ee5 | 2019-12-05 16:51:42 -0800 | [diff] [blame] | 231 | "../util", |
Jordan Bayles | aa021ce | 2019-05-29 13:57:44 -0700 | [diff] [blame] | 232 | ] |
| 233 | } |
| 234 | |
mark a. foltz | 3fe4617 | 2019-09-18 05:50:30 -0700 | [diff] [blame] | 235 | source_set("unittests") { |
Yuri Wiitala | eb8eee7 | 2019-03-26 15:52:43 -0700 | [diff] [blame] | 236 | testonly = true |
mark a. foltz | 6e60fdc | 2022-10-27 17:05:39 -0700 | [diff] [blame] | 237 | visibility += [ "..:openscreen_unittests_all" ] |
mark a. foltz | 5528ecf | 2022-08-24 10:26:08 -0700 | [diff] [blame] | 238 | public = [] |
Yuri Wiitala | eb8eee7 | 2019-03-26 15:52:43 -0700 | [diff] [blame] | 239 | sources = [ |
Ryan Keane | c241788 | 2020-05-08 09:41:21 -0700 | [diff] [blame] | 240 | "api/serial_delete_ptr_unittest.cc", |
Yuri Wiitala | eb8eee7 | 2019-03-26 15:52:43 -0700 | [diff] [blame] | 241 | "api/time_unittest.cc", |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 242 | "base/error_unittest.cc", |
| 243 | "base/ip_address_unittest.cc", |
| 244 | "base/location_unittest.cc", |
mark a. foltz | cf5b8ca | 2023-02-07 14:44:54 -0800 | [diff] [blame^] | 245 | "base/span_unittest.cc", |
Ryan Keane | 3e5d23e | 2020-06-10 09:56:11 -0700 | [diff] [blame] | 246 | "base/udp_packet_unittest.cc", |
Yuri Wiitala | eb8eee7 | 2019-03-26 15:52:43 -0700 | [diff] [blame] | 247 | ] |
| 248 | |
Jordan Bayles | f3b911c | 2021-06-22 11:28:50 -0700 | [diff] [blame] | 249 | deps = [ |
| 250 | ":platform", |
| 251 | ":test", |
| 252 | "../third_party/abseil", |
| 253 | "../third_party/boringssl", |
| 254 | "../third_party/googletest:gmock", |
| 255 | "../third_party/googletest:gtest", |
| 256 | "../util", |
| 257 | ] |
| 258 | |
Jordan Bayles | c180499 | 2022-08-30 17:10:11 +0000 | [diff] [blame] | 259 | # The socket integration tests assume that you can Bind with UDP sockets, |
| 260 | # which is simply not true when we are built inside of Chromium. |
Jordan Bayles | 9ef8412 | 2020-04-27 12:08:38 -0700 | [diff] [blame] | 261 | if (!build_with_chromium) { |
Jordan Bayles | c180499 | 2022-08-30 17:10:11 +0000 | [diff] [blame] | 262 | sources += [ "api/socket_integration_unittest.cc" ] |
| 263 | |
Jordan Bayles | f3b911c | 2021-06-22 11:28:50 -0700 | [diff] [blame] | 264 | deps += [ ":standalone_impl" ] |
Jordan Bayles | 9ef8412 | 2020-04-27 12:08:38 -0700 | [diff] [blame] | 265 | } |
| 266 | |
Jordan Bayles | cc47180 | 2019-07-09 14:25:02 -0700 | [diff] [blame] | 267 | # The unit tests in impl/ assume the standalone implementation is being used. |
Yuri Wiitala | eb8eee7 | 2019-03-26 15:52:43 -0700 | [diff] [blame] | 268 | # Exclude them if an embedder is providing the implementation. |
| 269 | if (!build_with_chromium) { |
btolsch | c92ba2f | 2019-04-10 11:46:01 -0700 | [diff] [blame] | 270 | sources += [ |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 271 | "impl/task_runner_unittest.cc", |
Jordan Bayles | cc47180 | 2019-07-09 14:25:02 -0700 | [diff] [blame] | 272 | "impl/time_unittest.cc", |
btolsch | c92ba2f | 2019-04-10 11:46:01 -0700 | [diff] [blame] | 273 | ] |
Jordan Bayles | 063c3b5 | 2019-08-13 18:14:55 -0700 | [diff] [blame] | 274 | |
Ryan Keane | 32c88d0 | 2019-07-02 18:46:14 -0700 | [diff] [blame] | 275 | if (is_posix) { |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 276 | sources += [ |
mark a. foltz | d6a5a22 | 2020-07-28 17:28:06 -0700 | [diff] [blame] | 277 | "impl/logging_unittest.cc", |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 278 | "impl/scoped_pipe_unittest.cc", |
Jordan Bayles | 62b7c6a | 2019-08-15 10:32:33 -0700 | [diff] [blame] | 279 | "impl/socket_address_posix_unittest.cc", |
Ryan Keane | 2fdf966 | 2019-09-25 13:29:32 -0700 | [diff] [blame] | 280 | "impl/socket_handle_waiter_posix_unittest.cc", |
mark a. foltz | cbdea4b | 2019-11-18 16:49:14 -0800 | [diff] [blame] | 281 | "impl/timeval_posix_unittest.cc", |
Ryan Keane | d838a25 | 2019-09-25 12:48:15 -0700 | [diff] [blame] | 282 | "impl/tls_data_router_posix_unittest.cc", |
Ryan Keane | f277612 | 2019-10-11 09:07:33 -0700 | [diff] [blame] | 283 | "impl/tls_write_buffer_unittest.cc", |
Ryan Keane | e93f8c7 | 2019-09-25 12:35:00 -0700 | [diff] [blame] | 284 | "impl/udp_socket_reader_posix_unittest.cc", |
Jordan Bayles | a26582d | 2019-07-10 14:44:58 -0700 | [diff] [blame] | 285 | ] |
Ryan Keane | 32c88d0 | 2019-07-02 18:46:14 -0700 | [diff] [blame] | 286 | } |
Yuri Wiitala | eb8eee7 | 2019-03-26 15:52:43 -0700 | [diff] [blame] | 287 | } |
Yuri Wiitala | eb8eee7 | 2019-03-26 15:52:43 -0700 | [diff] [blame] | 288 | } |