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