Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Side by Side Diff: pkg/pkg_files.gyp

Issue 2391863002: Tweak how the pkg files timestamps are created. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/list_dart_files.py » ('j') | tools/list_dart_files.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 last 12 # We split third_party/pkg up into three groups, based on the first letter
13 # character before .dart at the end of the filename. 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_files.py",' 22 '<!@(["python", "../tools/list_dart_files.py", "."])',
23 '"^(?!.*/test/).*(?<!_test)[.]dart$",' 23 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_a_k.stamp',
24 '"."])', 24 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_l_r.stamp',
25 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_1.stamp', 25 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_s_z.stamp',
26 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_2.stamp',
27 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_3.stamp',
28 ], 26 ],
29 'outputs': [ 27 'outputs': [
30 '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp', 28 '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp',
31 ], 29 ],
32 'action': [ 30 'action': [
33 'python', '../tools/create_timestamp_file.py', 31 'python', '../tools/create_timestamp_file.py',
34 '<@(_outputs)', 32 '<@(_outputs)',
35 ], 33 ],
36 }, 34 },
37 { 35 {
38 'action_name': 'make_third_party_pkg_files_1_stamp', 36 'action_name': 'make_third_party_pkg_files_a_k_stamp',
39 'inputs': [ 37 'inputs': [
40 '../tools/create_timestamp_file.py', 38 '../tools/create_timestamp_file.py',
41 '<!@(["python", "../tools/list_files.py",' 39 '<!@(["python", "../tools/list_dart_files.py", "../third_party/pkg", "[a-k].*"])',
42 '"^(?!.*_test\.dart).*[a-k]\.dart$",'
43 '"../third_party/pkg"])',
44 ], 40 ],
45 'outputs': [ 41 'outputs': [
46 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_1.stamp', 42 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_a_k.stamp',
47 ], 43 ],
48 'action': [ 44 'action': [
49 'python', '../tools/create_timestamp_file.py', 45 'python', '../tools/create_timestamp_file.py',
50 '<@(_outputs)', 46 '<@(_outputs)',
51 ], 47 ],
52 }, 48 },
53 { 49 {
54 'action_name': 'make_third_party_pkg_files_2_stamp', 50 'action_name': 'make_third_party_pkg_files_l_r_stamp',
55 'inputs': [ 51 'inputs': [
56 '../tools/create_timestamp_file.py', 52 '../tools/create_timestamp_file.py',
57 '<!@(["python", "../tools/list_files.py",' 53 '<!@(["python", "../tools/list_dart_files.py", "../third_party/pkg", "[l-r].*"])',
58 '"^(?!.*_test\.dart).*[l-r]\.dart$",'
59 '"../third_party/pkg"])',
60 ], 54 ],
61 'outputs': [ 55 'outputs': [
62 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_2.stamp', 56 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_l_r.stamp',
63 ], 57 ],
64 'action': [ 58 'action': [
65 'python', '../tools/create_timestamp_file.py', 59 'python', '../tools/create_timestamp_file.py',
66 '<@(_outputs)', 60 '<@(_outputs)',
67 ], 61 ],
68 }, 62 },
69 { 63 {
70 'action_name': 'make_third_party_pkg_files_3_stamp', 64 'action_name': 'make_third_party_pkg_files_s_z_stamp',
71 'inputs': [ 65 'inputs': [
72 '../tools/create_timestamp_file.py', 66 '../tools/create_timestamp_file.py',
73 '<!@(["python", "../tools/list_files.py",' 67 '<!@(["python", "../tools/list_dart_files.py", "../third_party/pkg", "[s-z].*"])',
74 '"^(?!.*_test\.dart).*[^a-r]\.dart$",'
75 '"../third_party/pkg"])',
76 ], 68 ],
77 'outputs': [ 69 'outputs': [
78 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_3.stamp', 70 '<(SHARED_INTERMEDIATE_DIR)/third_party_pkg_files_s_z.stamp',
79 ], 71 ],
80 'action': [ 72 'action': [
81 'python', '../tools/create_timestamp_file.py', 73 'python', '../tools/create_timestamp_file.py',
82 '<@(_outputs)', 74 '<@(_outputs)',
83 ], 75 ],
84 }, 76 },
85 ], 77 ],
86 }, 78 },
87 ], 79 ],
88 } 80 }
OLDNEW
« no previous file with comments | « no previous file | tools/list_dart_files.py » ('j') | tools/list_dart_files.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698