diff options
Diffstat (limited to 'tetheroffload/control/1.0/Android.bp')
-rw-r--r-- | tetheroffload/control/1.0/Android.bp | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/tetheroffload/control/1.0/Android.bp b/tetheroffload/control/1.0/Android.bp index 72f410e1..ba730a5f 100644 --- a/tetheroffload/control/1.0/Android.bp +++ b/tetheroffload/control/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.tetheroffload.control@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.tetheroffload.control@1.0", | ||
79 | srcs: [ | ||
80 | ":android.hardware.tetheroffload.control@1.0_hal", | ||
81 | ], | ||
82 | out: [ | ||
83 | "android/hardware/tetheroffload/control/1.0/AOffloadControl.cpp", | ||
84 | "android/hardware/tetheroffload/control/1.0/ATetheringOffloadCallback.cpp", | ||
85 | ], | ||
86 | } | ||
87 | |||
88 | genrule { | ||
89 | name: "android.hardware.tetheroffload.control@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.tetheroffload.control@1.0", | ||
92 | srcs: [ | ||
93 | ":android.hardware.tetheroffload.control@1.0_hal", | ||
94 | ], | ||
95 | out: [ | ||
96 | "android/hardware/tetheroffload/control/1.0/AOffloadControl.h", | ||
97 | "android/hardware/tetheroffload/control/1.0/ATetheringOffloadCallback.h", | ||
98 | ], | ||
99 | } | ||
100 | |||
101 | |||
102 | cc_library { | ||
103 | name: "android.hardware.tetheroffload.control@1.0-adapter-helper", | ||
104 | defaults: ["hidl-module-defaults"], | ||
105 | generated_sources: ["android.hardware.tetheroffload.control@1.0-adapter-helper_genc++"], | ||
106 | generated_headers: ["android.hardware.tetheroffload.control@1.0-adapter-helper_genc++_headers"], | ||
107 | export_generated_headers: ["android.hardware.tetheroffload.control@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.tetheroffload.control@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.tetheroffload.control@1.0", | ||
127 | "android.hidl.base@1.0-adapter-helper", | ||
128 | ], | ||
129 | } | ||
130 | |||
131 | genrule { | ||
132 | name: "android.hardware.tetheroffload.control@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.tetheroffload.control@1.0", | ||
135 | out: ["main.cpp"]} | ||
136 | |||
137 | cc_test { | ||
138 | name: "android.hardware.tetheroffload.control@1.0-adapter", | ||
139 | shared_libs: [ | ||
140 | "libhidladapter", | ||
141 | "libhidlbase", | ||
142 | "libhidltransport", | ||
143 | "libutils", | ||
144 | "android.hardware.tetheroffload.control@1.0", | ||
145 | "android.hardware.tetheroffload.control@1.0-adapter-helper", | ||
146 | ], | ||
147 | generated_sources: ["android.hardware.tetheroffload.control@1.0-adapter_genc++"], | ||
148 | } | ||