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'], |
56 'type': 'none', | 57 'type': 'none', |
57 'actions': [ | 58 'actions': [ |
58 { | 59 { |
59 'action_name': 'create_java_output_dirs', | 60 'action_name': 'create_java_output_dirs', |
60 'variables' : { | 61 'variables' : { |
61 'output_dirs' : [ | 62 'output_dirs' : [ |
62 '<(PRODUCT_DIR)/apks', | 63 '<(PRODUCT_DIR)/apks', |
63 '<(PRODUCT_DIR)/lib.java', | 64 '<(PRODUCT_DIR)/lib.java', |
64 '<(PRODUCT_DIR)/test.lib.java', | 65 '<(PRODUCT_DIR)/test.lib.java', |
65 ] | 66 ] |
66 }, | 67 }, |
67 'inputs' : [], | 68 'inputs' : [], |
68 # By not specifying any outputs, we ensure that this command isn't | 69 # By not specifying any outputs, we ensure that this command isn't |
69 # re-run when the output directories are touched (i.e. apks are | 70 # re-run when the output directories are touched (i.e. apks are |
70 # written to them). | 71 # written to them). |
71 'outputs': [''], | 72 'outputs': [''], |
72 'action': [ | 73 'action': [ |
73 'mkdir', | 74 'mkdir', |
74 '-p', | 75 '-p', |
75 '<@(output_dirs)', | 76 '<@(output_dirs)', |
76 ], | 77 ], |
77 }, | 78 }, |
78 ], | 79 ], |
79 }, # build_output_dirs | 80 }, # build_output_dirs |
80 ] | 81 ] |
81 } | 82 } |
82 | 83 |
OLD | NEW |