| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 # for details. All rights reserved. Use of this source code is governed by a | |
| 3 # BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'dart_dir': '../..', | |
| 8 }, | |
| 9 'targets': [ | |
| 10 { | |
| 11 'target_name': 'dart2js', | |
| 12 'type': 'none', | |
| 13 'dependencies': [ | |
| 14 '../../runtime/dart-runtime.gyp:dart', | |
| 15 'dart2js_files_stamp', | |
| 16 ], | |
| 17 'actions': [ | |
| 18 { | |
| 19 'action_name': 'generate_snapshots', | |
| 20 'inputs': [ | |
| 21 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | |
| 22 '../../sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart', | |
| 23 '<!@(["python", "../../tools/list_files.py", "relative", ' | |
| 24 '"\\.dart$", ' | |
| 25 '"../../runtime/lib", ' | |
| 26 '"../../sdk/lib/_internal/dartdoc"])', | |
| 27 'create_snapshot.dart', | |
| 28 '<(SHARED_INTERMEDIATE_DIR)/dart2js_files.stamp', | |
| 29 '../../tools/VERSION', | |
| 30 ], | |
| 31 'outputs': [ | |
| 32 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', | |
| 33 '<(SHARED_INTERMEDIATE_DIR)/dart2js.dart.snapshot', | |
| 34 ], | |
| 35 'action': [ | |
| 36 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | |
| 37 '--packages=../../.packages', | |
| 38 'create_snapshot.dart', | |
| 39 '--output_dir=<(SHARED_INTERMEDIATE_DIR)', | |
| 40 '--dart2js_main=pkg/compiler/lib/src/dart2js.dart', | |
| 41 ], | |
| 42 }, | |
| 43 ], | |
| 44 }, | |
| 45 # Other targets depend on dart2js files, but have to many inputs, | |
| 46 # which causes issues on some platforms. | |
| 47 # This target lists all the files in pkg/compiler, | |
| 48 # and creates a single dart2js_files.stamp | |
| 49 { | |
| 50 'target_name': 'dart2js_files_stamp', | |
| 51 'type': 'none', | |
| 52 'actions': [ | |
| 53 { | |
| 54 'action_name': 'make_dart2js_files_stamp', | |
| 55 'inputs': [ | |
| 56 '../../tools/create_timestamp_file.py', | |
| 57 '<!@(["python", "../../tools/list_files.py", "relative", ' | |
| 58 '"\\.dart$", ' | |
| 59 ' "../../pkg/compiler/lib"])', | |
| 60 ], | |
| 61 'outputs': [ | |
| 62 '<(SHARED_INTERMEDIATE_DIR)/dart2js_files.stamp', | |
| 63 ], | |
| 64 'action': [ | |
| 65 'python', '../../tools/create_timestamp_file.py', | |
| 66 '<@(_outputs)', | |
| 67 ], | |
| 68 }, | |
| 69 ], | |
| 70 } | |
| 71 ], | |
| 72 } | |
| OLD | NEW |