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

Side by Side Diff: runtime/bin/builtin.cc

Issue 2023703002: Beginning work on GN build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Really add //build. Add dart_bootstrap rule. Created 4 years, 6 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
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/observatory/BUILD.gn » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include <stdio.h> 5 #include <stdio.h>
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "bin/builtin.h" 9 #include "bin/builtin.h"
10 #include "bin/dartutils.h" 10 #include "bin/dartutils.h"
11 #include "bin/platform.h" 11 #include "bin/platform.h"
12 12
13 namespace dart { 13 namespace dart {
14 namespace bin { 14 namespace bin {
15 15
16 Builtin::builtin_lib_props Builtin::builtin_libraries_[] = { 16 Builtin::builtin_lib_props Builtin::builtin_libraries_[] = {
17 /* { url_, source_, patch_url_, patch_source_, has_natives_ } */ 17 /* { url_, source_, patch_url_, patch_source_, has_natives_ } */
18 { DartUtils::kBuiltinLibURL, _builtin_source_paths_, NULL, NULL, true }, 18 { DartUtils::kBuiltinLibURL, _builtin_source_paths_, NULL, NULL, true },
19 { DartUtils::kIOLibURL, io_source_paths_, 19 { DartUtils::kIOLibURL, io_source_paths_,
20 DartUtils::kIOLibPatchURL, io_patch_paths_, true }, 20 DartUtils::kIOLibPatchURL, io_patch_paths_, true },
21 21
22 #if defined(DART_NO_SNAPSHOT) 22 #if defined(DART_NO_SNAPSHOT)
23 // Only include these libraries in the dart_bootstrap case for now. 23 // Only include these libraries in the dart_bootstrap case for now.
24 { "dart:html", html_source_paths_, NULL, NULL, true }, 24 { "dart:html", html_source_paths_, NULL, NULL, true },
25 { "dart:html_common", html_common_source_paths_, NULL, NULL, true}, 25 { "dart:html_common", html_common_source_paths_, NULL, NULL, true},
26 { "dart:js", js_source_paths_, NULL, NULL, true}, 26 { "dart:js", js_source_paths_, NULL, NULL, true},
27 { "dart:_blink", blink_source_paths_, NULL, NULL, true }, 27 { "dart:_blink", blink_source_paths_, NULL, NULL, true },
28 { "dart:indexed_db", indexeddb_source_paths_, NULL, NULL, true }, 28 { "dart:indexed_db", indexed_db_source_paths_, NULL, NULL, true },
29 { "cached_patches.dart", cached_patches_source_paths_, NULL, NULL, true }, 29 { "cached_patches.dart", cached_patches_source_paths_, NULL, NULL, true },
30 { "dart:web_gl", web_gl_source_paths_, NULL, NULL, true }, 30 { "dart:web_gl", web_gl_source_paths_, NULL, NULL, true },
31 { "metadata.dart", metadata_source_paths_, NULL, NULL, true }, 31 { "metadata.dart", metadata_source_paths_, NULL, NULL, true },
32 { "dart:web_sql", websql_source_paths_, NULL, NULL, true }, 32 { "dart:web_sql", web_sql_source_paths_, NULL, NULL, true },
33 { "dart:svg", svg_source_paths_, NULL, NULL, true }, 33 { "dart:svg", svg_source_paths_, NULL, NULL, true },
34 { "dart:web_audio", webaudio_source_paths_, NULL, NULL, true }, 34 { "dart:web_audio", web_audio_source_paths_, NULL, NULL, true },
35 #endif // defined(DART_NO_SNAPSHOT) 35 #endif // defined(DART_NO_SNAPSHOT)
36 36
37 // End marker. 37 // End marker.
38 { NULL, NULL, NULL, NULL, false } 38 { NULL, NULL, NULL, NULL, false }
39 }; 39 };
40 40
41 Dart_Port Builtin::load_port_ = ILLEGAL_PORT; 41 Dart_Port Builtin::load_port_ = ILLEGAL_PORT;
42 const int Builtin::num_libs_ = 42 const int Builtin::num_libs_ =
43 sizeof(Builtin::builtin_libraries_) / sizeof(Builtin::builtin_lib_props); 43 sizeof(Builtin::builtin_libraries_) / sizeof(Builtin::builtin_lib_props);
44 44
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 Dart_Handle url = DartUtils::NewString(builtin_libraries_[id].url_); 155 Dart_Handle url = DartUtils::NewString(builtin_libraries_[id].url_);
156 Dart_Handle library = Dart_LookupLibrary(url); 156 Dart_Handle library = Dart_LookupLibrary(url);
157 if (Dart_IsError(library)) { 157 if (Dart_IsError(library)) {
158 library = LoadLibrary(url, id); 158 library = LoadLibrary(url, id);
159 } 159 }
160 return library; 160 return library;
161 } 161 }
162 162
163 } // namespace bin 163 } // namespace bin
164 } // namespace dart 164 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/observatory/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698