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