| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, 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 # TODO(vsm): Remove this file and use dart.gyp once that can be pulled | 5 # TODO(vsm): Remove this file and use dart.gyp once that can be pulled |
| 6 # into the dartium build. | 6 # into the dartium build. |
| 7 { | 7 { |
| 8 'includes': [ | 8 'includes': [ |
| 9 # TODO(iposva): Move shared gyp setup to a shared location. | 9 # TODO(iposva): Move shared gyp setup to a shared location. |
| 10 '../tools/gyp/xcode.gypi', | 10 '../tools/gyp/xcode.gypi', |
| 11 # TODO(mmendez): Add the appropriate gypi includes here. | 11 # TODO(mmendez): Add the appropriate gypi includes here. |
| 12 'closure_compiler_sources.gypi', | |
| 13 ], | 12 ], |
| 14 'targets': [ | 13 'targets': [ |
| 15 { | 14 { |
| 16 'target_name': 'dartc', | 15 'target_name': 'dartc', |
| 17 'type': 'none', | 16 'type': 'none', |
| 18 'dependencies': [ | |
| 19 'closure_compiler', | |
| 20 ], | |
| 21 'actions': [ | 17 'actions': [ |
| 22 { | 18 { |
| 23 'action_name': 'Build and test', | 19 'action_name': 'Build and test', |
| 24 'inputs': [ | 20 'inputs': [ |
| 25 ], | 21 ], |
| 26 'outputs': [ | 22 'outputs': [ |
| 27 'dummy_target', | 23 'dummy_target', |
| 28 ], | 24 ], |
| 29 'action' : [ | 25 'action' : [ |
| 30 '../third_party/apache_ant/v1_7_1/bin/ant', | 26 '../third_party/apache_ant/v1_7_1/bin/ant', |
| 31 '-Dbuild.dir=<(PRODUCT_DIR)/ant-out', | 27 '-Dbuild.dir=<(PRODUCT_DIR)/ant-out', |
| 32 '-Dclosure_compiler.jar=<(PRODUCT_DIR)/closure_out/compiler.jar', | |
| 33 'clean', | 28 'clean', |
| 34 'dist', | 29 'dist', |
| 35 ], | 30 ], |
| 36 'message': 'Building dartc.', | 31 'message': 'Building dartc.', |
| 37 }, | 32 }, |
| 38 ], | 33 ], |
| 39 }, | 34 }, |
| 40 { | 35 { |
| 41 'target_name': 'closure_compiler', | 36 # GYP won't generate a catch-all target if there's only one target. |
| 37 'target_name': 'dummy', |
| 42 'type': 'none', | 38 'type': 'none', |
| 43 'dependencies': [], | 39 }, |
| 44 'actions': [ | |
| 45 { | |
| 46 'action_name': 'build_closure_compiler', | |
| 47 'inputs': [ | |
| 48 '<@(closure_compiler_src_sources)', | |
| 49 '<@(closure_compiler_src_resources)', | |
| 50 ], | |
| 51 'outputs': [ | |
| 52 '<(PRODUCT_DIR)/closure_out/compiler.jar' | |
| 53 ], | |
| 54 'action': [ | |
| 55 '../third_party/apache_ant/v1_7_1/bin/ant', | |
| 56 '-f', | |
| 57 '../third_party/closure_compiler_src/build.xml', | |
| 58 '-Dclosure.build.dir=<(PRODUCT_DIR)/closure_out', | |
| 59 'clean', | |
| 60 'jar', | |
| 61 ], | |
| 62 'message': 'Building closure compiler' | |
| 63 }, | |
| 64 ] | |
| 65 } | |
| 66 ], | 40 ], |
| 67 } | 41 } |
| OLD | NEW |