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

Unified Diff: runtime/bin/BUILD.gn

Issue 1124193004: Add embedded_dart_io source_set for Sky (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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/embedded_dart_io.h » ('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 576a0ef66d51ab77c7e373c5e396bfdc2f06a90f..ebb92c9271d33e5c19940b4d768f0dd3b3926a72 100644
--- a/runtime/bin/BUILD.gn
+++ b/runtime/bin/BUILD.gn
@@ -179,3 +179,63 @@ static_library("libdart_embedder_noio") {
"../vm:libdart_platform",
]
}
+
+io_impl_sources_gypi =
+ exec_script("../../tools/gypi_to_gn.py",
+ [ rebase_path("io_impl_sources.gypi") ],
+ "scope",
+ [ "io_impl_sources.gypi" ])
+
+# A source set for the implementation of 'dart:io' library
+# (without secure sockets).
+source_set("embedded_dart_io") {
+ configs += ["..:dart_config",]
+
+ # Set custom sources assignment filter. The custom filters does three things:
+ # 1) Filters out unnecessary files pulled in from the gypi files.
+ # 2) Filters out secure socket support.
+ # 3) Enables dart:io by filtering out _unsupported.cc implementations.
+ custom_sources_filter = [
+ "*net/nss_memio.cc",
+ "*net/nss_memio.h",
+ "*secure_socket.cc",
+ "*secure_socket.h",
+ "*filter_unsupported.cc",
+ "*io_service_unsupported.cc",
+ "*_test.cc",
+ "*_test.h",
+ "*dbg*",
+ "builtin.cc",
+ "builtin_gen_snapshot.cc",
+ ]
+ if (!is_mac) {
+ # Dart tree uses *_macos.* instead of *_mac.*
+ custom_sources_filter += [
+ "*_macos.h",
+ "*_macos.cc",
+ ]
+ }
+ set_sources_assignment_filter(custom_sources_filter)
+
+ defines = [ "DART_IO_SECURE_SOCKET_DISABLED" ]
+
+ sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources
+ sources += [
+ "builtin_nolib.cc",
+ "builtin_natives.cc",
+ "io_natives.cc",
+ "io_natives.h",
+ "embedded_dart_io.cc",
+ "embedded_dart_io.h",
+ "log_android.cc",
+ "log_linux.cc",
+ "log_macos.cc",
+ "log_win.cc",
+ "log.h",
+ ]
+
+ include_dirs = [
+ "..",
+ "//third_party"
+ ]
+}
« no previous file with comments | « no previous file | runtime/bin/embedded_dart_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698