| 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",
|
|
|