mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
Build bits to add an analysis_server snapshot to the SDK.
NOTE: as per a conversation with Kasper, this does NOT add any executables to the "bin" dir. In this state the expectation is that the snapshot will be invoked directly via bin/dart. R=kustermann@google.com, ricow@google.com Review URL: https://codereview.chromium.org//368993002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39391 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
549f9d467c
commit
f187318978
5 changed files with 53 additions and 2 deletions
|
@ -13,6 +13,7 @@
|
|||
'utils/pub/pub.gyp:pub',
|
||||
'utils/pub/pub.gyp:core_stubs',
|
||||
'utils/dartfmt/dartfmt.gyp:dartfmt',
|
||||
'utils/analysis_server/analysis_server.gyp:analysis_server',
|
||||
'utils/dartanalyzer/dartanalyzer.gyp:dartanalyzer',
|
||||
],
|
||||
'actions': [
|
||||
|
@ -31,6 +32,7 @@
|
|||
'<(SHARED_INTERMEDIATE_DIR)/dartanalyzer.dart.snapshot',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/dartfmt.dart.snapshot',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/core_stubs/dart_io.dart',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/analysis_server.dart.snapshot',
|
||||
'tools/VERSION'
|
||||
],
|
||||
'outputs': [
|
||||
|
|
8
dart.gyp
8
dart.gyp
|
@ -8,6 +8,7 @@
|
|||
'target_name': 'most',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'analysis_server',
|
||||
'analyzer_java',
|
||||
'create_sdk',
|
||||
'dart2js',
|
||||
|
@ -69,6 +70,13 @@
|
|||
'utils/dartfmt/dartfmt.gyp:dartfmt',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'analysis_server',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'utils/analysis_server/analysis_server.gyp:analysis_server',
|
||||
],
|
||||
},
|
||||
{
|
||||
# This is the target that is built on the dart2dart bots.
|
||||
# It must depend on anything that is required by dart2dart
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
# ......dartanalyzer
|
||||
# ......pub
|
||||
# ......snapshots/
|
||||
# ........analysis_server.dart.snapshot
|
||||
# ........dart2js.dart.snapshot
|
||||
# ........dartanalyzer.dart.snapshot
|
||||
# ........dartfmt.dart.snapshot
|
||||
|
@ -112,8 +113,8 @@ def CopyDartScripts(home, sdk_root):
|
|||
|
||||
|
||||
def CopySnapshots(snapshots, sdk_root):
|
||||
for snapshot in ['dart2js', 'dartanalyzer', 'dartfmt', 'utils_wrapper',
|
||||
'pub']:
|
||||
for snapshot in ['analysis_server', 'dart2js', 'dartanalyzer', 'dartfmt',
|
||||
'utils_wrapper', 'pub']:
|
||||
snapshot += '.dart.snapshot'
|
||||
copyfile(join(snapshots, snapshot),
|
||||
join(sdk_root, 'bin', 'snapshots', snapshot))
|
||||
|
|
3
utils/analysis_server/.gitignore
vendored
Normal file
3
utils/analysis_server/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
/analysis_server.Makefile
|
||||
/analysis_server.target.mk
|
||||
|
37
utils/analysis_server/analysis_server.gyp
Normal file
37
utils/analysis_server/analysis_server.gyp
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Copyright (c) 2014, 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': 'analysis_server',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'../../runtime/dart-runtime.gyp:dart',
|
||||
'../../pkg/pkg.gyp:pkg_packages',
|
||||
'../../pkg/pkg_files.gyp:pkg_files_stamp'
|
||||
],
|
||||
'actions': [
|
||||
{
|
||||
'action_name': 'generate_analysis_server_snapshot',
|
||||
'inputs': [
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
||||
'../../sdk/lib/_internal/libraries.dart',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/packages.stamp',
|
||||
'<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp',
|
||||
],
|
||||
'outputs': [
|
||||
'<(SHARED_INTERMEDIATE_DIR)/analysis_server.dart.snapshot',
|
||||
],
|
||||
'action': [
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
||||
'--snapshot=<(SHARED_INTERMEDIATE_DIR)/analysis_server.dart.snapshot',
|
||||
'--package-root=<(PRODUCT_DIR)/packages/',
|
||||
'../../pkg/analysis_server/bin/server.dart',
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
Loading…
Reference in a new issue