Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: runtime/bin/BUILD.gn

Issue 2552203006: Fuchsia: Reland enable observatory. Pass rpath for host builds. (Closed)
Patch Set: Add configs instead of copying flags Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/observatory/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("gypi_contents.gni") 5 import("gypi_contents.gni")
6 6
7 declare_args() { 7 declare_args() {
8 # Whether to fall back to built-in root certificates when they cannot be 8 # Whether to fall back to built-in root certificates when they cannot be
9 # verified at the operating system level. 9 # verified at the operating system level.
10 dart_use_fallback_root_certificates = false 10 dart_use_fallback_root_certificates = false
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 extra_sources = [] 557 extra_sources = []
558 if (defined(invoker.extra_sources)) { 558 if (defined(invoker.extra_sources)) {
559 extra_sources += invoker.extra_sources 559 extra_sources += invoker.extra_sources
560 } 560 }
561 executable(target_name) { 561 executable(target_name) {
562 configs += [ 562 configs += [
563 "..:dart_config", 563 "..:dart_config",
564 "..:dart_maybe_product_config", 564 "..:dart_maybe_product_config",
565 ] + extra_configs 565 ] + extra_configs
566 566
567 if (defined(is_fuchsia_host) && is_fuchsia_host) {
568 # We already have these in the standalone build, but Fuchsia doesn't
569 # have them. They are needed for running Fuchsia binaries built for the
570 # host.
571 if (is_linux) {
572 configs += [ "../../build/config/gcc:executable_ldconfig" ]
573 } else if (is_mac) {
574 configs += [ "../../build/config/mac:mac_dynamic_flags" ]
575 }
576 }
577
567 deps = [ 578 deps = [
568 ":gen_resources_cc", 579 ":gen_resources_cc",
569 ":standalone_dart_io", 580 ":standalone_dart_io",
570 ":libdart_builtin", 581 ":libdart_builtin",
571 "$dart_zlib_path", 582 "$dart_zlib_path",
572 ] + extra_deps 583 ] + extra_deps
573 584
574 if (dart_use_tcmalloc) { 585 if (dart_use_tcmalloc) {
575 deps += [ "//third_party/tcmalloc" ] 586 deps += [ "//third_party/tcmalloc" ]
576 } 587 }
(...skipping 23 matching lines...) Expand all
600 "iphlpapi.lib", 611 "iphlpapi.lib",
601 "psapi.lib", 612 "psapi.lib",
602 "ws2_32.lib", 613 "ws2_32.lib",
603 "Rpcrt4.lib", 614 "Rpcrt4.lib",
604 "winmm.lib", 615 "winmm.lib",
605 ] 616 ]
606 } 617 }
607 } 618 }
608 } 619 }
609 620
610 if (!defined(is_fuchsia) || !is_fuchsia) { 621 dart_executable("dart") {
611 dart_executable("dart") { 622 extra_deps = [
612 extra_deps = [ 623 "..:libdart",
613 "..:libdart", 624 ":dart_snapshot_cc",
614 ":dart_snapshot_cc", 625 "../observatory:standalone_observatory_archive",
615 "../observatory:standalone_observatory_archive", 626 ]
616 ] 627 extra_sources = [ "builtin_nolib.cc" ]
617 extra_sources = [ "builtin_nolib.cc" ] 628 }
618 }
619 629
620 dart_executable("dart_noopt") { 630 dart_executable("dart_noopt") {
621 extra_configs = [ "..:dart_precompiler_config" ] 631 extra_configs = [ "..:dart_precompiler_config" ]
622 extra_deps = [ 632 extra_deps = [
623 "..:libdart_noopt", 633 "..:libdart_noopt",
624 ":dart_snapshot_cc", 634 ":dart_snapshot_cc",
625 "../observatory:standalone_observatory_archive", 635 "../observatory:standalone_observatory_archive",
626 ] 636 ]
627 extra_sources = [ "builtin_nolib.cc" ] 637 extra_sources = [ "builtin_nolib.cc" ]
628 } 638 }
629 639
630 dart_executable("dart_precompiled_runtime") { 640 dart_executable("dart_precompiled_runtime") {
631 extra_configs = [ "..:dart_precompiled_runtime_config" ] 641 extra_configs = [ "..:dart_precompiled_runtime_config" ]
632 extra_deps = [ 642 extra_deps = [
633 "..:libdart_precompiled_runtime", 643 "..:libdart_precompiled_runtime",
634 "../observatory:standalone_observatory_archive", 644 "../observatory:standalone_observatory_archive",
635 ] 645 ]
636 extra_sources = [ 646 extra_sources = [
637 "builtin_nolib.cc", 647 "builtin_nolib.cc",
638 "snapshot_empty.cc", 648 "snapshot_empty.cc",
639 ] 649 ]
640 }
641 } 650 }
642 651
643 dart_executable("dart_bootstrap") { 652 dart_executable("dart_bootstrap") {
644 extra_configs = [ 653 extra_configs = [
645 "..:dart_precompiler_config", 654 "..:dart_precompiler_config",
646 "..:dart_no_snapshot_config", 655 "..:dart_no_snapshot_config",
647 ] 656 ]
648 extra_deps = [ 657 extra_deps = [
649 ":generate_builtin_cc_file", 658 ":generate_builtin_cc_file",
650 ":generate_io_cc_file", 659 ":generate_io_cc_file",
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 # The only effect of DART_SHARED_LIB is to export the Dart API. 858 # The only effect of DART_SHARED_LIB is to export the Dart API.
850 "DART_SHARED_LIB", 859 "DART_SHARED_LIB",
851 ] 860 ]
852 if (is_win) { 861 if (is_win) {
853 libs = [ "dart.lib" ] 862 libs = [ "dart.lib" ]
854 abs_root_out_dir = rebase_path(root_out_dir) 863 abs_root_out_dir = rebase_path(root_out_dir)
855 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] 864 ldflags = [ "/LIBPATH:$abs_root_out_dir" ]
856 } 865 }
857 } 866 }
858 } 867 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698