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 declare_args() { | 9 declare_args() { |
10 # Controls the kind of core snapshot linked into the standalone VM. Using a | 10 # Controls the kind of core snapshot linked into the standalone VM. Using a |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 sources = [ | 310 sources = [ |
311 # Include generated source files. | 311 # Include generated source files. |
312 "$target_gen_dir/builtin_gen.cc", | 312 "$target_gen_dir/builtin_gen.cc", |
313 "$target_gen_dir/io_gen.cc", | 313 "$target_gen_dir/io_gen.cc", |
314 "$target_gen_dir/io_patch_gen.cc", | 314 "$target_gen_dir/io_patch_gen.cc", |
315 "$target_gen_dir/resources_gen.cc", | 315 "$target_gen_dir/resources_gen.cc", |
316 "address_sanitizer.cc", | 316 "address_sanitizer.cc", |
317 "builtin.cc", | 317 "builtin.cc", |
318 "builtin.h", | 318 "builtin.h", |
| 319 "gzip.cc", |
| 320 "gzip.h", |
319 "loader.cc", | 321 "loader.cc", |
320 "loader.h", | 322 "loader.h", |
321 | 323 |
322 # Very limited native resolver provided. | 324 # Very limited native resolver provided. |
323 "builtin_common.cc", | 325 "builtin_common.cc", |
324 "builtin_gen_snapshot.cc", | 326 "builtin_gen_snapshot.cc", |
325 "dfe.cc", | 327 "dfe.cc", |
326 "dfe.h", | 328 "dfe.h", |
327 "gen_snapshot.cc", | 329 "gen_snapshot.cc", |
328 "vmservice_impl.cc", | 330 "vmservice_impl.cc", |
329 "vmservice_impl.h", | 331 "vmservice_impl.h", |
330 ] | 332 ] |
331 | 333 |
332 include_dirs = [ ".." ] | 334 include_dirs = [ |
| 335 "..", |
| 336 "//third_party", |
| 337 ] |
333 | 338 |
334 if (dart_use_tcmalloc) { | 339 if (dart_use_tcmalloc) { |
335 deps += [ "//third_party/tcmalloc" ] | 340 deps += [ "//third_party/tcmalloc" ] |
336 } | 341 } |
337 | 342 |
338 if (is_mac) { | 343 if (is_mac) { |
339 libs = [ | 344 libs = [ |
340 "CoreFoundation.framework", | 345 "CoreFoundation.framework", |
341 "CoreServices.framework", | 346 "CoreServices.framework", |
342 ] | 347 ] |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 ] | 758 ] |
754 if (dart_runtime_mode != "release") { | 759 if (dart_runtime_mode != "release") { |
755 extra_deps += [ "../observatory:standalone_observatory_archive" ] | 760 extra_deps += [ "../observatory:standalone_observatory_archive" ] |
756 } | 761 } |
757 extra_sources = [ | 762 extra_sources = [ |
758 "builtin_nolib.cc", | 763 "builtin_nolib.cc", |
759 "dfe.cc", | 764 "dfe.cc", |
760 "dfe.h", | 765 "dfe.h", |
761 "loader.cc", | 766 "loader.cc", |
762 "loader.h", | 767 "loader.h", |
| 768 "gzip.cc", |
| 769 "gzip.h", |
763 "$target_gen_dir/resources_gen.cc", | 770 "$target_gen_dir/resources_gen.cc", |
764 ] | 771 ] |
765 if (dart_runtime_mode == "release") { | 772 if (dart_runtime_mode == "release") { |
766 extra_sources += [ "observatory_assets_empty.cc" ] | 773 extra_sources += [ "observatory_assets_empty.cc" ] |
767 } | 774 } |
768 } | 775 } |
769 | 776 |
770 dart_executable("dart_precompiled_runtime") { | 777 dart_executable("dart_precompiled_runtime") { |
771 extra_configs = [ "..:dart_precompiled_runtime_config" ] | 778 extra_configs = [ "..:dart_precompiled_runtime_config" ] |
772 extra_deps = [ "..:libdart_precompiled_runtime" ] | 779 extra_deps = [ "..:libdart_precompiled_runtime" ] |
773 if (dart_runtime_mode != "release") { | 780 if (dart_runtime_mode != "release") { |
774 extra_deps += [ "../observatory:standalone_observatory_archive" ] | 781 extra_deps += [ "../observatory:standalone_observatory_archive" ] |
775 } | 782 } |
776 extra_sources = [ | 783 extra_sources = [ |
777 "builtin_nolib.cc", | 784 "builtin_nolib.cc", |
778 "snapshot_empty.cc", | 785 "snapshot_empty.cc", |
779 "loader.cc", | 786 "loader.cc", |
780 "loader.h", | 787 "loader.h", |
| 788 "gzip.cc", |
| 789 "gzip.h", |
781 ] | 790 ] |
782 if (dart_runtime_mode == "release") { | 791 if (dart_runtime_mode == "release") { |
783 extra_sources += [ "observatory_assets_empty.cc" ] | 792 extra_sources += [ "observatory_assets_empty.cc" ] |
784 } | 793 } |
785 } | 794 } |
786 | 795 |
787 dart_executable("dart_bootstrap") { | 796 dart_executable("dart_bootstrap") { |
788 extra_configs = [ | 797 extra_configs = [ |
789 "..:dart_precompiler_config", | 798 "..:dart_precompiler_config", |
790 "..:dart_no_snapshot_config", | 799 "..:dart_no_snapshot_config", |
(...skipping 18 matching lines...) Expand all Loading... |
809 "..:libdart_nosnapshot_with_precompiler", | 818 "..:libdart_nosnapshot_with_precompiler", |
810 ] | 819 ] |
811 extra_defines = [ "NO_OBSERVATORY" ] | 820 extra_defines = [ "NO_OBSERVATORY" ] |
812 extra_sources = [ | 821 extra_sources = [ |
813 "builtin.cc", | 822 "builtin.cc", |
814 "builtin.h", | 823 "builtin.h", |
815 "dfe.cc", | 824 "dfe.cc", |
816 "dfe.h", | 825 "dfe.h", |
817 "loader.cc", | 826 "loader.cc", |
818 "loader.h", | 827 "loader.h", |
| 828 "gzip.cc", |
| 829 "gzip.h", |
819 "observatory_assets_empty.cc", | 830 "observatory_assets_empty.cc", |
820 "snapshot_empty.cc", | 831 "snapshot_empty.cc", |
821 | 832 |
822 # Include generated source files. | 833 # Include generated source files. |
823 "$target_gen_dir/blink_gen.cc", | 834 "$target_gen_dir/blink_gen.cc", |
824 "$target_gen_dir/builtin_gen.cc", | 835 "$target_gen_dir/builtin_gen.cc", |
825 "$target_gen_dir/cached_patches_gen.cc", | 836 "$target_gen_dir/cached_patches_gen.cc", |
826 "$target_gen_dir/html_common_gen.cc", | 837 "$target_gen_dir/html_common_gen.cc", |
827 "$target_gen_dir/html_gen.cc", | 838 "$target_gen_dir/html_gen.cc", |
828 "$target_gen_dir/indexed_db_gen.cc", | 839 "$target_gen_dir/indexed_db_gen.cc", |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 ] | 1032 ] |
1022 if (is_linux || is_android) { | 1033 if (is_linux || is_android) { |
1023 cflags = [ "-fPIC" ] | 1034 cflags = [ "-fPIC" ] |
1024 } | 1035 } |
1025 if (is_win) { | 1036 if (is_win) { |
1026 libs = [ "dart.lib" ] | 1037 libs = [ "dart.lib" ] |
1027 abs_root_out_dir = rebase_path(root_out_dir) | 1038 abs_root_out_dir = rebase_path(root_out_dir) |
1028 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 1039 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
1029 } | 1040 } |
1030 } | 1041 } |
OLD | NEW |