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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/kernel_binary.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/BUILD.gn
diff --git a/runtime/bin/BUILD.gn b/runtime/bin/BUILD.gn
index 856f8e68c0d41434bdcfabb8cc90d46f42c700c2..49363dc8d2bc88066e109dde029bb46a847df68a 100644
--- a/runtime/bin/BUILD.gn
+++ b/runtime/bin/BUILD.gn
@@ -818,6 +818,74 @@ executable("run_vm_tests") {
}
}
+executable("kernel") {
+ extra_deps = [
+ "..:libdart",
+ ":dart_snapshot_cc",
+ ]
+ extra_sources = [ "builtin_nolib.cc" ]
+
+ configs += [
+ "..:dart_config",
+ "..:dart_maybe_product_config",
+ ]
+
+ if (defined(is_fuchsia_host) && is_fuchsia_host) {
+ # We already have these in the standalone build, but Fuchsia doesn't
+ # have them. They are needed for running Fuchsia binaries built for the
+ # host.
+ if (is_linux) {
+ configs += [ "../../build/config/gcc:executable_ldconfig" ]
+ } else if (is_mac) {
+ configs += [ "../../build/config/mac:mac_dynamic_flags" ]
+ }
+ }
+
+ deps = [
+ ":gen_resources_cc",
+ ":standalone_dart_io",
+ ":libdart_builtin",
+ "$dart_zlib_path",
+ ] + extra_deps
+
+ defines = []
+
+ if (dart_use_tcmalloc) {
+ deps += [ "//third_party/tcmalloc" ]
+ defines += [ "DART_USE_TCMALLOC" ]
+ }
+
+ sources = [
+ "../vm/kernel_main.cc",
+ "$target_gen_dir/resources_gen.cc",
+ ] + extra_sources
+
+ include_dirs = [
+ "..",
+ "//third_party",
+ ]
+
+ if (is_win) {
+ ldflags = [ "/EXPORT:Dart_True" ]
+ } else {
+ ldflags = [ "-rdynamic" ]
+ }
+
+ if (is_win) {
+ libs = [
+ "iphlpapi.lib",
+ "psapi.lib",
+ "ws2_32.lib",
+ "Rpcrt4.lib",
+ "winmm.lib",
+ ]
+ }
+
+ if (defined(is_fuchsia) && is_fuchsia) {
+ libs = [ "launchpad" ]
+ }
+}
+
shared_library("test_extension") {
deps = [
":dart",
« 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