diff options
author | Steven Moreland | 2017-09-26 07:53:13 -0500 |
---|---|---|
committer | android-build-merger | 2017-09-26 07:53:13 -0500 |
commit | 97228c0b7de085b507b78a1bc16e15725de48e4e (patch) | |
tree | 9cecfb86b72b262236257568909208f7ada4e915 /sensors | |
parent | 43fbf0dcdcce755b05d5ddd2a9a9e0b4f1be1e97 (diff) | |
parent | b94d0c7290d606af36785ea864ec243d63d6ad39 (diff) | |
download | platform-hardware-interfaces-97228c0b7de085b507b78a1bc16e15725de48e4e.tar.gz platform-hardware-interfaces-97228c0b7de085b507b78a1bc16e15725de48e4e.tar.xz platform-hardware-interfaces-97228c0b7de085b507b78a1bc16e15725de48e4e.zip |
Update makefiles for hidl adapter. am: 26a0bb2762 am: 73949c1d7e
am: b94d0c7290
Change-Id: If766cffbcc003cc0cc5eb98969b924aa918fff44
Diffstat (limited to 'sensors')
-rw-r--r-- | sensors/1.0/Android.bp | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/sensors/1.0/Android.bp b/sensors/1.0/Android.bp index b2cda05d..6b67ebf5 100644 --- a/sensors/1.0/Android.bp +++ b/sensors/1.0/Android.bp | |||
@@ -64,3 +64,76 @@ cc_library { | |||
64 | "libutils", | 64 | "libutils", |
65 | ], | 65 | ], |
66 | } | 66 | } |
67 | |||
68 | genrule { | ||
69 | name: "android.hardware.sensors@1.0-adapter-helper_genc++", | ||
70 | tools: ["hidl-gen"], | ||
71 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.sensors@1.0", | ||
72 | srcs: [ | ||
73 | ":android.hardware.sensors@1.0_hal", | ||
74 | ], | ||
75 | out: [ | ||
76 | "android/hardware/sensors/1.0/ASensors.cpp", | ||
77 | ], | ||
78 | } | ||
79 | |||
80 | genrule { | ||
81 | name: "android.hardware.sensors@1.0-adapter-helper_genc++_headers", | ||
82 | tools: ["hidl-gen"], | ||
83 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.sensors@1.0", | ||
84 | srcs: [ | ||
85 | ":android.hardware.sensors@1.0_hal", | ||
86 | ], | ||
87 | out: [ | ||
88 | "android/hardware/sensors/1.0/ASensors.h", | ||
89 | ], | ||
90 | } | ||
91 | |||
92 | |||
93 | cc_library { | ||
94 | name: "android.hardware.sensors@1.0-adapter-helper", | ||
95 | defaults: ["hidl-module-defaults"], | ||
96 | generated_sources: ["android.hardware.sensors@1.0-adapter-helper_genc++"], | ||
97 | generated_headers: ["android.hardware.sensors@1.0-adapter-helper_genc++_headers"], | ||
98 | export_generated_headers: ["android.hardware.sensors@1.0-adapter-helper_genc++_headers"], | ||
99 | vendor_available: true, | ||
100 | shared_libs: [ | ||
101 | "libhidlbase", | ||
102 | "libhidltransport", | ||
103 | "libhwbinder", | ||
104 | "liblog", | ||
105 | "libutils", | ||
106 | "libcutils", | ||
107 | "libhidladapter", | ||
108 | "android.hardware.sensors@1.0", | ||
109 | "android.hidl.base@1.0-adapter-helper", | ||
110 | ], | ||
111 | export_shared_lib_headers: [ | ||
112 | "libhidlbase", | ||
113 | "libhidltransport", | ||
114 | "libhwbinder", | ||
115 | "libutils", | ||
116 | "libhidladapter", | ||
117 | "android.hardware.sensors@1.0", | ||
118 | "android.hidl.base@1.0-adapter-helper", | ||
119 | ], | ||
120 | } | ||
121 | |||
122 | genrule { | ||
123 | name: "android.hardware.sensors@1.0-adapter_genc++", | ||
124 | tools: ["hidl-gen"], | ||
125 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.sensors@1.0", | ||
126 | out: ["main.cpp"]} | ||
127 | |||
128 | cc_test { | ||
129 | name: "android.hardware.sensors@1.0-adapter", | ||
130 | shared_libs: [ | ||
131 | "libhidladapter", | ||
132 | "libhidlbase", | ||
133 | "libhidltransport", | ||
134 | "libutils", | ||
135 | "android.hardware.sensors@1.0", | ||
136 | "android.hardware.sensors@1.0-adapter-helper", | ||
137 | ], | ||
138 | generated_sources: ["android.hardware.sensors@1.0-adapter_genc++"], | ||
139 | } | ||