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

Unified Diff: build/jar_file_jni_generator.gypi

Issue 12710012: jar_file_jni_generator accepts jar_input_file optionally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/jar_file_jni_generator.gypi
diff --git a/build/jar_file_jni_generator.gypi b/build/jar_file_jni_generator.gypi
index dc02f25bca20df5f13588bb7044bfc5c4e7f88fc..2e1b08497b228823a63d2b1073337e24dd501b7c 100644
--- a/build/jar_file_jni_generator.gypi
+++ b/build/jar_file_jni_generator.gypi
@@ -15,6 +15,9 @@
# },
# 'includes': [ '../build/jar_file_jni_generator.gypi' ],
# },
+#
+# Optional variables:
+# input_jar_file - The input jar file, if omitted, android_sdk_jar will be used.
{
'variables': {
@@ -25,10 +28,12 @@
'action_name': 'generate_jni_headers_from_jar_file',
'inputs': [
'<(jni_generator)',
+ '<(input_jar_file)',
'<(android_sdk_jar)',
],
'variables': {
- 'java_class_name': '<!(basename <(input_java_class)|sed "s/\.class//")'
+ 'java_class_name': '<!(basename <(input_java_class)|sed "s/\.class//")',
+ 'input_jar_file%': '<(android_sdk_jar)'
},
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(java_class_name)_jni.h',
@@ -36,7 +41,7 @@
'action': [
'<(jni_generator)',
'-j',
- '<(android_sdk_jar)',
+ '<(input_jar_file)',
'--input_file',
'<(input_java_class)',
'--output_dir',
@@ -44,7 +49,7 @@
'--optimize_generation',
'<(optimize_jni_generation)',
],
- 'message': 'Generating JNI bindings from <(android_sdk_jar)/<(input_java_class)',
+ 'message': 'Generating JNI bindings from <(input_jar_file)/<(input_java_class)',
'process_outputs_as_sources': 1,
},
],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698