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

Unified Diff: content/content_shell.gypi

Issue 10969020: Make ContentShell create a jar containing its .class output (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 | « no previous file | content/shell/android/java/content_shell_apk.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/content_shell.gypi
diff --git a/content/content_shell.gypi b/content/content_shell.gypi
index 1e77bf1373228196fad2342f9f0dfe2b9f84d61d..059e93af12d7ea3f89bcf039f54fd5d5261760af 100644
--- a/content/content_shell.gypi
+++ b/content/content_shell.gypi
@@ -631,6 +631,46 @@
],
'includes': [ '../build/java_apk.gypi' ],
},
+ {
+ # content_shell_apk creates a .jar as a side effect. Any java targets
+ # that need that .jar in their classpath should depend on this target,
+ # content_shell_java.
+ 'target_name': 'content_shell_java',
+ 'type': 'none',
+ 'outputs': [
+ '<(PRODUCT_DIR)/lib.java/chromium_content_shell.jar',
+ ],
+ 'dependencies': [
+ 'content_java',
+ 'content_shell_apk',
+ '../base/base.gyp:base_java',
+ '../media/media.gyp:media_java',
+ '../net/net.gyp:net_java',
+ '../ui/ui.gyp:ui_java',
+ ],
+ 'export_dependent_settings': [
+ 'content_java',
+ '../base/base.gyp:base_java',
+ '../media/media.gyp:media_java',
+ '../net/net.gyp:net_java',
+ '../ui/ui.gyp:ui_java',
+ ],
+ 'direct_dependent_settings': {
+ 'variables': {
+ 'input_jars_paths': ['<(PRODUCT_DIR)/lib.java/chromium_content_shell.jar'],
+ },
+ },
+ # Add an action with the appropriate output. This allows the generated
+ # buildfiles to determine which target the output corresponds to.
+ 'actions': [
+ {
+ 'action_name': 'fake_generate_jar',
+ 'inputs': [],
+ 'outputs': ['<(PRODUCT_DIR)/lib.java/chromium_content_shell.jar'],
+ 'action': [],
+ },
+ ],
+ },
],
}], # OS=="android"
]
« no previous file with comments | « no previous file | content/shell/android/java/content_shell_apk.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698