| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 { | 4 { |
| 5 'conditions': [ | 5 'conditions': [ |
| 6 ['component == "shared_library"', { | 6 ['component == "shared_library"', { |
| 7 'targets': [ | 7 'targets': [ |
| 8 { | 8 { |
| 9 # These libraries from the Android ndk are required to be packaged wit
h | 9 # These libraries from the Android ndk are required to be packaged wit
h |
| 10 # any APK that is built with them. build/java_apk.gypi expects any | 10 # any APK that is built with them. build/java_apk.gypi expects any |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 ], | 47 ], |
| 48 }, | 48 }, |
| 49 { | 49 { |
| 50 # Target for creating common output build directories. Creating output | 50 # Target for creating common output build directories. Creating output |
| 51 # dirs beforehand ensures that build scripts can assume these folders to | 51 # dirs beforehand ensures that build scripts can assume these folders to |
| 52 # exist and there are no race conditions resulting from build scripts | 52 # exist and there are no race conditions resulting from build scripts |
| 53 # trying to create these directories. | 53 # trying to create these directories. |
| 54 # The build/java.gypi target depends on this target. | 54 # The build/java.gypi target depends on this target. |
| 55 'target_name': 'build_output_dirs', | 55 'target_name': 'build_output_dirs', |
| 56 'toolsets': ['host', 'target'], | |
| 57 'type': 'none', | 56 'type': 'none', |
| 58 'actions': [ | 57 'actions': [ |
| 59 { | 58 { |
| 60 'action_name': 'create_java_output_dirs', | 59 'action_name': 'create_java_output_dirs', |
| 61 'variables' : { | 60 'variables' : { |
| 62 'output_dirs' : [ | 61 'output_dirs' : [ |
| 63 '<(PRODUCT_DIR)/apks', | 62 '<(PRODUCT_DIR)/apks', |
| 64 '<(PRODUCT_DIR)/lib.java', | 63 '<(PRODUCT_DIR)/lib.java', |
| 65 '<(PRODUCT_DIR)/test.lib.java', | 64 '<(PRODUCT_DIR)/test.lib.java', |
| 66 ] | 65 ] |
| 67 }, | 66 }, |
| 68 'inputs' : [], | 67 'inputs' : [], |
| 69 # By not specifying any outputs, we ensure that this command isn't | 68 # By not specifying any outputs, we ensure that this command isn't |
| 70 # re-run when the output directories are touched (i.e. apks are | 69 # re-run when the output directories are touched (i.e. apks are |
| 71 # written to them). | 70 # written to them). |
| 72 'outputs': [''], | 71 'outputs': [''], |
| 73 'action': [ | 72 'action': [ |
| 74 'mkdir', | 73 'mkdir', |
| 75 '-p', | 74 '-p', |
| 76 '<@(output_dirs)', | 75 '<@(output_dirs)', |
| 77 ], | 76 ], |
| 78 }, | 77 }, |
| 79 ], | 78 ], |
| 80 }, # build_output_dirs | 79 }, # build_output_dirs |
| 81 ] | 80 ] |
| 82 } | 81 } |
| 83 | 82 |
| OLD | NEW |