2013-05-03 22:50:26 +00:00
|
|
|
// 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.
|
|
|
|
|
2016-11-04 19:14:41 +00:00
|
|
|
// clang-format off
|
|
|
|
|
2013-05-03 22:50:26 +00:00
|
|
|
#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.
|
Windows: Link library sources into gen_snapshot/dart_bootstrap
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 .
2017-02-01 23:55:59 +00:00
|
|
|
{{SOURCE_ARRAYS}}
|
2013-05-03 22:50:26 +00:00
|
|
|
const char* {{VAR_NAME}}[] = {
|
|
|
|
{{LIBRARY_SOURCE_MAP}}
|
|
|
|
{{PART_SOURCE_MAP}}
|
2023-03-30 19:28:28 +00:00
|
|
|
nullptr, nullptr, nullptr
|
2013-05-03 22:50:26 +00:00
|
|
|
};
|