Add build_integration package and move multi_root_file_system there.

This is following the design discussion we had a few months ago.

Change-Id: I48b2e82af33d10b9cd1e599e1b3a4e8e419417c8
Reviewed-on: https://dart-review.googlesource.com/56035
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
This commit is contained in:
Sigmund Cherem 2018-05-22 20:09:24 +00:00 committed by commit-bot@chromium.org
parent ba0da68563
commit 8c0f5747a0
10 changed files with 20 additions and 10 deletions

View file

@ -17,6 +17,7 @@ async_helper:pkg/async_helper/lib
barback:third_party/pkg/barback/lib
bazel_worker:third_party/pkg/bazel_worker/lib
boolean_selector:third_party/pkg/boolean_selector/lib
build_integration:pkg/build_integration/lib
charcode:third_party/pkg/charcode/lib
charted:third_party/observatory_pub_packages/packages/charted/lib
cli_util:third_party/pkg/cli_util/lib

View file

@ -0,0 +1,4 @@
## Package build\_integration
This package contains libraries for integrating Dart tools with build systems
like bazel and build\_runner.

View file

@ -2,9 +2,6 @@
// 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.
/// A file system that implements [CopilerOptions.multiRoots].
library front_end.src.multi_roots_file_system;
import 'dart:async';
import 'package:front_end/src/api_prototype/file_system.dart';

View file

@ -0,0 +1,9 @@
name: build_integration
version: 0.0.1
author: Dart Team <misc@dartlang.org>
description: >
Libraries for integrating Dart tools with build systems like bazel
and build_runner.
homepage: https://github.com/dart-lang/sdk/tree/master/pkg/build_integration
dependencies:
front_end: ^0.1.0

View file

@ -6,8 +6,8 @@ library front_end.test.src.multi_root_file_system.dart;
import 'dart:async';
import 'package:build_integration/file_system/multi_root.dart';
import 'package:front_end/src/api_prototype/memory_file_system.dart';
import 'package:front_end/src/multi_root_file_system.dart';
import 'package:test/test.dart';

View file

@ -7,9 +7,9 @@ import 'dart:convert' show json;
import 'dart:io';
import 'package:args/args.dart';
import 'package:build_integration/file_system/multi_root.dart';
import 'package:front_end/src/api_prototype/standard_file_system.dart';
import 'package:front_end/src/api_unstable/ddc.dart' as fe;
import 'package:front_end/src/multi_root_file_system.dart';
import 'package:kernel/kernel.dart';
import 'package:path/path.dart' as path;
import 'package:source_maps/source_maps.dart';

View file

@ -63,6 +63,7 @@ analysis_server/test/integration: SkipByDesign # Analysis server integration tes
analyzer_cli/test/*: SkipByDesign # Only meant to run on vm
analyzer_plugin/test/*: SkipByDesign # Only meant to run on vm
analyzer_plugin/tool/*: SkipByDesign # Only meant to run on vm
build_integration/test/*: SkipByDesign # Only meant to run on vm, most use dart:mirrors and dart:io
collection/test/equality_test/01: Fail # Issue 1533
collection/test/equality_test/02: Fail # Issue 1533
collection/test/equality_test/03: Fail # Issue 1533

View file

@ -9,6 +9,7 @@ import 'dart:convert';
import 'dart:io' hide FileSystemEntity;
import 'package:args/args.dart';
import 'package:build_integration/file_system/multi_root.dart';
// front_end/src imports below that require lint `ignore_for_file`
// are a temporary state of things until frontend team builds better api
// that would replace api used below. This api was made private in
@ -18,11 +19,7 @@ import 'package:front_end/src/api_prototype/compiler_options.dart';
import 'package:front_end/src/api_prototype/file_system.dart'
show FileSystemEntity;
import 'package:front_end/src/api_prototype/front_end.dart';
// Use of multi_root_file_system.dart directly from front_end package is a
// temporarily solution while we are looking for better home for that
// functionality.
import 'package:front_end/src/fasta/kernel/utils.dart';
import 'package:front_end/src/multi_root_file_system.dart';
import 'package:kernel/ast.dart';
import 'package:kernel/binary/ast_to_binary.dart';
import 'package:kernel/binary/limited_ast_to_binary.dart';

View file

@ -6,6 +6,7 @@ homepage: https://github.com/dart-lang/sdk/tree/master/pkg/vm
environment:
sdk: ">=1.8.0 <2.0.0"
dependencies:
build_integration: 0.0.1
front_end: 0.1.0-alpha.6
kernel: 0.3.0-alpha.3
dev_dependencies:

View file

@ -14,8 +14,8 @@ import 'dart:io';
import 'package:args/args.dart';
import 'package:bazel_worker/bazel_worker.dart';
import 'package:build_integration/file_system/multi_root.dart';
import 'package:front_end/src/api_unstable/summary_worker.dart' as fe;
import 'package:front_end/src/multi_root_file_system.dart';
import 'package:kernel/ast.dart' show Component, Library;
import 'package:kernel/target/targets.dart';