mirror of
https://github.com/dart-lang/sdk
synced 2024-09-20 01:38:14 +00:00
e2ac3741e9
Review URL: https://chromiumcodereview.appspot.com//10533124 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8603 260f80e4-7a28-3924-810f-c04153c831b5
119 lines
3.1 KiB
Python
119 lines
3.1 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.
|
|
|
|
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'compiler',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'compiler/dart-compiler.gyp:dart_analyzer',
|
|
],
|
|
'actions': []
|
|
},
|
|
{
|
|
'target_name': 'runtime',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'runtime/dart-runtime.gyp:dart',
|
|
'runtime/dart-runtime.gyp:run_vm_tests',
|
|
'runtime/dart-runtime.gyp:process_test',
|
|
'runtime/dart-runtime.gyp:test_extension',
|
|
],
|
|
},
|
|
{
|
|
# Build the SDK. This target is separate from upload_sdk as the
|
|
# editor needs to build the SDK without uploading it.
|
|
'target_name': 'create_sdk',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'runtime/dart-runtime.gyp:dart',
|
|
'dart2js',
|
|
],
|
|
'actions': [
|
|
{
|
|
'action_name': 'create_sdk_py',
|
|
'inputs': [
|
|
'<!@(["python", "tools/list_files.py", "\\.dart$", "lib"])',
|
|
'frog/scripts/bootstrap/frogc',
|
|
'tools/create_sdk.py',
|
|
'<(PRODUCT_DIR)/frog/bin/frog',
|
|
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
|
'<(PRODUCT_DIR)/dart2js',
|
|
'<(PRODUCT_DIR)/dart2js.bat',
|
|
],
|
|
'outputs': [
|
|
'<(PRODUCT_DIR)/dart-sdk/create.stamp',
|
|
],
|
|
'action': [
|
|
'python',
|
|
'tools/create_sdk.py',
|
|
'<(PRODUCT_DIR)/dart-sdk',
|
|
],
|
|
'message': 'Creating SDK.',
|
|
'conditions' : [
|
|
['OS=="linux"', {
|
|
'inputs' : [
|
|
'<(PRODUCT_DIR)/analyzer/bin/dart_analyzer'
|
|
],
|
|
}],
|
|
],
|
|
},
|
|
],
|
|
'conditions' : [
|
|
['OS=="linux"', {
|
|
'dependencies': [
|
|
'compiler',
|
|
],
|
|
}],
|
|
],
|
|
},
|
|
{
|
|
# Upload the SDK. This target is separate from create_sdk as the
|
|
# editor needs to build the SDK without uploading it.
|
|
'target_name': 'upload_sdk',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'create_sdk',
|
|
],
|
|
'actions': [
|
|
{
|
|
'action_name': 'upload_sdk_py',
|
|
'inputs': [
|
|
'<(PRODUCT_DIR)/dart-sdk/create.stamp',
|
|
'tools/upload_sdk.py',
|
|
],
|
|
'outputs': [
|
|
'<(PRODUCT_DIR)/dart-sdk/upload.stamp',
|
|
],
|
|
'action': [
|
|
'python',
|
|
'tools/upload_sdk.py',
|
|
'<(PRODUCT_DIR)/dart-sdk'
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'dart2js',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'utils/compiler/compiler.gyp:dart2js',
|
|
|
|
# TODO(ahe): Remove dependency on frog, it is just here to
|
|
# simplify frog/scripts/buildbot_annotated_steps.py
|
|
# temporarily.
|
|
'frog/dart-frog.gyp:frog',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'api_docs',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'utils/apidoc/apidoc.gyp:api_docs',
|
|
],
|
|
}
|
|
],
|
|
}
|