Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: compiler/dart-compiler.gyp

Issue 9950019: Renamed the 'dartc' launch script to 'dart-analysis' and adds it to dart-sdk (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Short circuit the copying of dart_analyzer completely from the build Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 'conditions': [
15 [ 'OS!="win"', {
16 'variables': {
17 'script_suffix': '',
18 },
19 }],
20 [ 'OS=="win"', {
21 'variables': {
22 'script_suffix': '.bat',
23 },
24 }],
25 ],
14 'actions': [ 26 'actions': [
15 { 27 {
16 'action_name': 'build_dartc', 28 'action_name': 'build_dart_analyzer',
17 'inputs': [ 29 'inputs': [
18 'sources.gypi', 30 'sources.gypi',
19 'test_sources.gypi', 31 'test_sources.gypi',
20 '<@(java_sources)', 32 '<@(java_sources)',
21 '<@(java_resources)', 33 '<@(java_resources)',
22 '<@(javatests_sources)', 34 '<@(javatests_sources)',
23 '<@(javatests_resources)', 35 '<@(javatests_resources)',
24 'dartc.xml', 36 'dart_analyzer.xml',
25 'scripts/dartc.sh', 37 'scripts/dart_analyzer.sh',
26 'scripts/dartc_run.sh', 38 'scripts/analyzer_metrics.sh',
27 'scripts/dartc_metrics.sh',
28 '../third_party/args4j/2.0.12/args4j-2.0.12.jar', 39 '../third_party/args4j/2.0.12/args4j-2.0.12.jar',
29 '../third_party/guava/r09/guava-r09.jar', 40 '../third_party/guava/r09/guava-r09.jar',
30 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', 41 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar',
31 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', 42 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar',
32 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', 43 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar',
33 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', 44 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar',
34 ], 45 ],
35 'outputs': [ 46 'outputs': [
36 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar', 47 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar',
37 '<(PRODUCT_DIR)/compiler/bin/dartc', 48 '<(PRODUCT_DIR)/analyzer/bin/dart_analyzer',
38 '<(PRODUCT_DIR)/compiler/lib/args4j/2.0.12/args4j-2.0.12.jar', 49 '<(PRODUCT_DIR)/analyzer/util/analyzer/dart_analyzer.jar',
39 '<(PRODUCT_DIR)/compiler/lib/dartc.jar', 50 '<(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', 51 '<(PRODUCT_DIR)/analyzer/util/analyzer/guava/r09/guava-r09.jar',
41 ], 52 ],
42 'action' : [ 53 'action' : [
43 '../third_party/apache_ant/v1_7_1/bin/ant', 54 '../third_party/apache_ant/v1_7_1/bin/ant<(script_suffix)',
44 '-f', 'dartc.xml', 55 '-f', 'dart_analyzer.xml',
45 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', 56 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)',
46 '-Ddist.dir=<(PRODUCT_DIR)/compiler', 57 '-Ddist.dir=<(PRODUCT_DIR)/analyzer',
47 'clean', 58 'clean',
48 'dist', 59 'dist',
49 'tests.jar', 60 'tests.jar',
50 ], 61 ],
51 'message': 'Building dartc.', 62 'message': 'Building dart_analyzer.',
52 }, 63 },
53 { 64 {
54 'action_name': 'copy_tests', 65 'action_name': 'copy_tests',
55 'inputs': [ '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar' ], 66 'inputs': [ '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar' ],
56 'outputs': [ '<(PRODUCT_DIR)/compiler-tests.jar' ], 67 'outputs': [ '<(PRODUCT_DIR)/analyzer/dart_analyzer_tests.jar' ],
57 'action': [ 'cp', '<@(_inputs)', '<@(_outputs)' ] 68 'action': [ 'cp', '<@(_inputs)', '<@(_outputs)' ]
58 }, 69 },
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 ], 70 ],
69 }, 71 },
70 { 72 {
71 # 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.
72 'target_name': 'dummy', 74 'target_name': 'dummy',
73 'type': 'none', 75 'type': 'none',
74 }, 76 },
75 ], 77 ],
76 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698