| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 "io_natives.cc", | 360 "io_natives.cc", |
| 361 "io_natives.h", | 361 "io_natives.h", |
| 362 ] | 362 ] |
| 363 | 363 |
| 364 include_dirs = [ | 364 include_dirs = [ |
| 365 "..", | 365 "..", |
| 366 "//third_party", | 366 "//third_party", |
| 367 ] | 367 ] |
| 368 } | 368 } |
| 369 | 369 |
| 370 source_set("libdart_embedder_noio") { | |
| 371 configs += [ | |
| 372 "..:dart_config", | |
| 373 "..:dart_maybe_product_config", | |
| 374 ] | |
| 375 deps = [ | |
| 376 "..:libdart", | |
| 377 ] | |
| 378 } | |
| 379 | |
| 380 # A source set for the implementation of 'dart:io' library. | 370 # A source set for the implementation of 'dart:io' library. |
| 381 template("dart_io") { | 371 template("dart_io") { |
| 382 extra_sources = [] | 372 extra_sources = [] |
| 383 if (defined(invoker.extra_sources)) { | 373 if (defined(invoker.extra_sources)) { |
| 384 extra_sources += invoker.extra_sources | 374 extra_sources += invoker.extra_sources |
| 385 } | 375 } |
| 386 source_set(target_name) { | 376 source_set(target_name) { |
| 387 configs += [ | 377 configs += [ |
| 388 "..:dart_config", | 378 "..:dart_config", |
| 389 "..:dart_maybe_product_config", | 379 "..:dart_maybe_product_config", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 410 if (is_mac || is_ios) { | 400 if (is_mac || is_ios) { |
| 411 libs = [ | 401 libs = [ |
| 412 "CoreFoundation.framework", | 402 "CoreFoundation.framework", |
| 413 "Security.framework", | 403 "Security.framework", |
| 414 ] | 404 ] |
| 415 | 405 |
| 416 if (is_mac) { | 406 if (is_mac) { |
| 417 libs += [ "CoreServices.framework" ] | 407 libs += [ "CoreServices.framework" ] |
| 418 } | 408 } |
| 419 } else { | 409 } else { |
| 420 deps += [ | 410 deps += [ "//third_party/boringssl" ] |
| 421 "//third_party/boringssl", | |
| 422 ] | |
| 423 } | 411 } |
| 424 | 412 |
| 425 if (defined(is_fuchsia) && is_fuchsia) { | 413 if (defined(is_fuchsia) && is_fuchsia) { |
| 426 libs = [ "launchpad" ] | 414 libs = [ "launchpad" ] |
| 427 } | 415 } |
| 428 | 416 |
| 429 sources = io_impl_sources_gypi + builtin_impl_sources_gypi | 417 sources = io_impl_sources_gypi + builtin_impl_sources_gypi |
| 430 sources += [ | 418 sources += [ |
| 431 "builtin_natives.cc", | 419 "builtin_natives.cc", |
| 432 "io_natives.cc", | 420 "io_natives.cc", |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 } | 607 } |
| 620 | 608 |
| 621 if (defined(is_fuchsia) && is_fuchsia) { | 609 if (defined(is_fuchsia) && is_fuchsia) { |
| 622 libs = [ "launchpad" ] | 610 libs = [ "launchpad" ] |
| 623 } | 611 } |
| 624 } | 612 } |
| 625 } | 613 } |
| 626 | 614 |
| 627 dart_executable("dart") { | 615 dart_executable("dart") { |
| 628 extra_deps = [ | 616 extra_deps = [ |
| 629 "..:libdart", | 617 "..:libdart_jit", |
| 630 ":dart_snapshot_cc", | 618 ":dart_snapshot_cc", |
| 631 "../observatory:standalone_observatory_archive", | 619 "../observatory:standalone_observatory_archive", |
| 632 ] | 620 ] |
| 633 extra_sources = [ "builtin_nolib.cc" ] | 621 extra_sources = [ "builtin_nolib.cc" ] |
| 634 } | 622 } |
| 635 | 623 |
| 636 dart_executable("dart_precompiled_runtime") { | 624 dart_executable("dart_precompiled_runtime") { |
| 637 extra_configs = [ "..:dart_precompiled_runtime_config" ] | 625 extra_configs = [ "..:dart_precompiled_runtime_config" ] |
| 638 extra_deps = [ | 626 extra_deps = [ |
| 639 "..:libdart_precompiled_runtime", | 627 "..:libdart_precompiled_runtime", |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 "..:dart_config", | 769 "..:dart_config", |
| 782 "..:dart_maybe_product_config", | 770 "..:dart_maybe_product_config", |
| 783 ] | 771 ] |
| 784 | 772 |
| 785 deps = [ | 773 deps = [ |
| 786 ":dart_snapshot_cc", | 774 ":dart_snapshot_cc", |
| 787 ":generate_snapshot_test_dat_file", | 775 ":generate_snapshot_test_dat_file", |
| 788 ":libdart_builtin", | 776 ":libdart_builtin", |
| 789 ":standalone_dart_io", | 777 ":standalone_dart_io", |
| 790 "$dart_zlib_path", | 778 "$dart_zlib_path", |
| 791 "..:libdart", | 779 "..:libdart_jit", |
| 792 ] | 780 ] |
| 793 include_dirs = [ | 781 include_dirs = [ |
| 794 "..", | 782 "..", |
| 795 "$target_gen_dir", | 783 "$target_gen_dir", |
| 796 ] | 784 ] |
| 797 defines = [ "TESTING" ] | 785 defines = [ "TESTING" ] |
| 798 | 786 |
| 799 if (dart_use_tcmalloc) { | 787 if (dart_use_tcmalloc) { |
| 800 deps += [ "//third_party/tcmalloc" ] | 788 deps += [ "//third_party/tcmalloc" ] |
| 801 defines += [ "DART_USE_TCMALLOC" ] | 789 defines += [ "DART_USE_TCMALLOC" ] |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 ] | 851 ] |
| 864 if (is_linux || is_android) { | 852 if (is_linux || is_android) { |
| 865 cflags = [ "-fPIC" ] | 853 cflags = [ "-fPIC" ] |
| 866 } | 854 } |
| 867 if (is_win) { | 855 if (is_win) { |
| 868 libs = [ "dart.lib" ] | 856 libs = [ "dart.lib" ] |
| 869 abs_root_out_dir = rebase_path(root_out_dir) | 857 abs_root_out_dir = rebase_path(root_out_dir) |
| 870 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 858 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 871 } | 859 } |
| 872 } | 860 } |
| OLD | NEW |