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

Unified Diff: runtime/bin/BUILD.gn

Issue 2168193002: Fuchsia: Build standalone VM. Make it run "Hello, World!". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 5 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/bin/builtin_impl_sources.gypi » ('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 f401669ff35b69407855f1a7959d24f5c78655e9..610115ac7ecde55f86ddfac61094be1a07861c23 100644
--- a/runtime/bin/BUILD.gn
+++ b/runtime/bin/BUILD.gn
@@ -138,6 +138,7 @@ static_library("libdart_builtin") {
set_sources_assignment_filter(["*_test.cc", "*_test.h"])
sources = [
"log_android.cc",
+ "log_fuchsia.cc",
"log_linux.cc",
"log_macos.cc",
"log_win.cc",
@@ -212,14 +213,11 @@ static_library("libdart_nosnapshot_with_precompiler") {
]
}
-if ((current_toolchain == host_toolchain) ||
- (!defined(is_fuchsia) || !is_fuchsia)) {
io_impl_sources_gypi =
exec_script("../../tools/gypi_to_gn.py",
[ rebase_path("io_impl_sources.gypi") ],
"scope",
[ "io_impl_sources.gypi" ])
-}
if (!defined(is_fuchsia) || (current_toolchain == host_toolchain)) {
@@ -312,7 +310,6 @@ source_set("libdart_embedder_noio") {
]
}
-if (!defined(is_fuchsia) || !is_fuchsia) {
# A source set for the implementation of 'dart:io' library
# (without secure sockets).
@@ -340,6 +337,10 @@ source_set("embedded_dart_io") {
libs = [
"Security.framework",
]
+ } else if (defined(is_fuchsia) && is_fuchsia) {
+ defines = [
+ "DART_IO_SECURE_SOCKET_DISABLED"
+ ]
} else {
deps = [
rebase_path(dart_boringssl_path, "."),
@@ -369,7 +370,6 @@ source_set("embedded_dart_io") {
"//third_party"
]
}
-} # !is_fuchsia
action("generate_snapshot_bin") {
@@ -466,4 +466,42 @@ if (defined(is_fuchsia) && is_fuchsia) {
":libdart_embedder_noio",
]
}
-}
+
+ copy("hello_fuchsia") {
+ sources = [ "../tests/vm/dart/hello_fuchsia_test.dart" ]
+ outputs = [ "$root_out_dir/hello_fuchsia.dart" ]
+ }
+
+ executable("dart_no_observatory") {
+ configs += ["..:dart_config",
+ "..:dart_product_config",
+ "..:dart_precompiled_runtime_config",]
+ deps = [
+ ":hello_fuchsia",
+ ":gen_resources_cc",
+ ":embedded_dart_io",
+ ":libdart_builtin",
+ "../vm:libdart_platform",
+ "..:libdart",
+ ":dart_snapshot_cc",
+ "//third_party/zlib",
+ ]
+
+ defines = [
+ "NO_OBSERVATORY",
+ ]
+
+ sources = [
+ "main.cc",
+ "observatory_assets_empty.cc",
+ "vmservice_impl.cc",
+ "vmservice_impl.h",
+ "$target_gen_dir/resources_gen.cc",
+ ]
+
+ include_dirs = [
+ "..",
+ "//third_party",
+ ]
+ }
+} # defined(is_fuchsia) && is_fuchsia
« no previous file with comments | « no previous file | runtime/bin/builtin_impl_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698