Split libhidl into base and transport.
libhidlbase contains "pure" classes that has nothing
to do with tranport level stuff. libhwbinder can now
safely depend on libhidlbase.
IBinder inheriting from IBase will be in a follow up
CL.
Bug: 32756130
Test: mma under hardware/interfaces
Test: hidl_test
Change-Id: Ie2bd80769df3816aab83789ba0d7fca9b5a2e52f
diff --git a/transport/Android.bp b/transport/Android.bp
new file mode 100644
index 0000000..032381a
--- /dev/null
+++ b/transport/Android.bp
@@ -0,0 +1,52 @@
+// Copyright (C) 2016 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+subdirs = [
+ "manager/1.0"
+]
+
+cc_library_shared {
+ name: "libhidltransport",
+ shared_libs: [
+ "libbase",
+ "liblog",
+ "libutils",
+ "libhidlbase",
+ "libhwbinder",
+ "libcutils",
+ ],
+ export_shared_lib_headers: [
+ "libbase",
+ "libutils",
+ "libhidlbase",
+ ],
+
+ export_include_dirs: ["include"],
+
+ generated_sources: ["android.hidl.manager@1.0_genc++"],
+ generated_headers: ["android.hidl.manager@1.0_genc++_headers"],
+ export_generated_headers: ["android.hidl.manager@1.0_genc++_headers"],
+
+ srcs: [
+ "HidlBinderSupport.cpp",
+ "ServiceManagement.cpp",
+ "Static.cpp"
+ ],
+
+ product_variables: {
+ debuggable: {
+ cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
+ },
+ },
+}