| ahe@google.com | 18c3dd3 | 2012-03-17 16:25:41 | [diff] [blame] | 1 | # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| dgrove@google.com | 6e10bcc | 2011-10-05 05:04:26 | [diff] [blame] | 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. |
| 4 | |
| 5 | { |
| 6 | 'targets': [ |
| 7 | { |
| kustermann@google.com | 28436e1 | 2013-04-08 13:58:16 | [diff] [blame] | 8 | 'target_name': 'most', |
| amouravski@google.com | e4d9989 | 2013-04-02 20:52:03 | [diff] [blame] | 9 | 'type': 'none', |
| 10 | 'dependencies': [ |
| 11 | 'analyzer', |
| amouravski@google.com | e4d9989 | 2013-04-02 20:52:03 | [diff] [blame] | 12 | 'create_sdk', |
| 13 | 'dart2js', |
| 14 | 'editor', |
| 15 | 'packages', |
| 16 | 'runtime', |
| 17 | 'samples', |
| amouravski@google.com | e4d9989 | 2013-04-02 20:52:03 | [diff] [blame] | 18 | ], |
| 19 | }, |
| 20 | { |
| ahe@google.com | f4ca954 | 2012-11-19 11:35:57 | [diff] [blame] | 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 |
| 23 | # suites. |
| dgrove@google.com | 6e10bcc | 2011-10-05 05:04:26 | [diff] [blame] | 24 | 'target_name': 'runtime', |
| 25 | 'type': 'none', |
| 26 | 'dependencies': [ |
| 27 | 'runtime/dart-runtime.gyp:dart', |
| iposva@google.com | d7bdc7e | 2012-08-31 22:44:20 | [diff] [blame] | 28 | 'runtime/dart-runtime.gyp:dart_no_snapshot', |
| dgrove@google.com | 6e10bcc | 2011-10-05 05:04:26 | [diff] [blame] | 29 | 'runtime/dart-runtime.gyp:run_vm_tests', |
| ngeoffray@google.com | 29a8add | 2011-10-13 12:13:44 | [diff] [blame] | 30 | 'runtime/dart-runtime.gyp:process_test', |
| ahe@google.com | f4ca954 | 2012-11-19 11:35:57 | [diff] [blame] | 31 | 'packages', |
| zra@google.com | 3508d33 | 2013-12-20 17:51:34 | [diff] [blame] | 32 | 'runtime/dart-runtime.gyp:test_extension', |
| 33 | 'runtime/dart-runtime.gyp:sample_extension', |
| whesse@google.com | 5623cf6 | 2013-05-29 09:43:10 | [diff] [blame] | 34 | ], |
| dgrove@google.com | 6e10bcc | 2011-10-05 05:04:26 | [diff] [blame] | 35 | }, |
| ngeoffray@google.com | bd14d6f | 2011-11-04 11:27:49 | [diff] [blame] | 36 | { |
| ahe@google.com | 3c91943 | 2012-04-30 13:05:35 | [diff] [blame] | 37 | 'target_name': 'create_sdk', |
| dgrove@google.com | d83560f | 2011-12-02 23:20:35 | [diff] [blame] | 38 | 'type': 'none', |
| 39 | 'dependencies': [ |
| ahe@google.com | e38d098 | 2012-04-30 12:42:10 | [diff] [blame] | 40 | 'runtime/dart-runtime.gyp:dart', |
| ahe@google.com | 9ed6080 | 2012-10-30 11:42:42 | [diff] [blame] | 41 | 'utils/compiler/compiler.gyp:dart2js', |
| nweiz@google.com | cc6e2f7 | 2013-04-24 20:43:39 | [diff] [blame] | 42 | 'utils/pub/pub.gyp:pub', |
| pquitslund@google.com | f3e7bc7 | 2014-02-10 19:03:08 | [diff] [blame] | 43 | 'dartfmt', |
| devoncarew@google.com | c282476 | 2013-04-15 16:52:08 | [diff] [blame] | 44 | 'analyzer', |
| dgrove@google.com | d83560f | 2011-12-02 23:20:35 | [diff] [blame] | 45 | ], |
| 46 | 'actions': [ |
| 47 | { |
| ahe@google.com | 3c91943 | 2012-04-30 13:05:35 | [diff] [blame] | 48 | 'action_name': 'create_sdk_py', |
| dgrove@google.com | d83560f | 2011-12-02 23:20:35 | [diff] [blame] | 49 | 'inputs': [ |
| ahe@google.com | 7a3632d | 2012-11-27 09:24:12 | [diff] [blame] | 50 | '<!@(["python", "tools/list_files.py", "\\.dart$", "sdk/lib"])', |
| whesse@google.com | 5c16460 | 2014-03-06 15:08:43 | [diff] [blame] | 51 | '<!@(["python", "tools/list_files.py", "", ' |
| 52 | '"sdk/lib/_internal/lib/preambles"])', |
| ahe@google.com | d45a3d0 | 2012-11-29 14:49:44 | [diff] [blame] | 53 | '<!@(["python", "tools/list_files.py", "", "sdk/bin"])', |
| dgrove@google.com | d83560f | 2011-12-02 23:20:35 | [diff] [blame] | 54 | 'tools/create_sdk.py', |
| ahe@google.com | e38d098 | 2012-04-30 12:42:10 | [diff] [blame] | 55 | '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
| ahe@google.com | 216289b | 2013-07-23 14:58:28 | [diff] [blame] | 56 | '<(SHARED_INTERMEDIATE_DIR)/dart2js.dart.snapshot', |
| ricow@google.com | 00da866 | 2013-04-11 05:47:24 | [diff] [blame] | 57 | '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', |
| nweiz@google.com | cc6e2f7 | 2013-04-24 20:43:39 | [diff] [blame] | 58 | '<(SHARED_INTERMEDIATE_DIR)/pub.dart.snapshot', |
| devoncarew@google.com | c282476 | 2013-04-15 16:52:08 | [diff] [blame] | 59 | '<(PRODUCT_DIR)/dartanalyzer/dartanalyzer.jar', |
| pquitslund@google.com | f3e7bc7 | 2014-02-10 19:03:08 | [diff] [blame] | 60 | '<(SHARED_INTERMEDIATE_DIR)/dartfmt.dart.snapshot', |
| ricow@google.com | b55717e | 2013-11-11 08:53:06 | [diff] [blame] | 61 | 'tools/VERSION' |
| dgrove@google.com | d83560f | 2011-12-02 23:20:35 | [diff] [blame] | 62 | ], |
| dgrove@google.com | 502ab12 | 2011-12-02 23:28:13 | [diff] [blame] | 63 | 'outputs': [ |
| dgrove@google.com | 182b384 | 2012-09-27 18:07:02 | [diff] [blame] | 64 | '<(PRODUCT_DIR)/dart-sdk/README', |
| dgrove@google.com | 502ab12 | 2011-12-02 23:28:13 | [diff] [blame] | 65 | ], |
| dgrove@google.com | d83560f | 2011-12-02 23:20:35 | [diff] [blame] | 66 | 'action': [ |
| 67 | 'python', |
| 68 | 'tools/create_sdk.py', |
| ricow@google.com | 0a657bf | 2013-04-11 12:19:35 | [diff] [blame] | 69 | '--sdk_output_dir', '<(PRODUCT_DIR)/dart-sdk', |
| nweiz@google.com | cc6e2f7 | 2013-04-24 20:43:39 | [diff] [blame] | 70 | '--snapshot_location', '<(SHARED_INTERMEDIATE_DIR)/' |
| dgrove@google.com | d83560f | 2011-12-02 23:20:35 | [diff] [blame] | 71 | ], |
| 72 | 'message': 'Creating SDK.', |
| 73 | }, |
| ahe@google.com | 3c91943 | 2012-04-30 13:05:35 | [diff] [blame] | 74 | ], |
| ahe@google.com | 3c91943 | 2012-04-30 13:05:35 | [diff] [blame] | 75 | }, |
| 76 | { |
| ahe@google.com | 18c3dd3 | 2012-03-17 16:25:41 | [diff] [blame] | 77 | 'target_name': 'dart2js', |
| 78 | 'type': 'none', |
| 79 | 'dependencies': [ |
| ahe@google.com | 18c3dd3 | 2012-03-17 16:25:41 | [diff] [blame] | 80 | 'utils/compiler/compiler.gyp:dart2js', |
| ahe@google.com | 18c3dd3 | 2012-03-17 16:25:41 | [diff] [blame] | 81 | ], |
| 82 | }, |
| rnystrom@google.com | d2ca275 | 2012-03-30 20:24:06 | [diff] [blame] | 83 | { |
| ricow@google.com | 2542e96 | 2013-02-21 08:25:18 | [diff] [blame] | 84 | 'target_name': 'analyzer', |
| 85 | 'type': 'none', |
| 86 | 'dependencies': [ |
| ricow@google.com | 2542e96 | 2013-02-21 08:25:18 | [diff] [blame] | 87 | 'editor/analyzer.gyp:analyzer', |
| 88 | ], |
| 89 | }, |
| 90 | { |
| pquitslund@google.com | f3e7bc7 | 2014-02-10 19:03:08 | [diff] [blame] | 91 | 'target_name': 'dartfmt', |
| 92 | 'type': 'none', |
| 93 | 'dependencies': [ |
| 94 | 'utils/dartfmt/dartfmt.gyp:dartfmt', |
| 95 | ], |
| 96 | }, |
| 97 | { |
| floitsch@google.com | e0979d9 | 2013-04-06 00:09:07 | [diff] [blame] | 98 | # This is the target that is built on the dart2dart bots. |
| 99 | # It must depend on anything that is required by dart2dart |
| 100 | # tests. |
| 101 | 'target_name': 'dart2dart_bot', |
| 102 | 'type': 'none', |
| 103 | 'dependencies': [ |
| 104 | 'create_sdk', |
| 105 | 'packages', |
| 106 | ], |
| 107 | }, |
| 108 | { |
| kustermann@google.com | f35937f | 2013-02-14 17:49:29 | [diff] [blame] | 109 | # This is the target that is built on the dartc bots. |
| 110 | # It must depend on anything that is required by dartc |
| 111 | # tests. |
| 112 | 'target_name': 'dartc_bot', |
| 113 | 'type': 'none', |
| 114 | 'dependencies': [ |
| 115 | 'create_sdk', |
| 116 | 'packages', |
| 117 | ], |
| 118 | }, |
| 119 | { |
| ahe@google.com | f4ca954 | 2012-11-19 11:35:57 | [diff] [blame] | 120 | # This is the target that is built on the dart2js build bots. |
| 121 | # It must depend on anything that is required by the dart2js |
| 122 | # test suites. |
| ahe@google.com | 9ed6080 | 2012-10-30 11:42:42 | [diff] [blame] | 123 | 'target_name': 'dart2js_bot', |
| 124 | 'type': 'none', |
| 125 | 'dependencies': [ |
| ahe@google.com | 9ed6080 | 2012-10-30 11:42:42 | [diff] [blame] | 126 | 'create_sdk', |
| ahe@google.com | f4ca954 | 2012-11-19 11:35:57 | [diff] [blame] | 127 | 'packages', |
| ahe@google.com | 9ed6080 | 2012-10-30 11:42:42 | [diff] [blame] | 128 | ], |
| 129 | }, |
| 130 | { |
| rnystrom@google.com | d2ca275 | 2012-03-30 20:24:06 | [diff] [blame] | 131 | 'target_name': 'api_docs', |
| 132 | 'type': 'none', |
| 133 | 'dependencies': [ |
| alanknight@google.com | 03d0cd8 | 2013-11-20 21:51:51 | [diff] [blame] | 134 | 'utils/apidoc/docgen.gyp:docgen', |
| rnystrom@google.com | d2ca275 | 2012-03-30 20:24:06 | [diff] [blame] | 135 | ], |
| whesse@google.com | 52ff821 | 2012-08-22 11:10:07 | [diff] [blame] | 136 | }, |
| 137 | { |
| ricow@google.com | 8a85df8 | 2013-03-19 18:21:46 | [diff] [blame] | 138 | 'target_name': 'editor', |
| 139 | 'type': 'none', |
| 140 | 'dependencies': [ |
| 141 | 'editor/build/generated/editor_deps.gyp:editor_deps', |
| 142 | |
| 143 | # This dependency on create_sdk does not mean that the Editor |
| 144 | # 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 |
| 146 | # make sure that the editor is rebuilt when the SDK is, we |
| 147 | # should list a *file* in PRODUCT_DIR which the action below |
| 148 | # uses as input. |
| 149 | # This is the desired behavior as we would otherwise have to |
| 150 | # rebuild the editor each time the VM, dart2js, or library |
| 151 | # code changes. |
| 152 | 'create_sdk', |
| 153 | ], |
| 154 | 'actions': [ |
| 155 | { |
| 156 | 'action_name': 'create_editor_py', |
| 157 | 'inputs': [ |
| 158 | 'tools/create_editor.py', |
| 159 | '<(SHARED_INTERMEDIATE_DIR)/editor_deps/editor.stamp', |
| 160 | '<!@(["python", "tools/list_files.py", "", "editor/tools/features/com.google.dart.tools.deploy.feature_releng"])', |
| 161 | ], |
| 162 | 'outputs': [ |
| 163 | '<(PRODUCT_DIR)/editor/VERSION', |
| 164 | ], |
| 165 | 'action': [ |
| 166 | 'python', |
| 167 | 'tools/create_editor.py', |
| 168 | '--out', '<(PRODUCT_DIR)/editor', |
| 169 | '--build', '<(INTERMEDIATE_DIR)', |
| 170 | ], |
| 171 | 'message': 'Creating editor.', |
| 172 | }, |
| 173 | ], |
| 174 | }, |
| 175 | { |
| whesse@google.com | 52ff821 | 2012-08-22 11:10:07 | [diff] [blame] | 176 | 'target_name': 'samples', |
| 177 | 'type': 'none', |
| shailentuli@google.com | 6c93ab7 | 2013-09-26 00:19:04 | [diff] [blame] | 178 | 'dependencies': [], |
| gram@google.com | e247b60 | 2012-11-30 00:10:27 | [diff] [blame] | 179 | 'conditions': [ |
| vsm@google.com | e760453 | 2013-01-22 16:28:13 | [diff] [blame] | 180 | ['OS!="android"', { |
| gram@google.com | 9703d7b | 2013-01-16 21:17:52 | [diff] [blame] | 181 | 'dependencies': [ |
| iposva@google.com | 0ac1351 | 2013-11-07 01:22:43 | [diff] [blame] | 182 | 'runtime/dart-runtime.gyp:sample_extension', |
| gram@google.com | 9703d7b | 2013-01-16 21:17:52 | [diff] [blame] | 183 | ], |
| 184 | }, |
| 185 | ], |
| 186 | ] |
| whesse@google.com | 52ff821 | 2012-08-22 11:10:07 | [diff] [blame] | 187 | }, |
| ahe@google.com | f4ca954 | 2012-11-19 11:35:57 | [diff] [blame] | 188 | { |
| 189 | 'target_name': 'packages', |
| 190 | 'type': 'none', |
| 191 | 'dependencies': [ |
| 192 | 'pkg/pkg.gyp:pkg_packages', |
| 193 | ], |
| 194 | }, |
| ahe@google.com | 26e76d1 | 2014-01-15 14:10:02 | [diff] [blame] | 195 | { |
| 196 | 'target_name': 'try', |
| 197 | 'type': 'none', |
| 198 | 'dependencies': [ |
| 199 | 'create_sdk', |
| 200 | 'site/try/build_try.gyp:try_site', |
| 201 | ], |
| 202 | }, |
| dgrove@google.com | 6e10bcc | 2011-10-05 05:04:26 | [diff] [blame] | 203 | ], |
| 204 | } |