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 too many inputs, which causes | 7 # Other targets depend on pkg files, but have too 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 the timestamp pkg_files.stamp, which depends on some | 10 # and creates the timestamp pkg_files.stamp, which depends on some |
11 # intermediate helper timestamps. | 11 # intermediate helper timestamps. |
12 # We split third_party/pkg up into three groups, based on the first letter | 12 # We split third_party/pkg up into three groups, based on the first letter |
13 # of the package name. | 13 # of the package name. |
14 { | 14 { |
15 'target_name': 'pkg_files_stamp', | 15 'target_name': 'pkg_files_stamp', |
16 'type': 'none', | 16 'type': 'none', |
17 'actions': [ | 17 'actions': [ |
18 { | 18 { |
19 'action_name': 'make_pkg_files_stamp', | 19 'action_name': 'make_pkg_files_stamp', |
20 'inputs': [ | 20 'inputs': [ |
21 '../tools/create_timestamp_file.py', | 21 '../tools/create_timestamp_file.py', |
22 '<!@(["python", "../tools/list_dart_files.py", "."])', | 22 '<!@(["python", "../tools/list_dart_files.py", "relative", "."])', |
23 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_a_k.stamp', | 23 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_a_k.stamp', |
24 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_l_r.stamp', | 24 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_l_r.stamp', |
25 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_s_z.stamp', | 25 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_s_z.stamp', |
26 ], | 26 ], |
27 'outputs': [ | 27 'outputs': [ |
28 '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp', | 28 '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp', |
29 ], | 29 ], |
30 'action': [ | 30 'action': [ |
31 'python', '../tools/create_timestamp_file.py', | 31 'python', '../tools/create_timestamp_file.py', |
32 '<@(_outputs)', | 32 '<@(_outputs)', |
33 ], | 33 ], |
34 }, | 34 }, |
35 { | 35 { |
36 'action_name': 'make_third_party_pkg_files_a_k_stamp', | 36 'action_name': 'make_third_party_pkg_files_a_k_stamp', |
37 'inputs': [ | 37 'inputs': [ |
38 '../tools/create_timestamp_file.py', | 38 '../tools/create_timestamp_file.py', |
39 '<!@(["python", "../tools/list_dart_files.py", "../third_party/pkg",
"[a-k].*"])', | 39 '<!@(["python", "../tools/list_dart_files.py", "relative", ' |
| 40 '"../third_party/pkg", "[a-k].*"])', |
40 ], | 41 ], |
41 'outputs': [ | 42 'outputs': [ |
42 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_a_k.stamp', | 43 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_a_k.stamp', |
43 ], | 44 ], |
44 'action': [ | 45 'action': [ |
45 'python', '../tools/create_timestamp_file.py', | 46 'python', '../tools/create_timestamp_file.py', |
46 '<@(_outputs)', | 47 '<@(_outputs)', |
47 ], | 48 ], |
48 }, | 49 }, |
49 { | 50 { |
50 'action_name': 'make_third_party_pkg_files_l_r_stamp', | 51 'action_name': 'make_third_party_pkg_files_l_r_stamp', |
51 'inputs': [ | 52 'inputs': [ |
52 '../tools/create_timestamp_file.py', | 53 '../tools/create_timestamp_file.py', |
53 '<!@(["python", "../tools/list_dart_files.py", "../third_party/pkg",
"[l-r].*"])', | 54 '<!@(["python", "../tools/list_dart_files.py", "relative", ' |
| 55 '"../third_party/pkg", "[l-r].*"])', |
54 ], | 56 ], |
55 'outputs': [ | 57 'outputs': [ |
56 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_l_r.stamp', | 58 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_l_r.stamp', |
57 ], | 59 ], |
58 'action': [ | 60 'action': [ |
59 'python', '../tools/create_timestamp_file.py', | 61 'python', '../tools/create_timestamp_file.py', |
60 '<@(_outputs)', | 62 '<@(_outputs)', |
61 ], | 63 ], |
62 }, | 64 }, |
63 { | 65 { |
64 'action_name': 'make_third_party_pkg_files_s_z_stamp', | 66 'action_name': 'make_third_party_pkg_files_s_z_stamp', |
65 'inputs': [ | 67 'inputs': [ |
66 '../tools/create_timestamp_file.py', | 68 '../tools/create_timestamp_file.py', |
67 '<!@(["python", "../tools/list_dart_files.py", "../third_party/pkg",
"[s-z].*"])', | 69 '<!@(["python", "../tools/list_dart_files.py", "relative", ' |
| 70 '"../third_party/pkg", "[s-z].*"])', |
68 ], | 71 ], |
69 'outputs': [ | 72 'outputs': [ |
70 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_s_z.stamp', | 73 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_s_z.stamp', |
71 ], | 74 ], |
72 'action': [ | 75 'action': [ |
73 'python', '../tools/create_timestamp_file.py', | 76 'python', '../tools/create_timestamp_file.py', |
74 '<@(_outputs)', | 77 '<@(_outputs)', |
75 ], | 78 ], |
76 }, | 79 }, |
77 ], | 80 ], |
78 }, | 81 }, |
79 ], | 82 ], |
80 } | 83 } |
OLD | NEW |