Index: base/base.gyp |
diff --git a/base/base.gyp b/base/base.gyp |
index 643836c65365ea765f2130067b6e5935d058a411..353cbd4a64aacb040615af0f91308b45037d8fea 100644 |
--- a/base/base.gyp |
+++ b/base/base.gyp |
@@ -926,6 +926,39 @@ |
['OS == "android"', { |
'targets': [ |
{ |
+ # Target for creating common output build directories. |
Yaron
2012/09/07 19:19:31
Seems like this may as well be in a build/ .gyp fi
shashi
2012/09/07 23:31:31
Done.
|
+ # Creating output dirs beforehand ensures that build |
+ # scripts can assume these folders to exist and there |
+ # are no race conditions resulting from build scripts |
+ # trying to create these directories. |
+ # The build/java.gypi target depends on this target. |
+ 'target_name': 'build_output_directories', |
+ 'type': 'none', |
+ 'actions': [ |
+ { |
+ 'action_name': 'create_output_dirs', |
cjhopman
2012/09/07 19:50:35
Maybe rename this to create_java_output_dirs.
shashi
2012/09/07 23:31:31
Done.
|
+ 'variables' : { |
+ 'output_dirs' : [ |
+ '<(PRODUCT_DIR)/apks', |
+ '<(PRODUCT_DIR)/lib.java', |
+ '<(PRODUCT_DIR)/test.lib.java', |
+ ] |
+ }, |
+ 'inputs' : [ |
+ '<(PRODUCT_DIR)' |
+ ], |
+ 'outputs': [ |
+ '<@(output_dirs)' |
+ ], |
+ 'action': [ |
+ 'mkdir', |
+ '-p', |
+ '<@(output_dirs)', |
+ ], |
+ }, |
+ ], |
+ }, |
+ { |
'target_name': 'base_jni_headers', |
'type': 'none', |
'sources': [ |