| OLD | NEW |
| 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, 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': 'most', | 8 'target_name': 'most', |
| 9 'type': 'none', | 9 'type': 'none', |
| 10 'dependencies': [ | 10 'dependencies': [ |
| 11 'analyzer', | 11 'analyzer', |
| 12 'create_sdk', | 12 'create_sdk.gyp:create_sdk', |
| 13 'dart2js', | 13 'dart2js', |
| 14 'editor', | 14 'editor', |
| 15 'packages', | 15 'packages', |
| 16 'runtime', | 16 'runtime', |
| 17 'samples', | 17 'samples', |
| 18 ], | 18 ], |
| 19 }, | 19 }, |
| 20 { | 20 { |
| 21 # This is the target that is built on the VM build bots. It | 21 # This is the target that is built on the VM build bots. It |
| 22 # must depend on anything that is required by the VM test | 22 # must depend on anything that is required by the VM test |
| 23 # suites. | 23 # suites. |
| 24 'target_name': 'runtime', | 24 'target_name': 'runtime', |
| 25 'type': 'none', | 25 'type': 'none', |
| 26 'dependencies': [ | 26 'dependencies': [ |
| 27 'runtime/dart-runtime.gyp:dart', | 27 'runtime/dart-runtime.gyp:dart', |
| 28 'runtime/dart-runtime.gyp:dart_no_snapshot', | 28 'runtime/dart-runtime.gyp:dart_no_snapshot', |
| 29 'runtime/dart-runtime.gyp:run_vm_tests', | 29 'runtime/dart-runtime.gyp:run_vm_tests', |
| 30 'runtime/dart-runtime.gyp:process_test', | 30 'runtime/dart-runtime.gyp:process_test', |
| 31 'packages', | 31 'packages', |
| 32 'runtime/dart-runtime.gyp:test_extension', | 32 'runtime/dart-runtime.gyp:test_extension', |
| 33 'runtime/dart-runtime.gyp:sample_extension', | 33 'runtime/dart-runtime.gyp:sample_extension', |
| 34 ], | 34 ], |
| 35 }, | 35 }, |
| 36 { | 36 { |
| 37 'target_name': 'create_sdk', | |
| 38 'type': 'none', | |
| 39 'dependencies': [ | |
| 40 'runtime/dart-runtime.gyp:dart', | |
| 41 'utils/compiler/compiler.gyp:dart2js', | |
| 42 'utils/pub/pub.gyp:pub', | |
| 43 'dartfmt', | |
| 44 'analyzer', | |
| 45 ], | |
| 46 'actions': [ | |
| 47 { | |
| 48 'action_name': 'create_sdk_py', | |
| 49 'inputs': [ | |
| 50 '<!@(["python", "tools/list_files.py", "\\.dart$", "sdk/lib"])', | |
| 51 '<!@(["python", "tools/list_files.py", "", ' | |
| 52 '"sdk/lib/_internal/lib/preambles"])', | |
| 53 '<!@(["python", "tools/list_files.py", "", "sdk/bin"])', | |
| 54 'tools/create_sdk.py', | |
| 55 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | |
| 56 '<(SHARED_INTERMEDIATE_DIR)/dart2js.dart.snapshot', | |
| 57 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', | |
| 58 '<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot', | |
| 59 '<(PRODUCT_DIR)/dartanalyzer/dartanalyzer.jar', | |
| 60 '<(SHARED_INTERMEDIATE_DIR)/dartfmt.dart.snapshot', | |
| 61 'tools/VERSION' | |
| 62 ], | |
| 63 'outputs': [ | |
| 64 '<(PRODUCT_DIR)/dart-sdk/README', | |
| 65 ], | |
| 66 'action': [ | |
| 67 'python', | |
| 68 'tools/create_sdk.py', | |
| 69 '--sdk_output_dir', '<(PRODUCT_DIR)/dart-sdk', | |
| 70 '--snapshot_location', '<(SHARED_INTERMEDIATE_DIR)/' | |
| 71 ], | |
| 72 'message': 'Creating SDK.', | |
| 73 }, | |
| 74 ], | |
| 75 }, | |
| 76 { | |
| 77 'target_name': 'dart2js', | 37 'target_name': 'dart2js', |
| 78 'type': 'none', | 38 'type': 'none', |
| 79 'dependencies': [ | 39 'dependencies': [ |
| 80 'utils/compiler/compiler.gyp:dart2js', | 40 'utils/compiler/compiler.gyp:dart2js', |
| 81 ], | 41 ], |
| 82 }, | 42 }, |
| 83 { | 43 { |
| 84 'target_name': 'analyzer', | 44 'target_name': 'analyzer', |
| 85 'type': 'none', | 45 'type': 'none', |
| 86 'dependencies': [ | 46 'dependencies': [ |
| 87 'editor/analyzer.gyp:analyzer', | 47 'editor/analyzer.gyp:analyzer', |
| 88 ], | 48 ], |
| 89 }, | 49 }, |
| 90 { | 50 { |
| 91 'target_name': 'dartfmt', | 51 'target_name': 'dartfmt', |
| 92 'type': 'none', | 52 'type': 'none', |
| 93 'dependencies': [ | 53 'dependencies': [ |
| 94 'utils/dartfmt/dartfmt.gyp:dartfmt', | 54 'utils/dartfmt/dartfmt.gyp:dartfmt', |
| 95 ], | 55 ], |
| 96 }, | 56 }, |
| 97 { | 57 { |
| 98 # This is the target that is built on the dart2dart bots. | 58 # This is the target that is built on the dart2dart bots. |
| 99 # It must depend on anything that is required by dart2dart | 59 # It must depend on anything that is required by dart2dart |
| 100 # tests. | 60 # tests. |
| 101 'target_name': 'dart2dart_bot', | 61 'target_name': 'dart2dart_bot', |
| 102 'type': 'none', | 62 'type': 'none', |
| 103 'dependencies': [ | 63 'dependencies': [ |
| 104 'create_sdk', | 64 'create_sdk.gyp:create_sdk', |
| 105 'packages', | 65 'packages', |
| 106 ], | 66 ], |
| 107 }, | 67 }, |
| 108 { | 68 { |
| 109 # This is the target that is built on the dartc bots. | 69 # This is the target that is built on the dartc bots. |
| 110 # It must depend on anything that is required by dartc | 70 # It must depend on anything that is required by dartc |
| 111 # tests. | 71 # tests. |
| 112 'target_name': 'dartc_bot', | 72 'target_name': 'dartc_bot', |
| 113 'type': 'none', | 73 'type': 'none', |
| 114 'dependencies': [ | 74 'dependencies': [ |
| 115 'create_sdk', | 75 'create_sdk.gyp:create_sdk', |
| 116 'packages', | 76 'packages', |
| 117 ], | 77 ], |
| 118 }, | 78 }, |
| 119 { | 79 { |
| 120 # This is the target that is built on the dart2js build bots. | 80 # This is the target that is built on the dart2js build bots. |
| 121 # It must depend on anything that is required by the dart2js | 81 # It must depend on anything that is required by the dart2js |
| 122 # test suites. | 82 # test suites. |
| 123 'target_name': 'dart2js_bot', | 83 'target_name': 'dart2js_bot', |
| 124 'type': 'none', | 84 'type': 'none', |
| 125 'dependencies': [ | 85 'dependencies': [ |
| 126 'create_sdk', | 86 'create_sdk.gyp:create_sdk', |
| 127 'packages', | 87 'packages', |
| 88 'try', |
| 128 ], | 89 ], |
| 129 }, | 90 }, |
| 130 { | 91 { |
| 131 'target_name': 'api_docs', | 92 'target_name': 'api_docs', |
| 132 'type': 'none', | 93 'type': 'none', |
| 133 'dependencies': [ | 94 'dependencies': [ |
| 134 'utils/apidoc/docgen.gyp:docgen', | 95 'utils/apidoc/docgen.gyp:docgen', |
| 135 ], | 96 ], |
| 136 }, | 97 }, |
| 137 { | 98 { |
| 138 'target_name': 'editor', | 99 'target_name': 'editor', |
| 139 'type': 'none', | 100 'type': 'none', |
| 140 'dependencies': [ | 101 'dependencies': [ |
| 141 'editor/build/generated/editor_deps.gyp:editor_deps', | 102 'editor/build/generated/editor_deps.gyp:editor_deps', |
| 142 | 103 |
| 143 # This dependency on create_sdk does not mean that the Editor | 104 # This dependency on create_sdk.gyp:create_sdk does not mean that the |
| 144 # is rebuilt if the SDK is. It only means that when you build | 105 # Editor is rebuilt if the SDK is. It only means that when you build |
| 145 # the Editor, you should also build the SDK. If we wanted to | 106 # the Editor, you should also build the SDK. If we wanted to |
| 146 # make sure that the editor is rebuilt when the SDK is, we | 107 # make sure that the editor is rebuilt when the SDK is, we |
| 147 # should list a *file* in PRODUCT_DIR which the action below | 108 # should list a *file* in PRODUCT_DIR which the action below |
| 148 # uses as input. | 109 # uses as input. |
| 149 # This is the desired behavior as we would otherwise have to | 110 # This is the desired behavior as we would otherwise have to |
| 150 # rebuild the editor each time the VM, dart2js, or library | 111 # rebuild the editor each time the VM, dart2js, or library |
| 151 # code changes. | 112 # code changes. |
| 152 'create_sdk', | 113 'create_sdk.gyp:create_sdk', |
| 153 ], | 114 ], |
| 154 'actions': [ | 115 'actions': [ |
| 155 { | 116 { |
| 156 'action_name': 'create_editor_py', | 117 'action_name': 'create_editor_py', |
| 157 'inputs': [ | 118 'inputs': [ |
| 158 'tools/create_editor.py', | 119 'tools/create_editor.py', |
| 159 '<(SHARED_INTERMEDIATE_DIR)/editor_deps/editor.stamp', | 120 '<(SHARED_INTERMEDIATE_DIR)/editor_deps/editor.stamp', |
| 160 '<!@(["python", "tools/list_files.py", "", "editor/tools/features/co
m.google.dart.tools.deploy.feature_releng"])', | 121 '<!@(["python", "tools/list_files.py", "", "editor/tools/features/' |
| 122 'com.google.dart.tools.deploy.feature_releng"])', |
| 161 ], | 123 ], |
| 162 'outputs': [ | 124 'outputs': [ |
| 163 '<(PRODUCT_DIR)/editor/VERSION', | 125 '<(PRODUCT_DIR)/editor/VERSION', |
| 164 ], | 126 ], |
| 165 'action': [ | 127 'action': [ |
| 166 'python', | 128 'python', |
| 167 'tools/create_editor.py', | 129 'tools/create_editor.py', |
| 168 '--out', '<(PRODUCT_DIR)/editor', | 130 '--out', '<(PRODUCT_DIR)/editor', |
| 169 '--build', '<(INTERMEDIATE_DIR)', | 131 '--build', '<(INTERMEDIATE_DIR)', |
| 170 ], | 132 ], |
| (...skipping 18 matching lines...) Expand all Loading... |
| 189 'target_name': 'packages', | 151 'target_name': 'packages', |
| 190 'type': 'none', | 152 'type': 'none', |
| 191 'dependencies': [ | 153 'dependencies': [ |
| 192 'pkg/pkg.gyp:pkg_packages', | 154 'pkg/pkg.gyp:pkg_packages', |
| 193 ], | 155 ], |
| 194 }, | 156 }, |
| 195 { | 157 { |
| 196 'target_name': 'try', | 158 'target_name': 'try', |
| 197 'type': 'none', | 159 'type': 'none', |
| 198 'dependencies': [ | 160 'dependencies': [ |
| 199 'create_sdk', | |
| 200 'site/try/build_try.gyp:try_site', | 161 'site/try/build_try.gyp:try_site', |
| 201 ], | 162 ], |
| 202 }, | 163 }, |
| 203 ], | 164 ], |
| 204 } | 165 } |
| OLD | NEW |