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