mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
![Florian Schneider](/assets/img/avatar_default.png)
This allows gen_snapshot and dart_bootstrap to run without having a full SDK snapshot around. The generated cc file looks like: static const char source_array_1[] = { '\x2f', '\x2f', '\x20', '\x43', '\x6f', ... }; static const char source_array_2[] = { '\x2f', '\x2f', '\x20', '\x43', '\x6f', ... }; ... const char* dart::Bootstrap::core_source_paths_[] = { "dart:core", "/path/to/sdk/lib/core/core.dart", source_array_1, "annotations.dart", "/path/to/sdk/lib/core/annotations.dart", source_array_2, ... R=asiva@google.com Review-Url: https://codereview.chromium.org/2668353004 .
17 lines
526 B
C++
17 lines
526 B
C++
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// clang-format off
|
|
|
|
#include "{{INCLUDE}}" // NOLINT
|
|
|
|
// This file is used to generate the mapping of libraries which have
|
|
// dart:<name> handles to the corresponding files that implement them.
|
|
{{SOURCE_ARRAYS}}
|
|
const char* {{VAR_NAME}}[] = {
|
|
{{LIBRARY_SOURCE_MAP}}
|
|
{{PART_SOURCE_MAP}}
|
|
NULL, NULL, NULL
|
|
};
|