mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
8b6ceefca8
The acute problem this solves is that hacking on DDC generates a large number of files into its gen/ directory. It's enough files that once you have done that, the SDK no longer builds successfully because it chokes on them all. To fix that, instead of using list_files.py, I made a little list_dart_files.py that is explicitly for Dart files and knows to exclude gen/ and tests. This also avoids needing the sort of hairy regexes to match different sets of files. As far as I can tell, this works, but GYP is pretty mysterious to me, so let me know if I got something wrong or there is a better way to do it. R=whesse@google.com Review URL: https://codereview.chromium.org/2391863002 .
80 lines
2.8 KiB
Python
80 lines
2.8 KiB
Python
# Copyright (c) 2014, 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': [
|
|
# Other targets depend on pkg files, but have too many inputs, which causes
|
|
# issues on some platforms.
|
|
# This target lists all the files in pkg and third_party/pkg,
|
|
# and creates the timestamp pkg_files.stamp, which depends on some
|
|
# intermediate helper timestamps.
|
|
# We split third_party/pkg up into three groups, based on the first letter
|
|
# of the package name.
|
|
{
|
|
'target_name': 'pkg_files_stamp',
|
|
'type': 'none',
|
|
'actions': [
|
|
{
|
|
'action_name': 'make_pkg_files_stamp',
|
|
'inputs': [
|
|
'../tools/create_timestamp_file.py',
|
|
'<!@(["python", "../tools/list_dart_files.py", "."])',
|
|
'<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_a_k.stamp',
|
|
'<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_l_r.stamp',
|
|
'<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_s_z.stamp',
|
|
],
|
|
'outputs': [
|
|
'<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp',
|
|
],
|
|
'action': [
|
|
'python', '../tools/create_timestamp_file.py',
|
|
'<@(_outputs)',
|
|
],
|
|
},
|
|
{
|
|
'action_name': 'make_third_party_pkg_files_a_k_stamp',
|
|
'inputs': [
|
|
'../tools/create_timestamp_file.py',
|
|
'<!@(["python", "../tools/list_dart_files.py", "../third_party/pkg", "[a-k].*"])',
|
|
],
|
|
'outputs': [
|
|
'<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_a_k.stamp',
|
|
],
|
|
'action': [
|
|
'python', '../tools/create_timestamp_file.py',
|
|
'<@(_outputs)',
|
|
],
|
|
},
|
|
{
|
|
'action_name': 'make_third_party_pkg_files_l_r_stamp',
|
|
'inputs': [
|
|
'../tools/create_timestamp_file.py',
|
|
'<!@(["python", "../tools/list_dart_files.py", "../third_party/pkg", "[l-r].*"])',
|
|
],
|
|
'outputs': [
|
|
'<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_l_r.stamp',
|
|
],
|
|
'action': [
|
|
'python', '../tools/create_timestamp_file.py',
|
|
'<@(_outputs)',
|
|
],
|
|
},
|
|
{
|
|
'action_name': 'make_third_party_pkg_files_s_z_stamp',
|
|
'inputs': [
|
|
'../tools/create_timestamp_file.py',
|
|
'<!@(["python", "../tools/list_dart_files.py", "../third_party/pkg", "[s-z].*"])',
|
|
],
|
|
'outputs': [
|
|
'<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_s_z.stamp',
|
|
],
|
|
'action': [
|
|
'python', '../tools/create_timestamp_file.py',
|
|
'<@(_outputs)',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|