OLD | NEW |
1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 declare_args() { | 6 declare_args() { |
7 dart_io_support = false | 7 dart_io_support = false |
8 } | 8 } |
9 | 9 |
10 | 10 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 ] | 184 ] |
185 | 185 |
186 sources = [ | 186 sources = [ |
187 "address_sanitizer.cc", | 187 "address_sanitizer.cc", |
188 "gen_snapshot.cc", | 188 "gen_snapshot.cc", |
189 # Very limited native resolver provided. | 189 # Very limited native resolver provided. |
190 "builtin_common.cc", | 190 "builtin_common.cc", |
191 "builtin_gen_snapshot.cc", | 191 "builtin_gen_snapshot.cc", |
192 "builtin.cc", | 192 "builtin.cc", |
193 "builtin.h", | 193 "builtin.h", |
194 "platform_android.cc", | |
195 "platform_linux.cc", | |
196 "platform_macos.cc", | |
197 "platform_win.cc", | |
198 "platform.h", | |
199 "vmservice_impl.cc", | 194 "vmservice_impl.cc", |
200 "vmservice_impl.h", | 195 "vmservice_impl.h", |
201 # Include generated source files. | 196 # Include generated source files. |
202 "$target_gen_dir/builtin_gen.cc", | 197 "$target_gen_dir/builtin_gen.cc", |
203 "$target_gen_dir/io_gen.cc", | 198 "$target_gen_dir/io_gen.cc", |
204 "$target_gen_dir/io_patch_gen.cc", | 199 "$target_gen_dir/io_patch_gen.cc", |
205 "$target_gen_dir/resources_gen.cc", | 200 "$target_gen_dir/resources_gen.cc", |
206 ] | 201 ] |
207 | 202 |
208 include_dirs = [ | 203 include_dirs = [ |
(...skipping 15 matching lines...) Expand all Loading... |
224 [ rebase_path("io_impl_sources.gypi") ], | 219 [ rebase_path("io_impl_sources.gypi") ], |
225 "scope", | 220 "scope", |
226 [ "io_impl_sources.gypi" ]) | 221 [ "io_impl_sources.gypi" ]) |
227 | 222 |
228 | 223 |
229 # A source set for the implementation of 'dart:io' library | 224 # A source set for the implementation of 'dart:io' library |
230 # (without secure sockets) suitable for linking with gen_snapshot. | 225 # (without secure sockets) suitable for linking with gen_snapshot. |
231 source_set("gen_snapshot_dart_io") { | 226 source_set("gen_snapshot_dart_io") { |
232 configs += ["..:dart_config",] | 227 configs += ["..:dart_config",] |
233 | 228 |
234 # Set custom sources assignment filter. The custom filters does three things: | 229 deps = [ |
235 # 1) Filters out unnecessary files pulled in from the gypi files. | 230 "//third_party/zlib", |
236 # 2) Filters out secure socket support. | 231 ] |
237 # 3) Enables dart:io by filtering out _unsupported.cc implementations. | 232 |
238 custom_sources_filter = [ | 233 custom_sources_filter = [ |
239 "*net/nss_memio.cc", | |
240 "*net/nss_memio.h", | |
241 "*root_certificates.cc", | |
242 "*secure_socket_boringssl.cc", | |
243 "*secure_socket_boringssl.h", | |
244 "*secure_socket_macos.cc", | |
245 "*secure_socket_macos.h", | |
246 "*secure_socket.h", | |
247 "filter.cc", | |
248 "*io_service_unsupported.cc", | |
249 "platform_*.cc", | |
250 "*io_service.cc", | |
251 "*io_service.h", | |
252 "*_test.cc", | 234 "*_test.cc", |
253 "*_test.h", | 235 "*_test.h", |
254 "*dbg*", | |
255 "builtin.cc", | 236 "builtin.cc", |
256 "builtin_common.cc", | 237 "builtin_common.cc", |
257 "builtin_gen_snapshot.cc", | 238 "builtin_gen_snapshot.cc", |
258 ] | 239 ] |
259 if (!is_mac && !is_ios) { | 240 if (!is_mac && !is_ios) { |
260 # Dart tree uses *_macos.* instead of *_mac.* | 241 # Dart tree uses *_macos.* instead of *_mac.* |
261 custom_sources_filter += [ | 242 custom_sources_filter += [ |
262 "*_macos.h", | 243 "*_macos.h", |
263 "*_macos.cc", | 244 "*_macos.cc", |
264 ] | 245 ] |
265 } | 246 } |
266 set_sources_assignment_filter(custom_sources_filter) | 247 set_sources_assignment_filter(custom_sources_filter) |
267 | 248 |
268 defines = [ "DART_IO_SECURE_SOCKET_DISABLED" ] | 249 defines = [ "DART_IO_SECURE_SOCKET_DISABLED" ] |
269 | 250 |
270 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources | 251 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources |
271 sources += [ | 252 sources += [ |
272 "io_natives.cc", | 253 "io_natives.cc", |
273 "io_natives.h", | 254 "io_natives.h", |
274 "log_android.cc", | |
275 "log_linux.cc", | |
276 "log_macos.cc", | |
277 "log_win.cc", | |
278 "log.h", | |
279 ] | 255 ] |
280 | 256 |
281 include_dirs = [ | 257 include_dirs = [ |
282 "..", | 258 "..", |
283 "//third_party" | 259 "//third_party" |
284 ] | 260 ] |
285 } | 261 } |
286 | 262 |
287 # A source set for the implementation of 'dart:io' library | 263 # A source set for the implementation of 'dart:io' library |
288 # (without secure sockets). | 264 # (without secure sockets). |
289 source_set("embedded_dart_io") { | 265 source_set("embedded_dart_io") { |
290 configs += ["..:dart_config",] | 266 configs += ["..:dart_config",] |
291 | 267 |
292 # Set custom sources assignment filter. The custom filters does three things: | |
293 # 1) Filters out unnecessary files pulled in from the gypi files. | |
294 # 2) Filters out secure socket support. | |
295 # 3) Enables dart:io by filtering out _unsupported.cc implementations. | |
296 custom_sources_filter = [ | 268 custom_sources_filter = [ |
297 "*net/nss_memio.cc", | |
298 "*net/nss_memio.h", | |
299 "*root_certificates.cc", | |
300 "*secure_socket_boringssl.cc", | |
301 "*secure_socket_boringssl.h", | |
302 "*secure_socket_macos.cc", | |
303 "*secure_socket_macos.h", | |
304 "*secure_socket.h", | |
305 "*filter_unsupported.cc", | |
306 "*io_service_unsupported.cc", | |
307 "*io_service.cc", | |
308 "*io_service.h", | |
309 "*_test.cc", | 269 "*_test.cc", |
310 "*_test.h", | 270 "*_test.h", |
311 "*dbg*", | |
312 "builtin.cc", | 271 "builtin.cc", |
313 "builtin_gen_snapshot.cc", | 272 "builtin_gen_snapshot.cc", |
314 ] | 273 ] |
315 if (!is_mac && !is_ios) { | 274 if (!is_mac && !is_ios) { |
316 # Dart tree uses *_macos.* instead of *_mac.* | 275 # Dart tree uses *_macos.* instead of *_mac.* |
317 custom_sources_filter += [ | 276 custom_sources_filter += [ |
318 "*_macos.h", | 277 "*_macos.h", |
319 "*_macos.cc", | 278 "*_macos.cc", |
320 ] | 279 ] |
321 } | 280 } |
(...skipping 14 matching lines...) Expand all Loading... |
336 "log_macos.cc", | 295 "log_macos.cc", |
337 "log_win.cc", | 296 "log_win.cc", |
338 "log.h", | 297 "log.h", |
339 ] | 298 ] |
340 | 299 |
341 include_dirs = [ | 300 include_dirs = [ |
342 "..", | 301 "..", |
343 "//third_party" | 302 "//third_party" |
344 ] | 303 ] |
345 } | 304 } |
OLD | NEW |