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': [ |
(...skipping 18 matching lines...) Expand all Loading... |
29 ], | 29 ], |
30 'action': [ | 30 'action': [ |
31 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 31 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
32 '--package-root=<(PRODUCT_DIR)/pub_packages/', | 32 '--package-root=<(PRODUCT_DIR)/pub_packages/', |
33 '--snapshot=<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot', | 33 '--snapshot=<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot', |
34 '../../sdk/lib/_internal/pub/bin/pub.dart', | 34 '../../sdk/lib/_internal/pub/bin/pub.dart', |
35 ], | 35 ], |
36 }, | 36 }, |
37 ], | 37 ], |
38 }, | 38 }, |
| 39 { |
| 40 'target_name': 'core_stubs', |
| 41 'type': 'none', |
| 42 'dependencies': [ |
| 43 '../../runtime/dart-runtime.gyp:dart', |
| 44 '../../pkg/pkg.gyp:pkg_packages', |
| 45 '../../pkg/pkg_files.gyp:pkg_files_stamp' |
| 46 ], |
| 47 'actions': [ |
| 48 { |
| 49 'action_name': 'generate_core_stubs', |
| 50 'inputs': [ |
| 51 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
| 52 '../../sdk/lib/_internal/libraries.dart', |
| 53 '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp', |
| 54 ], |
| 55 'outputs': [ |
| 56 '<(SHARED_INTERMEDIATE_DIR)/core_stubs/dart_io.dart', |
| 57 ], |
| 58 'action': [ |
| 59 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
| 60 '--package-root=<(PRODUCT_DIR)/packages/', |
| 61 '../../pkg/stub_core_library/bin/stub_core_library.dart', |
| 62 '<(SHARED_INTERMEDIATE_DIR)/core_stubs', |
| 63 ], |
| 64 } |
| 65 ] |
| 66 }, |
39 # Other targets depend on pub files, but have to many inputs, which causes | 67 # Other targets depend on pub files, but have to many inputs, which causes |
40 # issues on some platforms. | 68 # issues on some platforms. |
41 # This target lists all the files in sdk/lib/_internal/pub, | 69 # This target lists all the files in sdk/lib/_internal/pub, |
42 # and creates a single pub_files.stamp | 70 # and creates a single pub_files.stamp |
43 { | 71 { |
44 'target_name': 'pub_files_stamp', | 72 'target_name': 'pub_files_stamp', |
45 'type': 'none', | 73 'type': 'none', |
46 'actions': [ | 74 'actions': [ |
47 { | 75 { |
48 'action_name': 'make_pub_files_stamp', | 76 'action_name': 'make_pub_files_stamp', |
49 'inputs': [ | 77 'inputs': [ |
50 '../../tools/create_timestamp_file.py', | 78 '../../tools/create_timestamp_file.py', |
51 '<!@(["python", "../../tools/list_files.py", "\\.dart$",' | 79 '<!@(["python", "../../tools/list_files.py", "\\.dart$",' |
52 ' "../../sdk/lib/_internal/pub"])', | 80 ' "../../sdk/lib/_internal/pub"])', |
53 ], | 81 ], |
54 'outputs': [ | 82 'outputs': [ |
55 '<(SHARED_INTERMEDIATE_DIR)/pub_files.stamp', | 83 '<(SHARED_INTERMEDIATE_DIR)/pub_files.stamp', |
56 ], | 84 ], |
57 'action': [ | 85 'action': [ |
58 'python', '../../tools/create_timestamp_file.py', | 86 'python', '../../tools/create_timestamp_file.py', |
59 '<@(_outputs)', | 87 '<@(_outputs)', |
60 ], | 88 ], |
61 }, | 89 }, |
62 ], | 90 ], |
63 } | 91 } |
64 | 92 |
65 | 93 |
66 ], | 94 ], |
67 } | 95 } |
OLD | NEW |