From 0695b1db3aeeb67e98c5798c5446864f44fccfac Mon Sep 17 00:00:00 2001 From: William Hesse Date: Tue, 20 Sep 2016 13:32:50 +0200 Subject: [PATCH] Remove package root target and support scripts BUG=https://github.com/dart-lang/sdk/issues/23565 R=kustermann@google.com Review URL: https://codereview.chromium.org/2346163005 . --- dart.gyp | 12 -- pkg/BUILD.gn | 35 ----- pkg/pkg.gyp | 45 ------ runtime/bin/BUILD.gn | 1 - tools/bots/run_android_tests.sh | 2 - tools/dartium/build.py | 1 - tools/list_pkg_directories.py | 39 ------ tools/make_links.py | 161 ---------------------- utils/analysis_server/analysis_server.gyp | 1 - utils/compiler/compiler.gyp | 1 - utils/dartanalyzer/dartanalyzer.gyp | 3 - utils/dartdevc/dartdevc.gyp | 1 - utils/dartdoc/dartdoc.gyp | 1 - utils/dartfmt/dartfmt.gyp | 1 - utils/pub/pub.gyp | 1 - 15 files changed, 305 deletions(-) delete mode 100644 pkg/BUILD.gn delete mode 100644 pkg/pkg.gyp delete mode 100755 tools/list_pkg_directories.py delete mode 100755 tools/make_links.py diff --git a/dart.gyp b/dart.gyp index f3e6e8206ad..c24fbc7ca6f 100644 --- a/dart.gyp +++ b/dart.gyp @@ -13,7 +13,6 @@ 'dart2js', 'dartanalyzer', 'dartdevc', - 'packages', 'runtime', 'samples', ], @@ -29,7 +28,6 @@ 'runtime/dart-runtime.gyp:dart_bootstrap#host', 'runtime/dart-runtime.gyp:run_vm_tests', 'runtime/dart-runtime.gyp:process_test', - 'packages', 'runtime/dart-runtime.gyp:test_extension', 'runtime/dart-runtime.gyp:sample_extension', ], @@ -43,7 +41,6 @@ 'dependencies': [ 'runtime/dart-runtime.gyp:dart_precompiled_runtime', 'runtime/dart-runtime.gyp:dart_bootstrap#host', - 'packages', ], }, { @@ -58,7 +55,6 @@ 'runtime/dart-runtime.gyp:dart_bootstrap#host', 'runtime/dart-runtime.gyp:run_vm_tests', 'runtime/dart-runtime.gyp:process_test', - 'packages', 'runtime/dart-runtime.gyp:test_extension', 'runtime/dart-runtime.gyp:sample_extension', ], @@ -113,7 +109,6 @@ 'type': 'none', 'dependencies': [ 'create_sdk', - 'packages', ], }, { @@ -129,12 +124,5 @@ ], ] }, - { - 'target_name': 'packages', - 'type': 'none', - 'dependencies': [ - 'pkg/pkg.gyp:pkg_packages', - ], - }, ], } diff --git a/pkg/BUILD.gn b/pkg/BUILD.gn deleted file mode 100644 index 7df856e9e78..00000000000 --- a/pkg/BUILD.gn +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) 2016, 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. - -action("pkg") { - # TODO(zra): Add third_party/pkg, third_party/pkg_tested, and - # third_party/observatory_pub_packages/packages/charted/lib. - list_script = "../tools/list_pkg_directories.py" - pkg_list = exec_script(list_script, [rebase_path(".")], "list lines") - runtime_list = exec_script( - list_script, [rebase_path("../runtime")], "list lines") - - inputs = pkg_list + - runtime_list + - [rebase_path("../sdk/lib/_internal/js_runtime/lib"), - rebase_path("../sdk/lib/_internal/sdk_library_metadata/lib"),] - - timestamp_file = "$target_gen_dir/packages.stamp" - outputs = [ - timestamp_file, - "$root_out_dir/.packages", - ] - - script = "../tools/make_links.py" - args = [ - "--create-links", - "--create-package-file", - "--quiet", - "--timestamp_file", - rebase_path(timestamp_file), - ] + inputs + - # Pub imports dart2js as compiler_unsupported so it can work outside - # the SDK. Map that to the compiler package. - [rebase_path("compiler/lib") + ":compiler_unsupported",] -} diff --git a/pkg/pkg.gyp b/pkg/pkg.gyp deleted file mode 100644 index 7a7ae9a4fa7..00000000000 --- a/pkg/pkg.gyp +++ /dev/null @@ -1,45 +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. - -{ - 'targets': [ - { - 'target_name': 'pkg_packages', - 'type': 'none', - 'actions': [ - { - 'action_name': 'make_pkg_packages', - 'inputs': [ - '../tools/make_links.py', - '