OLD | NEW |
---|---|
1 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2013, 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 { | 7 { |
8 'target_name': 'pub', | 8 'target_name': 'pub', |
9 'type': 'none', | 9 'type': 'none', |
10 'dependencies': [ | 10 'dependencies': [ |
11 '../../runtime/dart-runtime.gyp:dart', | 11 '../../runtime/dart-runtime.gyp:dart', |
12 '../../pkg/pkg.gyp:pkg_packages', | 12 '../../pkg/pkg.gyp:pkg_packages', |
13 '../../pkg/pkg.gyp:pkg_files_stamp', | |
14 '../../utils/compiler/compiler.gyp:dart2js_files_stamp', | |
15 'pub_files_stamp' | |
13 ], | 16 ], |
14 'actions': [ | 17 'actions': [ |
15 { | 18 { |
16 'action_name': 'generate_pub_snapshot', | 19 'action_name': 'generate_pub_snapshot', |
17 'inputs': [ | 20 'inputs': [ |
18 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 21 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
19 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/ lib/_internal/pub"])', | |
20 '../../sdk/lib/_internal/libraries.dart', | 22 '../../sdk/lib/_internal/libraries.dart', |
21 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/ lib/_internal/compiler"])', | 23 '<(SHARED_INTERMEDIATE_DIR)/pub_files.stamp', |
22 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../pkg" ])', | 24 '<(SHARED_INTERMEDIATE_DIR)/dart2js_files.stamp', |
25 '<(SHARED_INTERMEDIATE_DIR)/pgk_files.stamp', | |
ahe
2014/04/22 11:28:46
pgk -> pkg.
| |
23 ], | 26 ], |
24 'outputs': [ | 27 'outputs': [ |
25 '<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot', | 28 '<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot', |
26 ], | 29 ], |
27 'action': [ | 30 'action': [ |
28 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 31 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
29 '--package-root=<(PRODUCT_DIR)/packages/', | 32 '--package-root=<(PRODUCT_DIR)/packages/', |
30 '--snapshot=<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot', | 33 '--snapshot=<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot', |
31 '../../sdk/lib/_internal/pub/bin/pub.dart', | 34 '../../sdk/lib/_internal/pub/bin/pub.dart', |
32 ], | 35 ], |
33 }, | 36 }, |
34 ], | 37 ], |
35 }, | 38 }, |
39 # Other targets depend on pub files, but have to many inputs, which causes | |
40 # issues on some platforms. | |
41 # This target lists all the files in sdk/lib/_internal/pub, | |
42 # and creates a single pub_files.stamp | |
43 { | |
44 'target_name': 'pub_files_stamp', | |
45 'type': 'none', | |
46 'actions': [ | |
47 { | |
48 'action_name': 'make_pub_files_stamp', | |
49 'inputs': [ | |
50 '../../tools/create_timestamp_file.py', | |
51 '<!@(["python", "../../tools/list_files.py", "\\.dart$",' | |
52 ' "../../sdk/lib/_internal/pub"])', | |
53 ], | |
54 'outputs': [ | |
55 '<(SHARED_INTERMEDIATE_DIR)/pub_files.stamp', | |
56 ], | |
57 'action': [ | |
58 'python', '../../tools/create_timestamp_file.py', | |
59 '<@(_outputs)', | |
60 ], | |
61 }, | |
62 ], | |
63 } | |
64 | |
65 | |
36 ], | 66 ], |
37 } | 67 } |
OLD | NEW |