OLD | NEW |
| (Empty) |
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 | |
3 # BSD-style license that can be found in the LICENSE file. | |
4 | |
5 { | |
6 'includes': [ | |
7 'sources.gypi', | |
8 'test_sources.gypi', | |
9 ], | |
10 'targets': [ | |
11 { | |
12 'target_name': 'dart_analyzer', | |
13 'type': 'none', | |
14 'conditions': [ | |
15 [ 'OS!="win"', { | |
16 'variables': { | |
17 'script_suffix': '', | |
18 }, | |
19 }], | |
20 [ 'OS=="win"', { | |
21 'variables': { | |
22 'script_suffix': '.bat', | |
23 }, | |
24 }], | |
25 ], | |
26 'actions': [ | |
27 { | |
28 'action_name': 'build_dart_analyzer', | |
29 'inputs': [ | |
30 'sources.gypi', | |
31 'test_sources.gypi', | |
32 '<@(java_sources)', | |
33 '<@(java_resources)', | |
34 '<@(javatests_sources)', | |
35 '<@(javatests_resources)', | |
36 'dart_analyzer.xml', | |
37 'scripts/dart_analyzer.sh', | |
38 'scripts/dart_analyzer.bat', | |
39 'scripts/analyzer_metrics.sh', | |
40 '../third_party/args4j/2.0.12/args4j-2.0.12.jar', | |
41 '../third_party/guava/r13/guava-13.0.1.jar', | |
42 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', | |
43 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', | |
44 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', | |
45 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', | |
46 ], | |
47 'outputs': [ | |
48 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar', | |
49 '<(PRODUCT_DIR)/analyzer/bin/dart_analyzer', | |
50 '<(PRODUCT_DIR)/analyzer/bin/dart_analyzer.bat', | |
51 '<(PRODUCT_DIR)/analyzer/util/analyzer/dart_analyzer.jar', | |
52 '<(PRODUCT_DIR)/analyzer/util/analyzer/args4j/2.0.12/args4j-2.0.12.j
ar', | |
53 '<(PRODUCT_DIR)/analyzer/util/analyzer/guava/r13/guava-13.0.1.jar', | |
54 ], | |
55 'action' : [ | |
56 '../third_party/apache_ant/1.8.4/bin/ant<(script_suffix)', | |
57 '-f', 'dart_analyzer.xml', | |
58 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', | |
59 '-Ddist.dir=<(PRODUCT_DIR)/analyzer', | |
60 'clean', | |
61 'dist', | |
62 'tests.jar', | |
63 ], | |
64 'message': 'Building dart_analyzer.', | |
65 }, | |
66 { | |
67 'action_name': 'copy_tests', | |
68 'inputs': [ '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar' ], | |
69 'outputs': [ '<(PRODUCT_DIR)/analyzer/dart_analyzer_tests.jar' ], | |
70 'action': [ 'cp', '<@(_inputs)', '<@(_outputs)' ] | |
71 }, | |
72 ], | |
73 }, | |
74 { | |
75 # GYP won't generate a catch-all target if there's only one target. | |
76 'target_name': 'dummy', | |
77 'type': 'none', | |
78 }, | |
79 ], | |
80 } | |
OLD | NEW |