diff options
author | Zhuoyao Zhang <zhuoyao@google.com> | 2017-02-01 20:53:21 -0800 |
---|---|---|
committer | Zhuoyao Zhang <zhuoyao@google.com> | 2017-02-01 20:53:21 -0800 |
commit | bd752892b379e0f4ab924cea8a28ddc9de6cccdc (patch) | |
tree | c36cdf42b4082235e086a2fc465cf33ab0d5feac /radio/1.0/Android.bp | |
parent | faad7891fb9c0ec45371ff54f1eb0007441523df (diff) | |
download | platform_hardware_interfaces-bd752892b379e0f4ab924cea8a28ddc9de6cccdc.tar.gz platform_hardware_interfaces-bd752892b379e0f4ab924cea8a28ddc9de6cccdc.tar.bz2 platform_hardware_interfaces-bd752892b379e0f4ab924cea8a28ddc9de6cccdc.zip |
Support driver/profiler for all hals.
* Update the make file to generate driver/profiler for hals.
Test: mma
Change-Id: I2a91d913b05beb8e1ecf28a205852f848ef1f5ee
Diffstat (limited to 'radio/1.0/Android.bp')
-rw-r--r-- | radio/1.0/Android.bp | 206 |
1 files changed, 21 insertions, 185 deletions
diff --git a/radio/1.0/Android.bp b/radio/1.0/Android.bp index e17d9498d2..7bff57411d 100644 --- a/radio/1.0/Android.bp +++ b/radio/1.0/Android.bp @@ -162,218 +162,54 @@ cc_library_shared { } genrule { - name: "android.hardware.radio@1.0-IRadio-vts.profiler_genc++", + name: "android.hardware.radio@1.0-vts.profiler_genc++", tools: ["hidl-gen", "vtsc"], cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/radio/1.0/ $(genDir)/android/hardware/radio/1.0/", srcs: [ - "IRadio.hal", "types.hal", - ], - out: [ - "android/hardware/radio/1.0/Radio.vts.cpp", - "android/hardware/radio/1.0/types.vts.cpp", - ], -} - -genrule { - name: "android.hardware.radio@1.0-IRadio-vts.profiler_genc++_headers", - tools: ["hidl-gen", "vtsc"], - cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/radio/1.0/ $(genDir)/android/hardware/radio/1.0/", - srcs: [ "IRadio.hal", - "types.hal", - ], - out: [ - "android/hardware/radio/1.0/Radio.vts.h", - "android/hardware/radio/1.0/types.vts.h", - ], -} - -cc_library_shared { - name: "android.hardware.radio@1.0-IRadio-vts.profiler", - generated_sources: ["android.hardware.radio@1.0-IRadio-vts.profiler_genc++"], - generated_headers: ["android.hardware.radio@1.0-IRadio-vts.profiler_genc++_headers"], - export_generated_headers: ["android.hardware.radio@1.0-IRadio-vts.profiler_genc++_headers"], - shared_libs: [ - "libbase", - "libhidlbase", - "libhidltransport", - "libvts_profiling", - "libvts_multidevice_proto", - "libprotobuf-cpp-full", - "android.hidl.base@1.0", - "android.hardware.radio@1.0", - ], -} - -genrule { - name: "android.hardware.radio@1.0-IRadioIndication-vts.profiler_genc++", - tools: ["hidl-gen", "vtsc"], - cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/radio/1.0/ $(genDir)/android/hardware/radio/1.0/", - srcs: [ "IRadioIndication.hal", - "types.hal", - ], - out: [ - "android/hardware/radio/1.0/RadioIndication.vts.cpp", - "android/hardware/radio/1.0/types.vts.cpp", - ], -} - -genrule { - name: "android.hardware.radio@1.0-IRadioIndication-vts.profiler_genc++_headers", - tools: ["hidl-gen", "vtsc"], - cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/radio/1.0/ $(genDir)/android/hardware/radio/1.0/", - srcs: [ - "IRadioIndication.hal", - "types.hal", - ], - out: [ - "android/hardware/radio/1.0/RadioIndication.vts.h", - "android/hardware/radio/1.0/types.vts.h", - ], -} - -cc_library_shared { - name: "android.hardware.radio@1.0-IRadioIndication-vts.profiler", - generated_sources: ["android.hardware.radio@1.0-IRadioIndication-vts.profiler_genc++"], - generated_headers: ["android.hardware.radio@1.0-IRadioIndication-vts.profiler_genc++_headers"], - export_generated_headers: ["android.hardware.radio@1.0-IRadioIndication-vts.profiler_genc++_headers"], - shared_libs: [ - "libbase", - "libhidlbase", - "libhidltransport", - "libvts_profiling", - "libvts_multidevice_proto", - "libprotobuf-cpp-full", - "android.hidl.base@1.0", - "android.hardware.radio@1.0", - ], -} - -genrule { - name: "android.hardware.radio@1.0-IRadioResponse-vts.profiler_genc++", - tools: ["hidl-gen", "vtsc"], - cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/radio/1.0/ $(genDir)/android/hardware/radio/1.0/", - srcs: [ - "IRadioResponse.hal", - "types.hal", - ], - out: [ - "android/hardware/radio/1.0/RadioResponse.vts.cpp", - "android/hardware/radio/1.0/types.vts.cpp", - ], -} - -genrule { - name: "android.hardware.radio@1.0-IRadioResponse-vts.profiler_genc++_headers", - tools: ["hidl-gen", "vtsc"], - cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/radio/1.0/ $(genDir)/android/hardware/radio/1.0/", - srcs: [ "IRadioResponse.hal", - "types.hal", - ], - out: [ - "android/hardware/radio/1.0/RadioResponse.vts.h", - "android/hardware/radio/1.0/types.vts.h", - ], -} - -cc_library_shared { - name: "android.hardware.radio@1.0-IRadioResponse-vts.profiler", - generated_sources: ["android.hardware.radio@1.0-IRadioResponse-vts.profiler_genc++"], - generated_headers: ["android.hardware.radio@1.0-IRadioResponse-vts.profiler_genc++_headers"], - export_generated_headers: ["android.hardware.radio@1.0-IRadioResponse-vts.profiler_genc++_headers"], - shared_libs: [ - "libbase", - "libhidlbase", - "libhidltransport", - "libvts_profiling", - "libvts_multidevice_proto", - "libprotobuf-cpp-full", - "android.hidl.base@1.0", - "android.hardware.radio@1.0", - ], -} - -genrule { - name: "android.hardware.radio@1.0-ISap-vts.profiler_genc++", - tools: ["hidl-gen", "vtsc"], - cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/radio/1.0/ $(genDir)/android/hardware/radio/1.0/", - srcs: [ "ISap.hal", - "types.hal", - ], - out: [ - "android/hardware/radio/1.0/Sap.vts.cpp", - "android/hardware/radio/1.0/types.vts.cpp", - ], -} - -genrule { - name: "android.hardware.radio@1.0-ISap-vts.profiler_genc++_headers", - tools: ["hidl-gen", "vtsc"], - cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/radio/1.0/ $(genDir)/android/hardware/radio/1.0/", - srcs: [ - "ISap.hal", - "types.hal", - ], - out: [ - "android/hardware/radio/1.0/Sap.vts.h", - "android/hardware/radio/1.0/types.vts.h", - ], -} - -cc_library_shared { - name: "android.hardware.radio@1.0-ISap-vts.profiler", - generated_sources: ["android.hardware.radio@1.0-ISap-vts.profiler_genc++"], - generated_headers: ["android.hardware.radio@1.0-ISap-vts.profiler_genc++_headers"], - export_generated_headers: ["android.hardware.radio@1.0-ISap-vts.profiler_genc++_headers"], - shared_libs: [ - "libbase", - "libhidlbase", - "libhidltransport", - "libvts_profiling", - "libvts_multidevice_proto", - "libprotobuf-cpp-full", - "android.hidl.base@1.0", - "android.hardware.radio@1.0", - ], -} - -genrule { - name: "android.hardware.radio@1.0-ISapCallback-vts.profiler_genc++", - tools: ["hidl-gen", "vtsc"], - cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/radio/1.0/ $(genDir)/android/hardware/radio/1.0/", - srcs: [ "ISapCallback.hal", - "types.hal", ], out: [ - "android/hardware/radio/1.0/SapCallback.vts.cpp", "android/hardware/radio/1.0/types.vts.cpp", + "android/hardware/radio/1.0/Radio.vts.cpp", + "android/hardware/radio/1.0/RadioIndication.vts.cpp", + "android/hardware/radio/1.0/RadioResponse.vts.cpp", + "android/hardware/radio/1.0/Sap.vts.cpp", + "android/hardware/radio/1.0/SapCallback.vts.cpp", ], } genrule { - name: "android.hardware.radio@1.0-ISapCallback-vts.profiler_genc++_headers", + name: "android.hardware.radio@1.0-vts.profiler_genc++_headers", tools: ["hidl-gen", "vtsc"], cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/radio/1.0/ $(genDir)/android/hardware/radio/1.0/", srcs: [ - "ISapCallback.hal", "types.hal", + "IRadio.hal", + "IRadioIndication.hal", + "IRadioResponse.hal", + "ISap.hal", + "ISapCallback.hal", ], out: [ - "android/hardware/radio/1.0/SapCallback.vts.h", "android/hardware/radio/1.0/types.vts.h", + "android/hardware/radio/1.0/Radio.vts.h", + "android/hardware/radio/1.0/RadioIndication.vts.h", + "android/hardware/radio/1.0/RadioResponse.vts.h", + "android/hardware/radio/1.0/Sap.vts.h", + "android/hardware/radio/1.0/SapCallback.vts.h", ], } cc_library_shared { - name: "android.hardware.radio@1.0-ISapCallback-vts.profiler", - generated_sources: ["android.hardware.radio@1.0-ISapCallback-vts.profiler_genc++"], - generated_headers: ["android.hardware.radio@1.0-ISapCallback-vts.profiler_genc++_headers"], - export_generated_headers: ["android.hardware.radio@1.0-ISapCallback-vts.profiler_genc++_headers"], + name: "android.hardware.radio@1.0-vts.profiler", + generated_sources: ["android.hardware.radio@1.0-vts.profiler_genc++"], + generated_headers: ["android.hardware.radio@1.0-vts.profiler_genc++_headers"], + export_generated_headers: ["android.hardware.radio@1.0-vts.profiler_genc++_headers"], shared_libs: [ "libbase", "libhidlbase", |