| OLD | NEW |
| 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 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. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 # Other targets depend on pkg files, but have to many inputs, which causes | 7 # Other targets depend on pkg files, but have to many inputs, which causes |
| 8 # issues on some platforms. | 8 # issues on some platforms. |
| 9 # This target lists all the files in pkg and third_party/pkg, | 9 # This target lists all the files in pkg and third_party/pkg, |
| 10 # and creates a single pkg_files.stamp | 10 # and creates a single pkg_files.stamp |
| 11 { | 11 { |
| 12 'target_name': 'pkg_files_stamp', | 12 'target_name': 'pkg_files_stamp', |
| 13 'type': 'none', | 13 'type': 'none', |
| 14 'actions': [ | 14 'actions': [ |
| 15 { | 15 { |
| 16 'action_name': 'make_pkg_files_stamp', | 16 'action_name': 'make_pkg_files_stamp', |
| 17 'inputs': [ | 17 'inputs': [ |
| 18 '../tools/create_timestamp_file.py', | 18 '../tools/create_timestamp_file.py', |
| 19 '<!@(["python", "../tools/list_files.py", "\\.dart$", "."])', | 19 '<!@(["python", "../tools/list_files.py",' |
| 20 '"^(?!.*/test/).*(?<!_test)[.]dart$",' |
| 21 '"."])', |
| 20 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files.stamp', | 22 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files.stamp', |
| 21 ], | 23 ], |
| 22 'outputs': [ | 24 'outputs': [ |
| 23 '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp', | 25 '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp', |
| 24 ], | 26 ], |
| 25 'action': [ | 27 'action': [ |
| 26 'python', '../tools/create_timestamp_file.py', | 28 'python', '../tools/create_timestamp_file.py', |
| 27 '<@(_outputs)', | 29 '<@(_outputs)', |
| 28 ], | 30 ], |
| 29 }, | 31 }, |
| 30 { | 32 { |
| 31 'action_name': 'make_third_party_pkg_files_stamp', | 33 'action_name': 'make_third_party_pkg_files_stamp', |
| 32 'inputs': [ | 34 'inputs': [ |
| 33 '../tools/create_timestamp_file.py', | 35 '../tools/create_timestamp_file.py', |
| 34 '<!@(["python", "../tools/list_files.py",' | 36 '<!@(["python", "../tools/list_files.py",' |
| 35 '"^(?!.*_test.dart).*dart$",' | 37 '"^(?!.*/test/).*(?<!_test)[.]dart$",' |
| 36 '"../third_party/pkg"])', | 38 '"../third_party/pkg"])', |
| 37 ], | 39 ], |
| 38 'outputs': [ | 40 'outputs': [ |
| 39 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files.stamp', | 41 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files.stamp', |
| 40 ], | 42 ], |
| 41 'action': [ | 43 'action': [ |
| 42 'python', '../tools/create_timestamp_file.py', | 44 'python', '../tools/create_timestamp_file.py', |
| 43 '<@(_outputs)', | 45 '<@(_outputs)', |
| 44 ], | 46 ], |
| 45 }, | 47 }, |
| 46 ], | 48 ], |
| 47 }, | 49 }, |
| 48 ], | 50 ], |
| 49 } | 51 } |
| OLD | NEW |