diff options
author | Steven Moreland <smoreland@google.com> | 2017-11-13 09:20:37 -0800 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2017-11-13 10:00:18 -0800 |
commit | 8db261bc99e1e673d3eb6dad73278e8a5311aadd (patch) | |
tree | c722c5b2d801da80ea171ab03d1ae4d85059ec1c /usb/1.0 | |
parent | 446e97afaf2619030c44b23a07c1074349ca816f (diff) | |
download | platform_hardware_interfaces-8db261bc99e1e673d3eb6dad73278e8a5311aadd.tar.gz platform_hardware_interfaces-8db261bc99e1e673d3eb6dad73278e8a5311aadd.tar.bz2 platform_hardware_interfaces-8db261bc99e1e673d3eb6dad73278e8a5311aadd.zip |
Updating makefiles for hidl_interface.
Bug: 64487114
Test: manual
Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Diffstat (limited to 'usb/1.0')
-rw-r--r-- | usb/1.0/Android.bp | 206 |
1 files changed, 18 insertions, 188 deletions
diff --git a/usb/1.0/Android.bp b/usb/1.0/Android.bp index f733e36c42..6676fa599e 100644 --- a/usb/1.0/Android.bp +++ b/usb/1.0/Android.bp @@ -1,199 +1,29 @@ -// This file is autogenerated by hidl-gen. Do not edit manually. +// This file is autogenerated by hidl-gen -Landroidbp. -filegroup { - name: "android.hardware.usb@1.0_hal", - srcs: [ - "types.hal", - "IUsb.hal", - "IUsbCallback.hal", - ], -} - -genrule { - name: "android.hardware.usb@1.0_genc++", - tools: ["hidl-gen"], - cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.0", - srcs: [ - ":android.hardware.usb@1.0_hal", - ], - out: [ - "android/hardware/usb/1.0/types.cpp", - "android/hardware/usb/1.0/UsbAll.cpp", - "android/hardware/usb/1.0/UsbCallbackAll.cpp", - ], -} - -genrule { - name: "android.hardware.usb@1.0_genc++_headers", - tools: ["hidl-gen"], - cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.0", - srcs: [ - ":android.hardware.usb@1.0_hal", - ], - out: [ - "android/hardware/usb/1.0/types.h", - "android/hardware/usb/1.0/hwtypes.h", - "android/hardware/usb/1.0/IUsb.h", - "android/hardware/usb/1.0/IHwUsb.h", - "android/hardware/usb/1.0/BnHwUsb.h", - "android/hardware/usb/1.0/BpHwUsb.h", - "android/hardware/usb/1.0/BsUsb.h", - "android/hardware/usb/1.0/IUsbCallback.h", - "android/hardware/usb/1.0/IHwUsbCallback.h", - "android/hardware/usb/1.0/BnHwUsbCallback.h", - "android/hardware/usb/1.0/BpHwUsbCallback.h", - "android/hardware/usb/1.0/BsUsbCallback.h", - ], -} - -cc_library { +hidl_interface { name: "android.hardware.usb@1.0", - defaults: ["hidl-module-defaults"], - generated_sources: ["android.hardware.usb@1.0_genc++"], - generated_headers: ["android.hardware.usb@1.0_genc++_headers"], - export_generated_headers: ["android.hardware.usb@1.0_genc++_headers"], - vendor_available: true, + root: "android.hardware", vndk: { enabled: true, }, - shared_libs: [ - "libhidlbase", - "libhidltransport", - "libhwbinder", - "liblog", - "libutils", - "libcutils", - ], - export_shared_lib_headers: [ - "libhidlbase", - "libhidltransport", - "libhwbinder", - "libutils", - ], -} - -genrule { - name: "android.hardware.usb-V1.0-java_gen_java", - tools: ["hidl-gen"], - cmd: "$(location hidl-gen) -o $(genDir) -Ljava -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.0", - srcs: [ - ":android.hardware.usb@1.0_hal", - ], - out: [ - "android/hardware/usb/V1_0/PortDataRole.java", - "android/hardware/usb/V1_0/PortMode.java", - "android/hardware/usb/V1_0/PortPowerRole.java", - "android/hardware/usb/V1_0/PortRole.java", - "android/hardware/usb/V1_0/PortRoleType.java", - "android/hardware/usb/V1_0/PortStatus.java", - "android/hardware/usb/V1_0/Status.java", - "android/hardware/usb/V1_0/IUsb.java", - "android/hardware/usb/V1_0/IUsbCallback.java", - ], -} - -java_library { - name: "android.hardware.usb-V1.0-java", - no_framework_libs: true, - defaults: ["hidl-java-module-defaults"], - srcs: [":android.hardware.usb-V1.0-java_gen_java"], - libs: [ - "hwbinder", - "android.hidl.base-V1.0-java", - ] -} - -genrule { - name: "android.hardware.usb-V1.0-java-constants_gen_java", - tools: ["hidl-gen"], - cmd: "$(location hidl-gen) -o $(genDir) -Ljava-constants -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.0", srcs: [ - ":android.hardware.usb@1.0_hal", - ], - out: [ - "android/hardware/usb/V1_0/Constants.java", - ], -} - -java_library { - name: "android.hardware.usb-V1.0-java-constants", - no_framework_libs: true, - defaults: ["hidl-java-module-defaults"], - srcs: [":android.hardware.usb-V1.0-java-constants_gen_java"], -} - -genrule { - name: "android.hardware.usb@1.0-adapter-helper_genc++", - tools: ["hidl-gen"], - cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.0", - srcs: [ - ":android.hardware.usb@1.0_hal", - ], - out: [ - "android/hardware/usb/1.0/AUsb.cpp", - "android/hardware/usb/1.0/AUsbCallback.cpp", - ], -} - -genrule { - name: "android.hardware.usb@1.0-adapter-helper_genc++_headers", - tools: ["hidl-gen"], - cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.0", - srcs: [ - ":android.hardware.usb@1.0_hal", - ], - out: [ - "android/hardware/usb/1.0/AUsb.h", - "android/hardware/usb/1.0/AUsbCallback.h", + "types.hal", + "IUsb.hal", + "IUsbCallback.hal", ], -} - -cc_library { - name: "android.hardware.usb@1.0-adapter-helper", - defaults: ["hidl-module-defaults"], - generated_sources: ["android.hardware.usb@1.0-adapter-helper_genc++"], - generated_headers: ["android.hardware.usb@1.0-adapter-helper_genc++_headers"], - export_generated_headers: ["android.hardware.usb@1.0-adapter-helper_genc++_headers"], - vendor_available: true, - shared_libs: [ - "libhidlbase", - "libhidltransport", - "libhwbinder", - "liblog", - "libutils", - "libcutils", - "libhidladapter", - "android.hardware.usb@1.0", - "android.hidl.base@1.0-adapter-helper", + interfaces: [ + "android.hidl.base@1.0", ], - export_shared_lib_headers: [ - "libhidlbase", - "libhidltransport", - "libhwbinder", - "libutils", - "libhidladapter", - "android.hardware.usb@1.0", - "android.hidl.base@1.0-adapter-helper", + types: [ + "PortDataRole", + "PortMode", + "PortPowerRole", + "PortRole", + "PortRoleType", + "PortStatus", + "Status", ], + gen_java: true, + gen_java_constants: true, } -genrule { - name: "android.hardware.usb@1.0-adapter_genc++", - tools: ["hidl-gen"], - cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.0", - out: ["main.cpp"] -} - -cc_test { - name: "android.hardware.usb@1.0-adapter", - defaults: ["hidl-module-defaults"], - shared_libs: [ - "libhidladapter", - "libhidlbase", - "libhidltransport", - "libutils", - "android.hardware.usb@1.0", - "android.hardware.usb@1.0-adapter-helper", - ], - generated_sources: ["android.hardware.usb@1.0-adapter_genc++"], -} |