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

Unified Diff: build/java_aidl.gypi

Issue 10855060: Make java_aidl targets export include directories (Closed) Base URL: http://git.chromium.org/chromium/src.git@ant
Patch Set: Created 8 years, 4 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/java.gypi ('k') | 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 9cdcf62d2552b81862e20054d9a111d571e55894..84e645e65800c997f875616f2c3a8c17a02b1833 100644
--- a/build/java_aidl.gypi
+++ b/build/java_aidl.gypi
@@ -10,6 +10,7 @@
# 'target_name': 'aidl_aidl-file-name',
# 'type': 'none',
# 'variables': {
+# 'package_name': <name-of-package>
# 'aidl_interface_file': '<interface-path>/<interface-file>.aidl',
# },
# 'sources': {
@@ -25,8 +26,15 @@
# <(PRODUCT_DIR)/lib.java/<input-file1>.java
# <(PRODUCT_DIR)/lib.java/<input-file2>.java
# ...
+#
+# TODO(cjhopman): dependents need to rebuild when this target's inputs have changed.
{
+ 'direct_dependent_settings': {
+ 'variables': {
+ 'additional_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/'],
+ },
+ },
'rules': [
{
'rule_name': 'compile_aidl',
@@ -36,14 +44,14 @@
'<(aidl_interface_file)',
],
'outputs': [
- '<(PRODUCT_DIR)/lib.java/<(RULE_INPUT_ROOT).java',
+ '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java',
],
'action': [
'<(android_sdk_tools)/aidl',
'-p<(android_sdk)/framework.aidl',
'-p<(aidl_interface_file)',
'<(RULE_INPUT_PATH)',
- '<(PRODUCT_DIR)/lib.java/<(RULE_INPUT_ROOT).java',
+ '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java',
],
},
],
« no previous file with comments | « build/java.gypi ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698