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

Unified Diff: build/java_aidl.gypi

Issue 11365055: Initial braille support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up gyp, add android OS condition Created 8 years 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/content.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/java_aidl.gypi
diff --git a/build/java_aidl.gypi b/build/java_aidl.gypi
index 9833256a4f1729c5d13f44ca312a863fe1309aa5..8b022a5344b54c53764318f77d7ccbd1bfabdd88 100644
--- a/build/java_aidl.gypi
+++ b/build/java_aidl.gypi
@@ -12,6 +12,7 @@
# 'variables': {
# 'package_name': <name-of-package>
# 'aidl_interface_file': '<interface-path>/<interface-file>.aidl',
+# 'aidl_import_include': '<(DEPTH)/<path-to-src-dir>',
# },
# 'sources': {
# '<input-path1>/<input-file1>.aidl',
@@ -27,6 +28,10 @@
# <(PRODUCT_DIR)/lib.java/<input-file2>.java
# ...
#
+# Optional variables:
+# aidl_import_include - This should be an absolute path to your java src folder
+# that contains the classes that are imported by your aidl files.
+#
# TODO(cjhopman): dependents need to rebuild when this target's inputs have changed.
{
@@ -35,6 +40,17 @@
'generated_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/'],
},
},
+ 'variables': {
+ 'aidl_import_include%': '',
+ 'additional_aidl_arguments': [],
+ },
+ 'conditions': [
+ ['"<(aidl_import_include)"!=""', {
+ 'variables': {
+ 'additional_aidl_arguments': [ '-I<(aidl_import_include)' ]
+ }
+ }],
+ ],
'rules': [
{
'rule_name': 'compile_aidl',
@@ -50,6 +66,7 @@
'<(android_sdk_tools)/aidl',
'-p<(android_sdk)/framework.aidl',
'-p<(aidl_interface_file)',
+ '<@(additional_aidl_arguments)',
'<(RULE_INPUT_PATH)',
'<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java',
],
« no previous file with comments | « no previous file | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698