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