Index: content/content_shell.gypi |
diff --git a/content/content_shell.gypi b/content/content_shell.gypi |
index aeecdffda801b1e5d5ee5b1643d9c1f3e51f9e15..d34732f5238999c7d05b3de2392a9895fbd78b71 100644 |
--- a/content/content_shell.gypi |
+++ b/content/content_shell.gypi |
@@ -436,5 +436,35 @@ |
}, # target content_shell_helper_app |
], |
}], # OS=="mac" |
- ], |
+ ['OS=="android"', { |
+ 'targets': [ |
+ { |
+ 'target_name': 'content_shell_apk', |
+ 'type': 'none', |
+ 'actions': [ |
+ { |
+ 'action_name': 'content_shell_apk', |
+ 'inputs': [ |
+ '<(DEPTH)/content/shell/android/content_shell_apk.xml', |
+ '<!@(find shell/android/java -name "*.java")', |
+ ], |
+ 'outputs': [ |
+ # Awkwardly, we build a Debug APK even when gyp is in |
+ # Release mode. I don't think it matters (e.g. we're |
+ # probably happy to not codesign) but naming should be |
+ # fixed. |
+ '<(PRODUCT_DIR)/ContentShell-debug.apk', |
+ ], |
+ 'action': [ |
+ 'ant', |
+ '-DPRODUCT_DIR=<(PRODUCT_DIR)', |
+ '-buildfile', |
+ '<(DEPTH)/content/shell/android/content_shell_apk.xml', |
+ ] |
+ } |
+ ], |
+ }, |
+ ], |
+ }], # OS=="android" |
+ ] |
} |