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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 if (is_win) { | 314 if (is_win) { |
315 libs = [ | 315 libs = [ |
316 "iphlpapi.lib", | 316 "iphlpapi.lib", |
317 "psapi.lib", | 317 "psapi.lib", |
318 "ws2_32.lib", | 318 "ws2_32.lib", |
319 "Rpcrt4.lib", | 319 "Rpcrt4.lib", |
320 "winmm.lib", | 320 "winmm.lib", |
321 ] | 321 ] |
322 } | 322 } |
323 | 323 |
324 if (defined(is_fuchsia) && is_fuchsia) { | 324 if (is_fuchsia) { |
325 libs = [ "launchpad" ] | 325 libs = [ "launchpad" ] |
326 } | 326 } |
327 } | 327 } |
328 | 328 |
329 # A source set for the implementation of 'dart:io' library | 329 # A source set for the implementation of 'dart:io' library |
330 # (without secure sockets) suitable for linking with gen_snapshot. | 330 # (without secure sockets) suitable for linking with gen_snapshot. |
331 source_set("gen_snapshot_dart_io") { | 331 source_set("gen_snapshot_dart_io") { |
332 configs += [ | 332 configs += [ |
333 "..:dart_config", | 333 "..:dart_config", |
334 "..:dart_maybe_product_config", | 334 "..:dart_maybe_product_config", |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 "Security.framework", | 405 "Security.framework", |
406 ] | 406 ] |
407 | 407 |
408 if (is_mac) { | 408 if (is_mac) { |
409 libs += [ "CoreServices.framework" ] | 409 libs += [ "CoreServices.framework" ] |
410 } | 410 } |
411 } else { | 411 } else { |
412 deps += [ "//third_party/boringssl" ] | 412 deps += [ "//third_party/boringssl" ] |
413 } | 413 } |
414 | 414 |
415 if (defined(is_fuchsia) && is_fuchsia) { | 415 if (is_fuchsia) { |
416 libs = [ "launchpad" ] | 416 libs = [ "launchpad" ] |
417 } | 417 } |
418 | 418 |
419 sources = io_impl_sources_gypi + builtin_impl_sources_gypi | 419 sources = io_impl_sources_gypi + builtin_impl_sources_gypi |
420 sources += [ | 420 sources += [ |
421 "builtin_natives.cc", | 421 "builtin_natives.cc", |
422 "io_natives.cc", | 422 "io_natives.cc", |
423 "io_natives.h", | 423 "io_natives.h", |
424 "log_android.cc", | 424 "log_android.cc", |
425 "log_linux.cc", | 425 "log_linux.cc", |
426 "log_macos.cc", | 426 "log_macos.cc", |
427 "log_win.cc", | 427 "log_win.cc", |
428 "log.h", | 428 "log.h", |
429 ] + extra_sources | 429 ] + extra_sources |
430 | 430 |
431 if (is_linux || is_win || (defined(is_fuchsia) && is_fuchsia)) { | 431 if (is_linux || is_win || is_fuchsia) { |
432 if (dart_use_fallback_root_certificates) { | 432 if (dart_use_fallback_root_certificates) { |
433 sources += [ "//third_party/root_certificates/root_certificates.cc" ] | 433 sources += [ "//third_party/root_certificates/root_certificates.cc" ] |
434 } else { | 434 } else { |
435 defines += [ "DART_IO_ROOT_CERTS_DISABLED" ] | 435 defines += [ "DART_IO_ROOT_CERTS_DISABLED" ] |
436 } | 436 } |
437 } | 437 } |
438 | 438 |
439 include_dirs = [ | 439 include_dirs = [ |
440 "..", | 440 "..", |
441 "//third_party", | 441 "//third_party", |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 if (is_win) { | 601 if (is_win) { |
602 libs = [ | 602 libs = [ |
603 "iphlpapi.lib", | 603 "iphlpapi.lib", |
604 "psapi.lib", | 604 "psapi.lib", |
605 "ws2_32.lib", | 605 "ws2_32.lib", |
606 "Rpcrt4.lib", | 606 "Rpcrt4.lib", |
607 "winmm.lib", | 607 "winmm.lib", |
608 ] | 608 ] |
609 } | 609 } |
610 | 610 |
611 if (defined(is_fuchsia) && is_fuchsia) { | 611 if (is_fuchsia) { |
612 libs = [ "launchpad" ] | 612 libs = [ "launchpad" ] |
613 } | 613 } |
614 } | 614 } |
615 } | 615 } |
616 | 616 |
617 dart_executable("dart") { | 617 dart_executable("dart") { |
618 extra_deps = [ | 618 extra_deps = [ |
619 "..:libdart_jit", | 619 "..:libdart_jit", |
620 ":dart_snapshot_cc", | 620 ":dart_snapshot_cc", |
621 "../observatory:standalone_observatory_archive", | 621 "../observatory:standalone_observatory_archive", |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 "$target_gen_dir/indexed_db_gen.cc", | 685 "$target_gen_dir/indexed_db_gen.cc", |
686 "$target_gen_dir/cached_patches_gen.cc", | 686 "$target_gen_dir/cached_patches_gen.cc", |
687 "$target_gen_dir/web_gl_gen.cc", | 687 "$target_gen_dir/web_gl_gen.cc", |
688 "$target_gen_dir/metadata_gen.cc", | 688 "$target_gen_dir/metadata_gen.cc", |
689 "$target_gen_dir/web_sql_gen.cc", | 689 "$target_gen_dir/web_sql_gen.cc", |
690 "$target_gen_dir/svg_gen.cc", | 690 "$target_gen_dir/svg_gen.cc", |
691 "$target_gen_dir/web_audio_gen.cc", | 691 "$target_gen_dir/web_audio_gen.cc", |
692 ] | 692 ] |
693 } | 693 } |
694 | 694 |
695 if (defined(is_fuchsia) && is_fuchsia) { | 695 if (is_fuchsia) { |
696 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") | 696 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") |
697 | 697 |
698 copy("hello_fuchsia") { | 698 copy("hello_fuchsia") { |
699 sources = [ | 699 sources = [ |
700 hello_fuchsia_source, | 700 hello_fuchsia_source, |
701 ] | 701 ] |
702 outputs = [ | 702 outputs = [ |
703 "$root_out_dir/hello_fuchsia.dart", | 703 "$root_out_dir/hello_fuchsia.dart", |
704 ] | 704 ] |
705 } | 705 } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 rebase_path(snapshot_test_in_dat_file), | 764 rebase_path(snapshot_test_in_dat_file), |
765 "--include", | 765 "--include", |
766 "INTENTIONALLY_LEFT_BLANK", | 766 "INTENTIONALLY_LEFT_BLANK", |
767 "--var_name", | 767 "--var_name", |
768 "INTENTIONALLY_LEFT_BLANK_TOO", | 768 "INTENTIONALLY_LEFT_BLANK_TOO", |
769 rebase_path(snapshot_test_dart_file), | 769 rebase_path(snapshot_test_dart_file), |
770 ] | 770 ] |
771 } | 771 } |
772 | 772 |
773 executable("run_vm_tests") { | 773 executable("run_vm_tests") { |
774 if (defined(is_fuchsia) && (is_fuchsia || is_fuchsia_host)) { | 774 if (is_fuchsia || is_fuchsia_host) { |
775 testonly = true | 775 testonly = true |
776 } | 776 } |
777 | 777 |
778 configs += [ | 778 configs += [ |
779 "..:dart_config", | 779 "..:dart_config", |
780 "..:dart_maybe_product_config", | 780 "..:dart_maybe_product_config", |
781 ] | 781 ] |
782 | 782 |
783 deps = [ | 783 deps = [ |
784 ":dart_snapshot_cc", | 784 ":dart_snapshot_cc", |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 ] | 861 ] |
862 if (is_linux || is_android) { | 862 if (is_linux || is_android) { |
863 cflags = [ "-fPIC" ] | 863 cflags = [ "-fPIC" ] |
864 } | 864 } |
865 if (is_win) { | 865 if (is_win) { |
866 libs = [ "dart.lib" ] | 866 libs = [ "dart.lib" ] |
867 abs_root_out_dir = rebase_path(root_out_dir) | 867 abs_root_out_dir = rebase_path(root_out_dir) |
868 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 868 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
869 } | 869 } |
870 } | 870 } |
OLD | NEW |