| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 { | |
| 5 'targets': [ | |
| 6 { | |
| 7 # Target for creating common output build directories. Creating output | |
| 8 # dirs beforehand ensures that build scripts can assume these folders to | |
| 9 # exist and there are no race conditions resulting from build scripts | |
| 10 # trying to create these directories. | |
| 11 # The build/java.gypi target depends on this target. | |
| 12 'target_name': 'build_output_dirs', | |
| 13 'type': 'none', | |
| 14 'actions': [ | |
| 15 { | |
| 16 'action_name': 'create_java_output_dirs', | |
| 17 'variables' : { | |
| 18 'output_dirs' : [ | |
| 19 '<(PRODUCT_DIR)/apks', | |
| 20 '<(PRODUCT_DIR)/lib.java', | |
| 21 '<(PRODUCT_DIR)/test.lib.java', | |
| 22 ] | |
| 23 }, | |
| 24 'inputs' : [], | |
| 25 # By not specifying any outputs, we ensure that this command isn't | |
| 26 # re-run when the output directories are touched (i.e. apks are | |
| 27 # written to them). | |
| 28 'outputs': [''], | |
| 29 'action': [ | |
| 30 'mkdir', | |
| 31 '-p', | |
| 32 '<@(output_dirs)', | |
| 33 ], | |
| 34 }, | |
| 35 ], | |
| 36 }, # build_output_dirs | |
| 37 ], # targets | |
| 38 } | |
| OLD | NEW |