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 | |
6 declare_args() { | |
7 dart_io_support = false | |
8 | |
9 # TODO(zra, jamesr): Remove this check once we start building boringssl for | |
10 # the fuchsia port. | |
11 if (!defined(is_fuchsia) || !is_fuchsia) { | |
12 dart_boringssl_path = "../../third_party/boringssl" | |
13 } | |
14 } | |
15 | |
16 | |
17 resources_sources_gypi = | 5 resources_sources_gypi = |
18 exec_script("../../tools/gypi_to_gn.py", | 6 exec_script("../../tools/gypi_to_gn.py", |
19 [rebase_path("vmservice/vmservice_sources.gypi")], | 7 [rebase_path("vmservice/vmservice_sources.gypi")], |
20 "scope", | 8 "scope", |
21 ["vmservice/vmservice_sources.gypi"]) | 9 ["vmservice/vmservice_sources.gypi"]) |
22 | 10 |
23 # Generate a resources.cc file for the service isolate without Observatory. | 11 # Generate a resources.cc file for the service isolate without Observatory. |
24 action("gen_resources_cc") { | 12 action("gen_resources_cc") { |
25 visibility = [ ":*" ] # Only targets in this file can see this. | 13 visibility = [ ":*" ] # Only targets in this file can see this. |
26 script = "../tools/create_resources.py" | 14 script = "../tools/create_resources.py" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 if (is_mac || is_ios) { | 327 if (is_mac || is_ios) { |
340 libs = [ | 328 libs = [ |
341 "Security.framework", | 329 "Security.framework", |
342 ] | 330 ] |
343 } else if (defined(is_fuchsia) && is_fuchsia) { | 331 } else if (defined(is_fuchsia) && is_fuchsia) { |
344 defines = [ | 332 defines = [ |
345 "DART_IO_SECURE_SOCKET_DISABLED" | 333 "DART_IO_SECURE_SOCKET_DISABLED" |
346 ] | 334 ] |
347 } else { | 335 } else { |
348 deps = [ | 336 deps = [ |
349 rebase_path(dart_boringssl_path, "."), | 337 "//third_party/boringssl", |
350 ] | 338 ] |
351 } | 339 } |
352 | 340 |
353 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources | 341 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources |
354 sources += [ | 342 sources += [ |
355 "builtin_nolib.cc", | 343 "builtin_nolib.cc", |
356 "builtin_natives.cc", | 344 "builtin_natives.cc", |
357 "io_natives.cc", | 345 "io_natives.cc", |
358 "io_natives.h", | 346 "io_natives.h", |
359 "embedded_dart_io.cc", | 347 "embedded_dart_io.cc", |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 sources = [ | 554 sources = [ |
567 "run_vm_tests_fuchsia.cc" | 555 "run_vm_tests_fuchsia.cc" |
568 ] | 556 ] |
569 libs = [ | 557 libs = [ |
570 "launchpad", | 558 "launchpad", |
571 "magenta", | 559 "magenta", |
572 "runtime", | 560 "runtime", |
573 ] | 561 ] |
574 } | 562 } |
575 } # defined(is_fuchsia) && is_fuchsia | 563 } # defined(is_fuchsia) && is_fuchsia |
OLD | NEW |