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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 ] | 273 ] |
274 if (!is_mac && !is_ios) { | 274 if (!is_mac && !is_ios) { |
275 # Dart tree uses *_macos.* instead of *_mac.* | 275 # Dart tree uses *_macos.* instead of *_mac.* |
276 custom_sources_filter += [ | 276 custom_sources_filter += [ |
277 "*_macos.h", | 277 "*_macos.h", |
278 "*_macos.cc", | 278 "*_macos.cc", |
279 ] | 279 ] |
280 } | 280 } |
281 set_sources_assignment_filter(custom_sources_filter) | 281 set_sources_assignment_filter(custom_sources_filter) |
282 | 282 |
283 defines = [ "DART_IO_SECURE_SOCKET_DISABLED" ] | 283 if (is_mac || is_ios) { |
| 284 libs = [ |
| 285 "Security.framework", |
| 286 ] |
| 287 } else { |
| 288 defines = [ "DART_IO_SECURE_SOCKET_DISABLED" ] |
| 289 } |
284 | 290 |
285 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources | 291 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources |
286 sources += [ | 292 sources += [ |
287 "builtin_nolib.cc", | 293 "builtin_nolib.cc", |
288 "builtin_natives.cc", | 294 "builtin_natives.cc", |
289 "io_natives.cc", | 295 "io_natives.cc", |
290 "io_natives.h", | 296 "io_natives.h", |
291 "embedded_dart_io.cc", | 297 "embedded_dart_io.cc", |
292 "embedded_dart_io.h", | 298 "embedded_dart_io.h", |
293 "log_android.cc", | 299 "log_android.cc", |
294 "log_linux.cc", | 300 "log_linux.cc", |
295 "log_macos.cc", | 301 "log_macos.cc", |
296 "log_win.cc", | 302 "log_win.cc", |
297 "log.h", | 303 "log.h", |
298 ] | 304 ] |
299 | 305 |
300 include_dirs = [ | 306 include_dirs = [ |
301 "..", | 307 "..", |
302 "//third_party" | 308 "//third_party" |
303 ] | 309 ] |
304 } | 310 } |
OLD | NEW |