| 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': 'dartc', |
| 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 ], | |
| 26 'actions': [ | 14 'actions': [ |
| 27 { | 15 { |
| 28 'action_name': 'build_dartc', | 16 'action_name': 'build_dartc', |
| 29 'inputs': [ | 17 'inputs': [ |
| 30 'sources.gypi', | 18 'sources.gypi', |
| 31 'test_sources.gypi', | 19 'test_sources.gypi', |
| 32 '<@(java_sources)', | 20 '<@(java_sources)', |
| 33 '<@(java_resources)', | 21 '<@(java_resources)', |
| 34 '<@(javatests_sources)', | 22 '<@(javatests_sources)', |
| 35 '<@(javatests_resources)', | 23 '<@(javatests_resources)', |
| 36 'dartc.xml', | 24 'dartc.xml', |
| 37 'scripts/dartc.sh', | 25 'scripts/dartc.sh', |
| 38 'scripts/dartc_run.sh', | 26 'scripts/dartc_run.sh', |
| 39 'scripts/dartc_metrics.sh', | 27 'scripts/dartc_metrics.sh', |
| 40 '../third_party/args4j/2.0.12/args4j-2.0.12.jar', | 28 '../third_party/args4j/2.0.12/args4j-2.0.12.jar', |
| 41 '../third_party/guava/r09/guava-r09.jar', | 29 '../third_party/guava/r09/guava-r09.jar', |
| 42 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', | 30 '../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', |
| 43 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', | 31 '../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', |
| 44 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', | 32 '../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', |
| 45 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', | 33 '../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', |
| 46 ], | 34 ], |
| 47 'outputs': [ | 35 'outputs': [ |
| 48 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar', | 36 '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar', |
| 49 '<(PRODUCT_DIR)/compiler/bin/dartc', | 37 '<(PRODUCT_DIR)/compiler/bin/dartc', |
| 50 '<(PRODUCT_DIR)/compiler/lib/args4j/2.0.12/args4j-2.0.12.jar', | 38 '<(PRODUCT_DIR)/compiler/lib/args4j/2.0.12/args4j-2.0.12.jar', |
| 51 '<(PRODUCT_DIR)/compiler/lib/dartc.jar', | 39 '<(PRODUCT_DIR)/compiler/lib/dartc.jar', |
| 52 '<(PRODUCT_DIR)/compiler/lib/guava/r09/guava-r09.jar', | 40 '<(PRODUCT_DIR)/compiler/lib/guava/r09/guava-r09.jar', |
| 53 ], | 41 ], |
| 54 'action' : [ | 42 'action' : [ |
| 55 '../third_party/apache_ant/v1_7_1/bin/ant<(script_suffix)', | 43 '../third_party/apache_ant/v1_7_1/bin/ant', |
| 56 '-f', 'dartc.xml', | 44 '-f', 'dartc.xml', |
| 57 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', | 45 '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)', |
| 58 '-Ddist.dir=<(PRODUCT_DIR)/compiler', | 46 '-Ddist.dir=<(PRODUCT_DIR)/compiler', |
| 59 'clean', | 47 'clean', |
| 60 'dist', | 48 'dist', |
| 61 'tests.jar', | 49 'tests.jar', |
| 62 ], | 50 ], |
| 63 'message': 'Building dartc.', | 51 'message': 'Building dartc.', |
| 64 }, | 52 }, |
| 65 { | 53 { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 79 }, | 67 }, |
| 80 ], | 68 ], |
| 81 }, | 69 }, |
| 82 { | 70 { |
| 83 # 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. |
| 84 'target_name': 'dummy', | 72 'target_name': 'dummy', |
| 85 'type': 'none', | 73 'type': 'none', |
| 86 }, | 74 }, |
| 87 ], | 75 ], |
| 88 } | 76 } |
| OLD | NEW |