Files
sdk/utils/compiler/compiler.gyp
T
ricow@google.com 5080e18fc4 Create targets for dart2js files, pub files, pkg files.
We are seeing issues on mac 10.7 where the list of inputPaths in xcode files becomes to long (this is also dependent depth of your build directory).
The build silently fails without giving any error.

BUG:18333

Also see:
http://build.chromium.org/p/client.dart/builders/dart2js-safari-mac10.7-1-3-be/builds/4640/steps/Build%20SDK/logs/stdio

R=ahe@google.com

Review URL: https://codereview.chromium.org//247073003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35255 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-22 11:34:13 +00:00

72 lines
2.4 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',
'dart2js_files_stamp',
],
'actions': [
{
'action_name': 'generate_snapshots',
'inputs': [
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
'../../sdk/lib/_internal/libraries.dart',
'<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../runtime/lib", "../../sdk/lib/_internal/dartdoc"])',
'create_snapshot.dart',
'<(SHARED_INTERMEDIATE_DIR)/dart2js_files.stamp',
'<(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',
'--docgen_main=pkg/docgen/bin/docgen.dart',
'--package_root=<(PRODUCT_DIR)/packages/',
],
},
],
},
# Other targets depend on dart2js files, but have to many inputs,
# which causes issues on some platforms.
# This target lists all the files in sdk/lib/_internal/compiler,
# and creates a single dart2js_files.stamp
{
'target_name': 'dart2js_files_stamp',
'type': 'none',
'actions': [
{
'action_name': 'make_dart2js_files_stamp',
'inputs': [
'../../tools/create_timestamp_file.py',
'<!@(["python", "../../tools/list_files.py", "\\.dart$",'
' "../../sdk/lib/_internal/compiler"])',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/dart2js_files.stamp',
],
'action': [
'python', '../../tools/create_timestamp_file.py',
'<@(_outputs)',
],
},
],
}
],
}