| 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 'includes': [ | 6 'includes': [ |
| 7 'sources.gypi', | 7 'sources.gypi', |
| 8 'test_sources.gypi', | 8 'test_sources.gypi' |
| 9 'corelib_sources.gypi', | |
| 10 'compiler_corelib_sources.gypi', | |
| 11 'domlib_sources.gypi', | |
| 12 'htmllib_sources.gypi', | |
| 13 'jsonlib_sources.gypi', | |
| 14 'isolatelib_sources.gypi', | |
| 15 ], | 9 ], |
| 16 'targets': [ | 10 'targets': [ |
| 17 { | 11 { |
| 18 'target_name': 'dartc', | 12 'target_name': 'darta', |
| 19 'type': 'none', | 13 'type': 'none', |
| 20 'actions': [ | 14 'actions': [ |
| 21 { | 15 { |
| 22 'action_name': 'build_dartc', | 16 'action_name': 'build_darta', |
| 23 'inputs': [ | 17 'inputs': [ |
| 24 'sources.gypi', | 18 'sources.gypi', |
| 25 'test_sources.gypi', | 19 'test_sources.gypi', |
| 26 'corelib_sources.gypi', | |
| 27 'compiler_corelib_sources.gypi', | |
| 28 '<@(java_sources)', | 20 '<@(java_sources)', |
| 29 '<@(java_resources)', | 21 '<@(java_resources)', |
| 30 '<@(javatests_sources)', | 22 '<@(javatests_sources)', |
| 31 '<@(javatests_resources)', | 23 '<@(javatests_resources)', |
| 32 '<@(corelib_sources)', | 24 'darta.xml', |
| 33 '<@(corelib_resources)', | 25 'scripts/darta.sh', |
| 34 '<@(compiler_corelib_sources)', | 26 'scripts/darta_run.sh', |
| 35 '<@(compiler_corelib_resources)', | 27 'scripts/darta_metrics.sh', |
| 36 'dartc.xml', | |
| 37 'scripts/dartc.sh', | |
| 38 'scripts/dartc_run.sh', | |
| 39 'scripts/dartc_metrics.sh', | |
| 40 '../third_party/args4j/2.0.12/args4j-2.0.12.jar', | 28 '../third_party/args4j/2.0.12/args4j-2.0.12.jar', |
| 41 '../third_party/guava/r09/guava-r09.jar', | 29 '../third_party/guava/r09/guava-r09.jar', |
| 42 '../third_party/json/r2_20080312/json.jar', | |
| 43 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', | 30 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', |
| 44 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', | 31 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', |
| 45 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', | 32 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', |
| 46 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', | 33 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', |
| 34 |
| 47 ], | 35 ], |
| 48 'outputs': [ | 36 'outputs': [ |
| 49 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar', | 37 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar', |
| 50 '<(PRODUCT_DIR)/compiler/bin/dartc', | 38 '<(PRODUCT_DIR)/analysis/darta', |
| 51 '<(PRODUCT_DIR)/compiler/lib/args4j/2.0.12/args4j-2.0.12.jar', | 39 '<(PRODUCT_DIR)/analysis/darta.jar', |
| 52 '<(PRODUCT_DIR)/compiler/lib/dartc.jar', | 40 '<(PRODUCT_DIR)/analysis/args4j/2.0.12/args4j-2.0.12.jar', |
| 53 '<(PRODUCT_DIR)/compiler/lib/guava/r09/guava-r09.jar', | 41 '<(PRODUCT_DIR)/analysis/guava/r09/guava-r09.jar', |
| 54 '<(PRODUCT_DIR)/compiler/lib/json/r2_20080312/json.jar', | 42 '<(PRODUCT_DIR)/analysis/json/r2_20080312/json.jar', |
| 55 ], | 43 ], |
| 56 'action' : [ | 44 'action' : [ |
| 57 '../third_party/apache_ant/v1_7_1/bin/ant', | 45 '../third_party/apache_ant/v1_7_1/bin/ant', |
| 58 '-f', 'dartc.xml', | 46 '-f', 'darta.xml', |
| 59 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', | 47 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', |
| 60 '-Ddist.dir=<(PRODUCT_DIR)/compiler', | 48 '-Ddist.dir=<(PRODUCT_DIR)/analysis', |
| 61 'clean', | 49 'clean', |
| 62 'dist', | 50 'dist', |
| 63 'tests.jar', | 51 'tests.jar', |
| 64 ], | 52 ], |
| 65 'message': 'Building dartc.', | 53 'message': 'Building analyzer.', |
| 66 }, | 54 }, |
| 67 { | 55 { |
| 68 'action_name': 'copy_tests', | 56 'action_name': 'copy_tests', |
| 69 'inputs': [ '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar' ], | 57 'inputs': [ '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar' ], |
| 70 'outputs': [ '<(PRODUCT_DIR)/compiler-tests.jar' ], | 58 'outputs': [ '<(PRODUCT_DIR)/analysis/darta-tests.jar' ], |
| 71 'action': [ 'cp', '<@(_inputs)', '<@(_outputs)' ] | 59 'action': [ 'cp', '<@(_inputs)', '<@(_outputs)' ] |
| 72 }, | 60 }, |
| 73 { | |
| 74 'action_name': 'copy_dartc_wrapper', | |
| 75 'inputs': [ | |
| 76 '<(PRODUCT_DIR)/compiler/lib/dartc.jar', | |
| 77 'scripts/dartc_wrapper.py', | |
| 78 ], | |
| 79 'outputs': [ '<(PRODUCT_DIR)/dartc' ], | |
| 80 'action': [ 'cp', 'scripts/dartc_wrapper.py', '<@(_outputs)' ] | |
| 81 }, | |
| 82 { | |
| 83 'message': 'Collect system libraries', | |
| 84 'action_name': 'collect_systemlibrary', | |
| 85 'inputs': [ | |
| 86 '<(PRODUCT_DIR)/compiler/bin/dartc', | |
| 87 'dartc.xml', | |
| 88 'domlib_sources.gypi', | |
| 89 '<@(domlib_sources)', | |
| 90 '<@(domlib_resources)', | |
| 91 'htmllib_sources.gypi', | |
| 92 '<@(htmllib_sources)', | |
| 93 '<@(htmllib_resources)', | |
| 94 'jsonlib_sources.gypi', | |
| 95 '<@(jsonlib_sources)', | |
| 96 '<@(jsonlib_resources)', | |
| 97 'isolatelib_sources.gypi', | |
| 98 '<@(isolatelib_sources)', | |
| 99 '<@(isolatelib_resources)', | |
| 100 ], | |
| 101 'outputs': [ | |
| 102 '<(INTERMEDIATE_DIR)/<(_target_name)/syslib.stamp', | |
| 103 '<(INTERMEDIATE_DIR)/<(_target_name)/corelib.jar.stamp', | |
| 104 '<(INTERMEDIATE_DIR)/<(_target_name)/domlib.jar.stamp', | |
| 105 '<(INTERMEDIATE_DIR)/<(_target_name)/htmllib.jar.stamp', | |
| 106 '<(INTERMEDIATE_DIR)/<(_target_name)/jsonlib.jar.stamp', | |
| 107 '<(INTERMEDIATE_DIR)/<(_target_name)/isolatelib.jar.stamp', | |
| 108 ], | |
| 109 'action': [ | |
| 110 '../third_party/apache_ant/v1_7_1/bin/ant', | |
| 111 '-f', 'dartc.xml', | |
| 112 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', | |
| 113 '-Ddist.dir=<(PRODUCT_DIR)/compiler', | |
| 114 'syslib_clean', | |
| 115 'syslib', | |
| 116 ], | |
| 117 }, | |
| 118 { | |
| 119 'message': 'Compiling dart system libraries to <(INTERMEDIATE_DIR)/<(_
target_name)/api', | |
| 120 'action_name': 'compile_systemlibrary', | |
| 121 'inputs': [ | |
| 122 '<(PRODUCT_DIR)/dartc', | |
| 123 '<(INTERMEDIATE_DIR)/<(_target_name)/syslib.stamp', | |
| 124 'api.dart', | |
| 125 ], | |
| 126 'outputs': [ | |
| 127 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/core/com/google/dart/c
orelib/corelib.dart.deps', | |
| 128 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/dom/dom/dom.dart.deps'
, | |
| 129 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/html/html/html.dart.de
ps', | |
| 130 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/json/json/json.dart.de
ps', | |
| 131 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/isolate/isolate/isolat
e_compiler.dart.deps', | |
| 132 ], | |
| 133 'action': [ | |
| 134 '<(PRODUCT_DIR)/dartc', 'api.dart', | |
| 135 '--fatal-warnings', '--fatal-type-errors', | |
| 136 '-out', '<(INTERMEDIATE_DIR)/<(_target_name)/api', | |
| 137 ], | |
| 138 }, | |
| 139 { | |
| 140 'message': 'Packaging dart:core artifacts', | |
| 141 'action_name': 'package_corelib_artifacts', | |
| 142 'inputs': [ | |
| 143 '<(INTERMEDIATE_DIR)/<(_target_name)/corelib.jar.stamp', | |
| 144 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/core/com/google/dart/c
orelib/corelib.dart.deps', | |
| 145 ], | |
| 146 'outputs': [ | |
| 147 '<(PRODUCT_DIR)/compiler/lib/corelib.jar', | |
| 148 ], | |
| 149 'action': [ | |
| 150 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/corelib.jar', '-C', '<(IN
TERMEDIATE_DIR)/<(_target_name)/api/dart/core', 'com', | |
| 151 ], | |
| 152 }, | |
| 153 { | |
| 154 'message': 'Packaging dart:dom artifacts', | |
| 155 'action_name': 'package_domlib_artifacts', | |
| 156 'inputs': [ | |
| 157 '<(INTERMEDIATE_DIR)/<(_target_name)/domlib.jar.stamp', | |
| 158 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/dom/dom/dom.dart.deps'
, | |
| 159 ], | |
| 160 'outputs': [ | |
| 161 '<(PRODUCT_DIR)/compiler/lib/domlib.jar', | |
| 162 ], | |
| 163 'action': [ | |
| 164 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/domlib.jar', '-C', '<(INT
ERMEDIATE_DIR)/<(_target_name)/api/dart/dom', 'dom', | |
| 165 ], | |
| 166 }, | |
| 167 { | |
| 168 'message': 'Packaging dart:html artifacts', | |
| 169 'action_name': 'package_htmllib_artifacts', | |
| 170 'inputs': [ | |
| 171 'htmllib_sources.gypi', | |
| 172 '<@(htmllib_sources)', | |
| 173 '<@(htmllib_resources)', | |
| 174 '<(INTERMEDIATE_DIR)/<(_target_name)/htmllib.jar.stamp', | |
| 175 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/html/html/html.dart.de
ps', | |
| 176 ], | |
| 177 'outputs': [ | |
| 178 '<(PRODUCT_DIR)/compiler/lib/htmllib.jar', | |
| 179 ], | |
| 180 'action': [ | |
| 181 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/htmllib.jar', '-C', '<(IN
TERMEDIATE_DIR)/<(_target_name)/api/dart/html', 'html', | |
| 182 ], | |
| 183 }, | |
| 184 { | |
| 185 'message': 'Packaging dart:json artifacts', | |
| 186 'action_name': 'package_jsonlib_artifacts', | |
| 187 'inputs': [ | |
| 188 '<(INTERMEDIATE_DIR)/<(_target_name)/jsonlib.jar.stamp', | |
| 189 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/json/json/json.dart.de
ps', | |
| 190 'api.dart', | |
| 191 ], | |
| 192 'outputs': [ | |
| 193 '<(PRODUCT_DIR)/compiler/lib/jsonlib.jar', | |
| 194 ], | |
| 195 'action': [ | |
| 196 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/jsonlib.jar', '-C', '<(IN
TERMEDIATE_DIR)/<(_target_name)/api/dart/json', 'json', | |
| 197 ], | |
| 198 }, | |
| 199 { | |
| 200 'message': 'Packaging dart:isolate artifacts', | |
| 201 'action_name': 'package_isolatelib_artifacts', | |
| 202 'inputs': [ | |
| 203 '<(INTERMEDIATE_DIR)/<(_target_name)/isolatelib.jar.stamp', | |
| 204 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/isolate/isolate/isolat
e_compiler.dart.deps', | |
| 205 'api.dart', | |
| 206 ], | |
| 207 'outputs': [ | |
| 208 '<(PRODUCT_DIR)/compiler/lib/isolatelib.jar', | |
| 209 ], | |
| 210 'action': [ | |
| 211 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/isolatelib.jar', '-C', | |
| 212 '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/isolate', 'isolate', | |
| 213 ], | |
| 214 }, | |
| 215 ], | 61 ], |
| 216 }, | 62 }, |
| 217 { | 63 { |
| 218 # GYP won't generate a catch-all target if there's only one target. | 64 # GYP won't generate a catch-all target if there's only one target. |
| 219 'target_name': 'dummy', | 65 'target_name': 'dummy', |
| 220 'type': 'none', | 66 'type': 'none', |
| 221 }, | 67 }, |
| 222 ], | 68 ], |
| 223 } | 69 } |
| OLD | NEW |