mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
keep old location of libraries.dart in the generated SDK (fixes 23755)
R=kevmoo@google.com Review URL: https://codereview.chromium.org//1216313002.
This commit is contained in:
parent
cf790b0829
commit
4ec3db6947
|
@ -4,7 +4,7 @@ author: Dart Team <misc@dartlang.org>
|
|||
description: Static analyzer for Dart.
|
||||
homepage: http://www.dartlang.org
|
||||
environment:
|
||||
sdk: '>=1.8.0 <2.0.0'
|
||||
sdk: '>=1.12.0-dev.1.0 <2.0.0'
|
||||
dependencies:
|
||||
args: '>=0.12.1 <0.14.0'
|
||||
html: ^0.12.0
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
// Copyright (c) 2012, 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.
|
||||
|
||||
/// This file moved under `sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart`.
|
||||
@deprecated
|
||||
library libraries;
|
||||
|
||||
export 'sdk_library_metadata/lib/libraries.dart';
|
|
@ -220,6 +220,17 @@ def Main():
|
|||
ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh',
|
||||
'.gitignore'))
|
||||
|
||||
# Copy libraries.dart to lib/_internal/libraries.dart for backwards
|
||||
# compatibility.
|
||||
#
|
||||
# TODO(sigmund): stop copying libraries.dart. Old versions (<=0.25.1-alpha.4)
|
||||
# of the analyzer package do not support the new location of this file. We
|
||||
# should be able to remove the old file once we release a newer version of
|
||||
# analyzer and popular frameworks have migrated to use it.
|
||||
copyfile(join(HOME, 'sdk', 'lib', '_internal',
|
||||
'sdk_library_metadata', 'lib', 'libraries.dart'),
|
||||
join(LIB, '_internal', 'libraries.dart'))
|
||||
|
||||
# Create and copy tools.
|
||||
UTIL = join(SDK_tmp, 'util')
|
||||
os.makedirs(UTIL)
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
'action_name': 'generate_dartanalyzer_snapshot',
|
||||
'inputs': [
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
||||
'../../sdk/lib/_internal/libraries.dart',
|
||||
'../../sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/packages.stamp',
|
||||
'<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../third_party/pkg/analyzer_cli"])',
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue