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

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

Issue 2621383005: Reintroduce binary to load and save dill file. (Closed)
Patch Set: Removed useless line Created 3 years, 11 months 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/vm/kernel_binary.cc » ('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 import("../runtime_args.gni") 6 import("../runtime_args.gni")
7 7
8 # Generate a resources.cc file for the service isolate without Observatory. 8 # Generate a resources.cc file for the service isolate without Observatory.
9 action("gen_resources_cc") { 9 action("gen_resources_cc") {
10 visibility = [ ":*" ] # Only targets in this file can see this. 10 visibility = [ ":*" ] # Only targets in this file can see this.
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 libs = [ 811 libs = [
812 "iphlpapi.lib", 812 "iphlpapi.lib",
813 "psapi.lib", 813 "psapi.lib",
814 "ws2_32.lib", 814 "ws2_32.lib",
815 "Rpcrt4.lib", 815 "Rpcrt4.lib",
816 "winmm.lib", 816 "winmm.lib",
817 ] 817 ]
818 } 818 }
819 } 819 }
820 820
821 executable("kernel") {
822 extra_deps = [
823 "..:libdart",
824 ":dart_snapshot_cc",
825 ]
826 extra_sources = [ "builtin_nolib.cc" ]
827
828 configs += [
829 "..:dart_config",
830 "..:dart_maybe_product_config",
831 ]
832
833 if (defined(is_fuchsia_host) && is_fuchsia_host) {
834 # We already have these in the standalone build, but Fuchsia doesn't
835 # have them. They are needed for running Fuchsia binaries built for the
836 # host.
837 if (is_linux) {
838 configs += [ "../../build/config/gcc:executable_ldconfig" ]
839 } else if (is_mac) {
840 configs += [ "../../build/config/mac:mac_dynamic_flags" ]
841 }
842 }
843
844 deps = [
845 ":gen_resources_cc",
846 ":standalone_dart_io",
847 ":libdart_builtin",
848 "$dart_zlib_path",
849 ] + extra_deps
850
851 defines = []
852
853 if (dart_use_tcmalloc) {
854 deps += [ "//third_party/tcmalloc" ]
855 defines += [ "DART_USE_TCMALLOC" ]
856 }
857
858 sources = [
859 "../vm/kernel_main.cc",
860 "$target_gen_dir/resources_gen.cc",
861 ] + extra_sources
862
863 include_dirs = [
864 "..",
865 "//third_party",
866 ]
867
868 if (is_win) {
869 ldflags = [ "/EXPORT:Dart_True" ]
870 } else {
871 ldflags = [ "-rdynamic" ]
872 }
873
874 if (is_win) {
875 libs = [
876 "iphlpapi.lib",
877 "psapi.lib",
878 "ws2_32.lib",
879 "Rpcrt4.lib",
880 "winmm.lib",
881 ]
882 }
883
884 if (defined(is_fuchsia) && is_fuchsia) {
885 libs = [ "launchpad" ]
886 }
887 }
888
821 shared_library("test_extension") { 889 shared_library("test_extension") {
822 deps = [ 890 deps = [
823 ":dart", 891 ":dart",
824 ] 892 ]
825 sources = [ 893 sources = [
826 "test_extension.c", 894 "test_extension.c",
827 "test_extension_dllmain_win.cc", 895 "test_extension_dllmain_win.cc",
828 ] 896 ]
829 include_dirs = [ ".." ] 897 include_dirs = [ ".." ]
830 defines = [ 898 defines = [
(...skipping 19 matching lines...) Expand all
850 defines = [ 918 defines = [
851 # The only effect of DART_SHARED_LIB is to export the Dart API. 919 # The only effect of DART_SHARED_LIB is to export the Dart API.
852 "DART_SHARED_LIB", 920 "DART_SHARED_LIB",
853 ] 921 ]
854 if (is_win) { 922 if (is_win) {
855 libs = [ "dart.lib" ] 923 libs = [ "dart.lib" ]
856 abs_root_out_dir = rebase_path(root_out_dir) 924 abs_root_out_dir = rebase_path(root_out_dir)
857 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] 925 ldflags = [ "/LIBPATH:$abs_root_out_dir" ]
858 } 926 }
859 } 927 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/kernel_binary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698