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