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 # TODO(zra, jamesr): Remove this check once we start building boringssl for | 9 dart_no_fallback_root_certificates = false |
10 # the fuchsia port. | |
11 if (!defined(is_fuchsia) || !is_fuchsia) { | |
12 dart_boringssl_path = "../../third_party/boringssl" | |
13 } | |
14 } | 10 } |
15 | 11 |
16 | 12 |
17 resources_sources_gypi = | 13 resources_sources_gypi = |
18 exec_script("../../tools/gypi_to_gn.py", | 14 exec_script("../../tools/gypi_to_gn.py", |
19 [rebase_path("vmservice/vmservice_sources.gypi")], | 15 [rebase_path("vmservice/vmservice_sources.gypi")], |
20 "scope", | 16 "scope", |
21 ["vmservice/vmservice_sources.gypi"]) | 17 ["vmservice/vmservice_sources.gypi"]) |
22 | 18 |
23 # Generate a resources.cc file for the service isolate without Observatory. | 19 # Generate a resources.cc file for the service isolate without Observatory. |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
331 # Dart tree uses *_macos.* instead of *_mac.* | 327 # Dart tree uses *_macos.* instead of *_mac.* |
332 custom_sources_filter += [ | 328 custom_sources_filter += [ |
333 "*_macos.h", | 329 "*_macos.h", |
334 "*_macos.cc", | 330 "*_macos.cc", |
335 ] | 331 ] |
336 } | 332 } |
337 set_sources_assignment_filter(custom_sources_filter) | 333 set_sources_assignment_filter(custom_sources_filter) |
338 | 334 |
339 if (is_mac || is_ios) { | 335 if (is_mac || is_ios) { |
340 libs = [ | 336 libs = [ |
337 "CoreFoundation.framework", | |
338 "CoreServices.framework", | |
341 "Security.framework", | 339 "Security.framework", |
342 ] | 340 ] |
343 } else if (defined(is_fuchsia) && is_fuchsia) { | 341 } else if (defined(is_fuchsia) && is_fuchsia) { |
344 defines = [ | 342 defines = [ |
345 "DART_IO_SECURE_SOCKET_DISABLED" | 343 "DART_IO_SECURE_SOCKET_DISABLED" |
346 ] | 344 ] |
347 } else { | 345 } else { |
348 deps = [ | 346 deps = [ |
349 rebase_path(dart_boringssl_path, "."), | 347 rebase_path("//third_party/boringssl", "."), |
zra
2016/09/21 17:55:31
rebase_path no longer needed
P.Y.L.
2016/09/21 19:52:36
Done.
| |
350 ] | 348 ] |
349 if (is_linux && dart_no_fallback_root_certificates) { | |
350 defines = [ | |
351 "DART_IO_ROOT_CERTS_DISABLED" | |
352 ] | |
353 } | |
351 } | 354 } |
352 | 355 |
353 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources | 356 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources |
354 sources += [ | 357 sources += [ |
355 "builtin_nolib.cc", | 358 "builtin_nolib.cc", |
356 "builtin_natives.cc", | 359 "builtin_natives.cc", |
357 "io_natives.cc", | 360 "io_natives.cc", |
358 "io_natives.h", | 361 "io_natives.h", |
359 "embedded_dart_io.cc", | 362 "embedded_dart_io.cc", |
360 "embedded_dart_io.h", | 363 "embedded_dart_io.h", |
361 "log_android.cc", | 364 "log_android.cc", |
362 "log_linux.cc", | 365 "log_linux.cc", |
363 "log_macos.cc", | 366 "log_macos.cc", |
364 "log_win.cc", | 367 "log_win.cc", |
365 "log.h", | 368 "log.h", |
366 ] | 369 ] |
367 if (is_linux) { | 370 |
368 sources += [ "../../third_party/root_certificates/root_certificates.cc"] | 371 if (is_linux && !dart_no_fallback_root_certificates) { |
zra
2016/09/21 17:55:31
maybe flip the sense to dart_use_fallback... to av
P.Y.L.
2016/09/21 19:52:36
Done.
| |
372 sources += [ "//third_party/root_certificates/root_certificates.cc"] | |
369 } | 373 } |
370 | 374 |
371 include_dirs = [ | 375 include_dirs = [ |
372 "..", | 376 "..", |
373 "//third_party" | 377 "//third_party" |
374 ] | 378 ] |
375 } | 379 } |
376 | 380 |
377 | 381 |
378 action("generate_snapshot_bin") { | 382 action("generate_snapshot_bin") { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
447 deps = [ | 451 deps = [ |
448 ":generate_snapshot_file", | 452 ":generate_snapshot_file", |
449 ] | 453 ] |
450 } | 454 } |
451 | 455 |
452 if (defined(is_fuchsia) && is_fuchsia) { | 456 if (defined(is_fuchsia) && is_fuchsia) { |
453 copy("hello_fuchsia") { | 457 copy("hello_fuchsia") { |
454 sources = [ "../tests/vm/dart/hello_fuchsia_test.dart" ] | 458 sources = [ "../tests/vm/dart/hello_fuchsia_test.dart" ] |
455 outputs = [ "$root_out_dir/hello_fuchsia.dart" ] | 459 outputs = [ "$root_out_dir/hello_fuchsia.dart" ] |
456 } | 460 } |
461 } | |
457 | 462 |
458 executable("dart_no_observatory") { | 463 executable("dart_no_observatory") { |
459 configs += ["..:dart_config", | 464 configs += ["..:dart_config", |
460 "..:dart_product_config", | 465 "..:dart_product_config", |
461 "..:dart_precompiled_runtime_config",] | 466 "..:dart_precompiled_runtime_config",] |
462 deps = [ | 467 deps = [ |
468 ":gen_resources_cc", | |
469 ":embedded_dart_io", | |
470 ":libdart_builtin", | |
471 "../vm:libdart_platform", | |
472 "..:libdart", | |
473 ":dart_snapshot_cc", | |
474 "../../pkg:pkg", # Pull this out to top-level for a real SDK build. | |
zra
2016/09/21 17:55:31
I think this doesn't exist anymore. Do you need to
P.Y.L.
2016/09/21 19:52:36
Aaah, the rebase had failed quite silently. Should
| |
475 "//third_party/zlib", | |
476 ] | |
477 | |
478 if (defined(is_fuchsia) && is_fuchsia) { | |
479 deps += [ | |
463 ":hello_fuchsia", | 480 ":hello_fuchsia", |
464 ":gen_resources_cc", | |
465 ":embedded_dart_io", | |
466 ":libdart_builtin", | |
467 "../vm:libdart_platform", | |
468 "..:libdart", | |
469 ":dart_snapshot_cc", | |
470 "../../pkg:pkg", # Pull this out to top-level for a real SDK build. | |
471 "//third_party/zlib", | |
472 ] | |
473 | |
474 defines = [ | |
475 "NO_OBSERVATORY", | |
476 ] | |
477 | |
478 sources = [ | |
479 "main.cc", | |
480 "observatory_assets_empty.cc", | |
481 "vmservice_impl.cc", | |
482 "vmservice_impl.h", | |
483 "$target_gen_dir/resources_gen.cc", | |
484 ] | |
485 | |
486 include_dirs = [ | |
487 "..", | |
488 "//third_party", | |
489 ] | 481 ] |
490 } | 482 } |
491 | 483 |
484 defines = [ | |
485 "NO_OBSERVATORY", | |
486 ] | |
487 | |
488 sources = [ | |
489 "main.cc", | |
490 "observatory_assets_empty.cc", | |
491 "vmservice_impl.cc", | |
492 "vmservice_impl.h", | |
493 "$target_gen_dir/resources_gen.cc", | |
494 ] | |
495 | |
496 include_dirs = [ | |
497 "..", | |
498 "//third_party", | |
499 ] | |
500 } | |
501 | |
502 | |
503 if (defined(is_fuchsia) && is_fuchsia) { | |
492 action("generate_snapshot_test_dat_file") { | 504 action("generate_snapshot_test_dat_file") { |
493 snapshot_test_dat_file = "$root_gen_dir/snapshot_test.dat" | 505 snapshot_test_dat_file = "$root_gen_dir/snapshot_test.dat" |
494 snapshot_test_in_dat_file = "../vm/snapshot_test_in.dat" | 506 snapshot_test_in_dat_file = "../vm/snapshot_test_in.dat" |
495 snapshot_test_dart_file = "../vm/snapshot_test.dart" | 507 snapshot_test_dart_file = "../vm/snapshot_test.dart" |
496 inputs = [ | 508 inputs = [ |
497 "../tools/create_string_literal.py", | 509 "../tools/create_string_literal.py", |
498 snapshot_test_in_dat_file, | 510 snapshot_test_in_dat_file, |
499 snapshot_test_dart_file, | 511 snapshot_test_dart_file, |
500 ] | 512 ] |
501 | 513 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
566 sources = [ | 578 sources = [ |
567 "run_vm_tests_fuchsia.cc" | 579 "run_vm_tests_fuchsia.cc" |
568 ] | 580 ] |
569 libs = [ | 581 libs = [ |
570 "launchpad", | 582 "launchpad", |
571 "magenta", | 583 "magenta", |
572 "runtime", | 584 "runtime", |
573 ] | 585 ] |
574 } | 586 } |
575 } # defined(is_fuchsia) && is_fuchsia | 587 } # defined(is_fuchsia) && is_fuchsia |
OLD | NEW |