Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(915)

Unified Diff: build/android/gyp/process_resources.py

Issue 1348893002: Add app-as-shared-library flag in java_apk.gypi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/gyp/package_resources.py ('k') | build/android/package_resources_action.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/process_resources.py
diff --git a/build/android/gyp/process_resources.py b/build/android/gyp/process_resources.py
index e05e0fdff7255f5a9466909433d419f4c16d8fd8..77295724ff8b8d0341bd5c464dc513c1861f9271 100755
--- a/build/android/gyp/process_resources.py
+++ b/build/android/gyp/process_resources.py
@@ -48,6 +48,10 @@ def ParseArgs(args):
action='store_true',
help='Make a resource package that can be loaded by a different'
'application at runtime to access the package\'s resources.')
+ parser.add_option(
+ '--app-as-shared-lib',
+ action='store_true',
+ help='Make a resource package that can be loaded as shared library.')
parser.add_option('--resource-dirs',
help='Directories containing resources of this target.')
@@ -361,6 +365,8 @@ def main():
package_command += ['-G', options.proguard_file]
if options.shared_resources:
package_command.append('--shared-lib')
+ if options.app_as_shared_lib:
+ package_command.append('--app-as-shared-lib')
build_utils.CheckOutput(package_command, print_stderr=False)
if options.extra_res_packages:
« no previous file with comments | « build/android/gyp/package_resources.py ('k') | build/android/package_resources_action.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698