b55717e38c
R=kustermann@google.com Review URL: https://codereview.chromium.org//68483002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30144 260f80e4-7a28-3924-810f-c04153c831b5
45 lines
1.6 KiB
Python
45 lines
1.6 KiB
Python
# 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.
|
|
|
|
{
|
|
'variables': {
|
|
'dart_dir': '../..',
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'dart2js',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'../../runtime/dart-runtime.gyp:dart',
|
|
'../../pkg/pkg.gyp:pkg_packages',
|
|
],
|
|
'actions': [
|
|
{
|
|
'action_name': 'generate_snapshots',
|
|
'inputs': [
|
|
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
|
'../../sdk/lib/_internal/libraries.dart',
|
|
'<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/lib/_internal/compiler", "../../runtime/lib", "../../sdk/lib/_internal/dartdoc"])',
|
|
'create_snapshot.dart',
|
|
'<(SHARED_INTERMEDIATE_DIR)/packages.stamp',
|
|
'../../tools/VERSION',
|
|
],
|
|
'outputs': [
|
|
'<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot',
|
|
'<(SHARED_INTERMEDIATE_DIR)/dart2js.dart.snapshot',
|
|
],
|
|
'action': [
|
|
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
|
'create_snapshot.dart',
|
|
'--output_dir=<(SHARED_INTERMEDIATE_DIR)',
|
|
'--dart2js_main=sdk/lib/_internal/compiler/implementation/dart2js.dart',
|
|
'--dartdoc_main=sdk/lib/_internal/dartdoc/bin/dartdoc.dart',
|
|
'--package_root=<(PRODUCT_DIR)/packages/',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|