diff options
author | Elliott Hughes | 2015-03-25 18:40:13 -0500 |
---|---|---|
committer | Elliott Hughes | 2015-03-25 19:34:22 -0500 |
commit | c7f3c5c10cbe633683888a7e14a5fa436a2b32a6 (patch) | |
tree | 0bd49d1781861e92ca944ae4a4d468aeadfc7b04 /toolbox/Android.mk | |
parent | a0115bf78db6ef373754fade0fe4028ac8c88653 (diff) | |
download | platform-system-core-c7f3c5c10cbe633683888a7e14a5fa436a2b32a6.tar.gz platform-system-core-c7f3c5c10cbe633683888a7e14a5fa436a2b32a6.tar.xz platform-system-core-c7f3c5c10cbe633683888a7e14a5fa436a2b32a6.zip |
Auto-generate the getevent labels from <linux/input.h>.
Now we only have to remember to update the kernel uapi headers, which
we're pretty good at.
Change-Id: If04eb8c50882fff5e5e2a5d72664f5d4c4c538b1
Diffstat (limited to 'toolbox/Android.mk')
-rw-r--r-- | toolbox/Android.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toolbox/Android.mk b/toolbox/Android.mk index 9b57d59e2..a0a9909aa 100644 --- a/toolbox/Android.mk +++ b/toolbox/Android.mk | |||
@@ -102,6 +102,14 @@ $(TOOLS_H): $(LOCAL_PATH)/Android.mk | |||
102 | $(TOOLS_H): | 102 | $(TOOLS_H): |
103 | $(transform-generated-source) | 103 | $(transform-generated-source) |
104 | 104 | ||
105 | $(LOCAL_PATH)/getevent.c: $(intermediates)/input.h-labels.h | ||
106 | |||
107 | INPUT_H_LABELS_H := $(intermediates)/input.h-labels.h | ||
108 | $(INPUT_H_LABELS_H): PRIVATE_LOCAL_PATH := $(LOCAL_PATH) | ||
109 | $(INPUT_H_LABELS_H): PRIVATE_CUSTOM_TOOL = $(PRIVATE_LOCAL_PATH)/generate-input.h-labels.py > $@ | ||
110 | $(INPUT_H_LABELS_H): $(LOCAL_PATH)/Android.mk $(LOCAL_PATH)/generate-input.h-labels.py | ||
111 | $(INPUT_H_LABELS_H): | ||
112 | $(transform-generated-source) | ||
105 | 113 | ||
106 | # We only want 'r' on userdebug and eng builds. | 114 | # We only want 'r' on userdebug and eng builds. |
107 | include $(CLEAR_VARS) | 115 | include $(CLEAR_VARS) |