| 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 import("gypi_contents.gni") | 5 import("gypi_contents.gni") |
| 6 import("../runtime_args.gni") | 6 import("../runtime_args.gni") |
| 7 import("../../build/compiled_action.gni") | 7 import("../../build/compiled_action.gni") |
| 8 | 8 |
| 9 # Generate a resources.cc file for the service isolate without Observatory. | 9 # Generate a resources.cc file for the service isolate without Observatory. |
| 10 action("gen_resources_cc") { | 10 action("gen_resources_cc") { |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 if (is_win) { | 312 if (is_win) { |
| 313 libs = [ | 313 libs = [ |
| 314 "iphlpapi.lib", | 314 "iphlpapi.lib", |
| 315 "psapi.lib", | 315 "psapi.lib", |
| 316 "ws2_32.lib", | 316 "ws2_32.lib", |
| 317 "Rpcrt4.lib", | 317 "Rpcrt4.lib", |
| 318 "winmm.lib", | 318 "winmm.lib", |
| 319 ] | 319 ] |
| 320 } | 320 } |
| 321 | 321 |
| 322 if (defined(is_fuchsia) && is_fuchsia) { | 322 if (is_fuchsia) { |
| 323 libs = [ "launchpad" ] | 323 libs = [ "launchpad" ] |
| 324 } | 324 } |
| 325 } | 325 } |
| 326 | 326 |
| 327 # A source set for the implementation of 'dart:io' library | 327 # A source set for the implementation of 'dart:io' library |
| 328 # (without secure sockets) suitable for linking with gen_snapshot. | 328 # (without secure sockets) suitable for linking with gen_snapshot. |
| 329 source_set("gen_snapshot_dart_io") { | 329 source_set("gen_snapshot_dart_io") { |
| 330 configs += [ | 330 configs += [ |
| 331 "..:dart_config", | 331 "..:dart_config", |
| 332 "..:dart_maybe_product_config", | 332 "..:dart_maybe_product_config", |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 "Security.framework", | 403 "Security.framework", |
| 404 ] | 404 ] |
| 405 | 405 |
| 406 if (is_mac) { | 406 if (is_mac) { |
| 407 libs += [ "CoreServices.framework" ] | 407 libs += [ "CoreServices.framework" ] |
| 408 } | 408 } |
| 409 } else { | 409 } else { |
| 410 deps += [ "//third_party/boringssl" ] | 410 deps += [ "//third_party/boringssl" ] |
| 411 } | 411 } |
| 412 | 412 |
| 413 if (defined(is_fuchsia) && is_fuchsia) { | 413 if (is_fuchsia) { |
| 414 libs = [ "launchpad" ] | 414 libs = [ "launchpad" ] |
| 415 } | 415 } |
| 416 | 416 |
| 417 sources = io_impl_sources_gypi + builtin_impl_sources_gypi | 417 sources = io_impl_sources_gypi + builtin_impl_sources_gypi |
| 418 sources += [ | 418 sources += [ |
| 419 "builtin_natives.cc", | 419 "builtin_natives.cc", |
| 420 "io_natives.cc", | 420 "io_natives.cc", |
| 421 "io_natives.h", | 421 "io_natives.h", |
| 422 "log_android.cc", | 422 "log_android.cc", |
| 423 "log_linux.cc", | 423 "log_linux.cc", |
| 424 "log_macos.cc", | 424 "log_macos.cc", |
| 425 "log_win.cc", | 425 "log_win.cc", |
| 426 "log.h", | 426 "log.h", |
| 427 ] + extra_sources | 427 ] + extra_sources |
| 428 | 428 |
| 429 if (is_linux || is_win || (defined(is_fuchsia) && is_fuchsia)) { | 429 if (is_linux || is_win || is_fuchsia) { |
| 430 if (dart_use_fallback_root_certificates) { | 430 if (dart_use_fallback_root_certificates) { |
| 431 sources += [ "//third_party/root_certificates/root_certificates.cc" ] | 431 sources += [ "//third_party/root_certificates/root_certificates.cc" ] |
| 432 } else { | 432 } else { |
| 433 defines += [ "DART_IO_ROOT_CERTS_DISABLED" ] | 433 defines += [ "DART_IO_ROOT_CERTS_DISABLED" ] |
| 434 } | 434 } |
| 435 } | 435 } |
| 436 | 436 |
| 437 include_dirs = [ | 437 include_dirs = [ |
| 438 "..", | 438 "..", |
| 439 "//third_party", | 439 "//third_party", |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 if (is_win) { | 599 if (is_win) { |
| 600 libs = [ | 600 libs = [ |
| 601 "iphlpapi.lib", | 601 "iphlpapi.lib", |
| 602 "psapi.lib", | 602 "psapi.lib", |
| 603 "ws2_32.lib", | 603 "ws2_32.lib", |
| 604 "Rpcrt4.lib", | 604 "Rpcrt4.lib", |
| 605 "winmm.lib", | 605 "winmm.lib", |
| 606 ] | 606 ] |
| 607 } | 607 } |
| 608 | 608 |
| 609 if (defined(is_fuchsia) && is_fuchsia) { | 609 if (is_fuchsia) { |
| 610 libs = [ "launchpad" ] | 610 libs = [ "launchpad" ] |
| 611 } | 611 } |
| 612 } | 612 } |
| 613 } | 613 } |
| 614 | 614 |
| 615 dart_executable("dart") { | 615 dart_executable("dart") { |
| 616 extra_deps = [ | 616 extra_deps = [ |
| 617 "..:libdart_jit", | 617 "..:libdart_jit", |
| 618 ":dart_snapshot_cc", | 618 ":dart_snapshot_cc", |
| 619 "../observatory:standalone_observatory_archive", | 619 "../observatory:standalone_observatory_archive", |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 "$target_gen_dir/indexed_db_gen.cc", | 675 "$target_gen_dir/indexed_db_gen.cc", |
| 676 "$target_gen_dir/cached_patches_gen.cc", | 676 "$target_gen_dir/cached_patches_gen.cc", |
| 677 "$target_gen_dir/web_gl_gen.cc", | 677 "$target_gen_dir/web_gl_gen.cc", |
| 678 "$target_gen_dir/metadata_gen.cc", | 678 "$target_gen_dir/metadata_gen.cc", |
| 679 "$target_gen_dir/web_sql_gen.cc", | 679 "$target_gen_dir/web_sql_gen.cc", |
| 680 "$target_gen_dir/svg_gen.cc", | 680 "$target_gen_dir/svg_gen.cc", |
| 681 "$target_gen_dir/web_audio_gen.cc", | 681 "$target_gen_dir/web_audio_gen.cc", |
| 682 ] | 682 ] |
| 683 } | 683 } |
| 684 | 684 |
| 685 if (defined(is_fuchsia) && is_fuchsia) { | 685 if (is_fuchsia) { |
| 686 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") | 686 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") |
| 687 | 687 |
| 688 copy("hello_fuchsia") { | 688 copy("hello_fuchsia") { |
| 689 sources = [ | 689 sources = [ |
| 690 hello_fuchsia_source, | 690 hello_fuchsia_source, |
| 691 ] | 691 ] |
| 692 outputs = [ | 692 outputs = [ |
| 693 "$root_out_dir/hello_fuchsia.dart", | 693 "$root_out_dir/hello_fuchsia.dart", |
| 694 ] | 694 ] |
| 695 } | 695 } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 rebase_path(snapshot_test_in_dat_file), | 754 rebase_path(snapshot_test_in_dat_file), |
| 755 "--include", | 755 "--include", |
| 756 "INTENTIONALLY_LEFT_BLANK", | 756 "INTENTIONALLY_LEFT_BLANK", |
| 757 "--var_name", | 757 "--var_name", |
| 758 "INTENTIONALLY_LEFT_BLANK_TOO", | 758 "INTENTIONALLY_LEFT_BLANK_TOO", |
| 759 rebase_path(snapshot_test_dart_file), | 759 rebase_path(snapshot_test_dart_file), |
| 760 ] | 760 ] |
| 761 } | 761 } |
| 762 | 762 |
| 763 executable("run_vm_tests") { | 763 executable("run_vm_tests") { |
| 764 if (defined(is_fuchsia) && (is_fuchsia || is_fuchsia_host)) { | 764 if (is_fuchsia || is_fuchsia_host) { |
| 765 testonly = true | 765 testonly = true |
| 766 } | 766 } |
| 767 | 767 |
| 768 configs += [ | 768 configs += [ |
| 769 "..:dart_config", | 769 "..:dart_config", |
| 770 "..:dart_maybe_product_config", | 770 "..:dart_maybe_product_config", |
| 771 ] | 771 ] |
| 772 | 772 |
| 773 deps = [ | 773 deps = [ |
| 774 ":dart_snapshot_cc", | 774 ":dart_snapshot_cc", |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 ] | 851 ] |
| 852 if (is_linux || is_android) { | 852 if (is_linux || is_android) { |
| 853 cflags = [ "-fPIC" ] | 853 cflags = [ "-fPIC" ] |
| 854 } | 854 } |
| 855 if (is_win) { | 855 if (is_win) { |
| 856 libs = [ "dart.lib" ] | 856 libs = [ "dart.lib" ] |
| 857 abs_root_out_dir = rebase_path(root_out_dir) | 857 abs_root_out_dir = rebase_path(root_out_dir) |
| 858 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 858 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 859 } | 859 } |
| 860 } | 860 } |
| OLD | NEW |