| 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', |
| 9 ], | 15 ], |
| 10 'targets': [ | 16 'targets': [ |
| 11 { | 17 { |
| 12 'target_name': 'dartc', | 18 'target_name': 'dartc', |
| 13 'type': 'none', | 19 'type': 'none', |
| 14 'actions': [ | 20 'actions': [ |
| 15 { | 21 { |
| 16 'action_name': 'build_dartc', | 22 'action_name': 'build_dartc', |
| 17 'inputs': [ | 23 'inputs': [ |
| 18 'sources.gypi', | 24 'sources.gypi', |
| 19 'test_sources.gypi', | 25 'test_sources.gypi', |
| 20 'corelib_sources.gypi', | 26 'corelib_sources.gypi', |
| 21 'compiler_corelib_sources.gypi', | 27 'compiler_corelib_sources.gypi', |
| 22 '<@(java_sources)', | 28 '<@(java_sources)', |
| 23 '<@(java_resources)', | 29 '<@(java_resources)', |
| 24 '<@(javatests_sources)', | 30 '<@(javatests_sources)', |
| 25 '<@(javatests_resources)', | 31 '<@(javatests_resources)', |
| 32 '<@(corelib_sources)', |
| 33 '<@(corelib_resources)', |
| 34 '<@(compiler_corelib_sources)', |
| 35 '<@(compiler_corelib_resources)', |
| 26 'dartc.xml', | 36 'dartc.xml', |
| 27 'scripts/dartc.sh', | 37 'scripts/dartc.sh', |
| 28 'scripts/dartc_run.sh', | 38 'scripts/dartc_run.sh', |
| 29 'scripts/dartc_metrics.sh', | 39 'scripts/dartc_metrics.sh', |
| 30 '../third_party/args4j/2.0.12/args4j-2.0.12.jar', | 40 '../third_party/args4j/2.0.12/args4j-2.0.12.jar', |
| 31 '../third_party/guava/r09/guava-r09.jar', | 41 '../third_party/guava/r09/guava-r09.jar', |
| 42 '../third_party/json/r2_20080312/json.jar', |
| 32 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', | 43 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', |
| 33 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', | 44 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', |
| 34 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', | 45 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', |
| 35 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', | 46 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', |
| 36 ], | 47 ], |
| 37 'outputs': [ | 48 'outputs': [ |
| 38 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar', | 49 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar', |
| 39 '<(PRODUCT_DIR)/compiler/bin/dartc', | 50 '<(PRODUCT_DIR)/compiler/bin/dartc', |
| 40 '<(PRODUCT_DIR)/compiler/lib/args4j/2.0.12/args4j-2.0.12.jar', | 51 '<(PRODUCT_DIR)/compiler/lib/args4j/2.0.12/args4j-2.0.12.jar', |
| 41 '<(PRODUCT_DIR)/compiler/lib/dartc.jar', | 52 '<(PRODUCT_DIR)/compiler/lib/dartc.jar', |
| 42 '<(PRODUCT_DIR)/compiler/lib/guava/r09/guava-r09.jar', | 53 '<(PRODUCT_DIR)/compiler/lib/guava/r09/guava-r09.jar', |
| 54 '<(PRODUCT_DIR)/compiler/lib/json/r2_20080312/json.jar', |
| 43 ], | 55 ], |
| 44 'action' : [ | 56 'action' : [ |
| 45 '../third_party/apache_ant/v1_7_1/bin/ant', | 57 '../third_party/apache_ant/v1_7_1/bin/ant', |
| 46 '-f', 'dartc.xml', | 58 '-f', 'dartc.xml', |
| 47 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', | 59 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', |
| 48 '-Ddist.dir=<(PRODUCT_DIR)/compiler', | 60 '-Ddist.dir=<(PRODUCT_DIR)/compiler', |
| 49 'clean', | 61 'clean', |
| 50 'dist', | 62 'dist', |
| 51 'tests.jar', | 63 'tests.jar', |
| 52 ], | 64 ], |
| 53 'message': 'Building dartc.', | 65 'message': 'Building dartc.', |
| 54 }, | 66 }, |
| 55 { | 67 { |
| 56 'action_name': 'copy_tests', | 68 'action_name': 'copy_tests', |
| 57 'inputs': [ '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar' ], | 69 'inputs': [ '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar' ], |
| 58 'outputs': [ '<(PRODUCT_DIR)/compiler-tests.jar' ], | 70 'outputs': [ '<(PRODUCT_DIR)/compiler-tests.jar' ], |
| 59 'action': [ 'cp', '<@(_inputs)', '<@(_outputs)' ] | 71 'action': [ 'cp', '<@(_inputs)', '<@(_outputs)' ] |
| 60 }, | 72 }, |
| 61 { | 73 { |
| 62 'action_name': 'copy_dartc_wrapper', | 74 'action_name': 'copy_dartc_wrapper', |
| 63 'inputs': [ | 75 'inputs': [ |
| 64 '<(PRODUCT_DIR)/compiler/lib/dartc.jar', | 76 '<(PRODUCT_DIR)/compiler/lib/dartc.jar', |
| 65 'scripts/dartc_wrapper.py', | 77 'scripts/dartc_wrapper.py', |
| 66 ], | 78 ], |
| 67 'outputs': [ '<(PRODUCT_DIR)/dartc' ], | 79 'outputs': [ '<(PRODUCT_DIR)/dartc' ], |
| 68 'action': [ 'cp', 'scripts/dartc_wrapper.py', '<@(_outputs)' ] | 80 'action': [ 'cp', 'scripts/dartc_wrapper.py', '<@(_outputs)' ] |
| 69 }, | 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 }, |
| 70 ], | 215 ], |
| 71 }, | 216 }, |
| 72 { | 217 { |
| 73 # GYP won't generate a catch-all target if there's only one target. | 218 # GYP won't generate a catch-all target if there's only one target. |
| 74 'target_name': 'dummy', | 219 'target_name': 'dummy', |
| 75 'type': 'none', | 220 'type': 'none', |
| 76 }, | 221 }, |
| 77 ], | 222 ], |
| 78 } | 223 } |
| OLD | NEW |