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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/embedded_dart_io.h » ('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 5
6 declare_args() { 6 declare_args() {
7 dart_io_support = false 7 dart_io_support = false
8 } 8 }
9 9
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 172 }
173 173
174 174
175 static_library("libdart_embedder_noio") { 175 static_library("libdart_embedder_noio") {
176 configs += ["..:dart_config",] 176 configs += ["..:dart_config",]
177 deps = [ 177 deps = [
178 "..:libdart", 178 "..:libdart",
179 "../vm:libdart_platform", 179 "../vm:libdart_platform",
180 ] 180 ]
181 } 181 }
182
183 io_impl_sources_gypi =
184 exec_script("../../tools/gypi_to_gn.py",
185 [ rebase_path("io_impl_sources.gypi") ],
186 "scope",
187 [ "io_impl_sources.gypi" ])
188
189 # A source set for the implementation of 'dart:io' library
190 # (without secure sockets).
191 source_set("embedded_dart_io") {
192 configs += ["..:dart_config",]
193
194 # Set custom sources assignment filter. The custom filters does three things:
195 # 1) Filters out unnecessary files pulled in from the gypi files.
196 # 2) Filters out secure socket support.
197 # 3) Enables dart:io by filtering out _unsupported.cc implementations.
198 custom_sources_filter = [
199 "*net/nss_memio.cc",
200 "*net/nss_memio.h",
201 "*secure_socket.cc",
202 "*secure_socket.h",
203 "*filter_unsupported.cc",
204 "*io_service_unsupported.cc",
205 "*_test.cc",
206 "*_test.h",
207 "*dbg*",
208 "builtin.cc",
209 "builtin_gen_snapshot.cc",
210 ]
211 if (!is_mac) {
212 # Dart tree uses *_macos.* instead of *_mac.*
213 custom_sources_filter += [
214 "*_macos.h",
215 "*_macos.cc",
216 ]
217 }
218 set_sources_assignment_filter(custom_sources_filter)
219
220 defines = [ "DART_IO_SECURE_SOCKET_DISABLED" ]
221
222 sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources
223 sources += [
224 "builtin_nolib.cc",
225 "builtin_natives.cc",
226 "io_natives.cc",
227 "io_natives.h",
228 "embedded_dart_io.cc",
229 "embedded_dart_io.h",
230 "log_android.cc",
231 "log_linux.cc",
232 "log_macos.cc",
233 "log_win.cc",
234 "log.h",
235 ]
236
237 include_dirs = [
238 "..",
239 "//third_party"
240 ]
241 }
OLDNEW
« 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