Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3eb292de authored by Keun Soo Yim's avatar Keun Soo Yim Committed by Android (Google) Code Review
Browse files

Merge "regen makefiles and delete old vts driver build rules"

parents d06fbd40 516e8193
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
@@ -54,3 +54,61 @@ cc_library_shared {
        "android.hidl.base@1.0",
    ],
}

genrule {
    name: "android.hardware.sensors.vts.driver@1.0_genc++",
    tools: ["hidl-gen", "vtsc"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.sensors@1.0 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/sensors/1.0/ $(genDir)/android/hardware/sensors/1.0/",
    srcs: [
        "types.hal",
        "ISensors.hal",
    ],
    out: [
        "android/hardware/sensors/1.0/types.vts.cpp",
        "android/hardware/sensors/1.0/Sensors.vts.cpp",
    ],
}

genrule {
    name: "android.hardware.sensors.vts.driver@1.0_genc++_headers",
    tools: ["hidl-gen", "vtsc"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.sensors@1.0 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/sensors/1.0/ $(genDir)/android/hardware/sensors/1.0/",
    srcs: [
        "types.hal",
        "ISensors.hal",
    ],
    out: [
        "android/hardware/sensors/1.0/types.vts.h",
        "android/hardware/sensors/1.0/Sensors.vts.h",
    ],
}

cc_library_shared {
    name: "android.hardware.sensors.vts.driver@1.0",
    generated_sources: ["android.hardware.sensors.vts.driver@1.0_genc++"],
    generated_headers: ["android.hardware.sensors.vts.driver@1.0_genc++_headers"],
    export_generated_headers: ["android.hardware.sensors.vts.driver@1.0_genc++_headers"],
    shared_libs: [
        "libhidlbase",
        "libhidltransport",
        "libhwbinder",
        "liblog",
        "libutils",
        "libcutils",
        "libvts_common",
        "libvts_datatype",
        "libvts_measurement",
        "libvts_multidevice_proto",
        "libcamera_metadata",
        "libprotobuf-cpp-full",
        "android.hidl.base@1.0",
        "android.hardware.sensors@1.0",
    ],
    export_shared_lib_headers: [
        "libhidlbase",
        "libhidltransport",
        "libhwbinder",
        "libutils",
        "android.hidl.base@1.0",
    ],
}
+0 −30
Original line number Diff line number Diff line
@@ -16,36 +16,6 @@

LOCAL_PATH := $(call my-dir)

# build VTS driver for Sensors v1.0.
include $(CLEAR_VARS)

LOCAL_MODULE := libvts_driver_hidl_sensors@1.0

LOCAL_SRC_FILES := \
  Sensors.vts \
  types.vts \

LOCAL_SHARED_LIBRARIES += \
  android.hardware.sensors@1.0 \
  libbase \
  libutils \
  libcutils \
  liblog \
  libhidlbase \
  libhidltransport \
  libhwbinder \
  libprotobuf-cpp-full \
  libvts_common \
  libvts_datatype \
  libvts_measurement \
  libvts_multidevice_proto \

LOCAL_PROTOC_OPTIMIZE_TYPE := full

LOCAL_MULTILIB := both

include $(BUILD_SHARED_LIBRARY)

# build profiler for sensors.
include $(CLEAR_VARS)

+0 −37
Original line number Diff line number Diff line
@@ -16,43 +16,6 @@

LOCAL_PATH := $(call my-dir)

# build VTS driver for Thermal v1.0.
include $(CLEAR_VARS)

LOCAL_MODULE := libvts_driver_hidl_thermal@1.0

LOCAL_SRC_FILES := \
  Thermal.vts \
  types.vts \

LOCAL_C_INCLUDES := \
  android.hardware.thermal@1.0 \
  system/core/base/include \
  system/core/include \

LOCAL_SHARED_LIBRARIES += \
  android.hardware.thermal@1.0 \
  libbase \
  libutils \
  libcutils \
  liblog \
  libhidlbase \
  libhidltransport \
  libhwbinder \
  libprotobuf-cpp-full \
  libvts_common \
  libvts_datatype \
  libvts_measurement \
  libvts_multidevice_proto \

LOCAL_STATIC_LIBRARIES := \

LOCAL_PROTOC_OPTIMIZE_TYPE := full

LOCAL_MULTILIB := both

include $(BUILD_SHARED_LIBRARY)

# build profiler for thermal.
include $(CLEAR_VARS)

+0 −33
Original line number Diff line number Diff line
@@ -16,39 +16,6 @@

LOCAL_PATH := $(call my-dir)

# build VTS driver for TvInput v1.0.
include $(CLEAR_VARS)

LOCAL_MODULE := libvts_driver_hidl_tv_input@1.0

LOCAL_SRC_FILES := \
  TvInput.vts \
  TvInputCallback.vts \
  types.vts \
  ../../../../audio/common/2.0/vts/types.vts \

LOCAL_SHARED_LIBRARIES += \
  android.hardware.tv.input@1.0 \
  libbase \
  libutils \
  libcutils \
  liblog \
  libhidlbase \
  libhidltransport \
  libhwbinder \
  libprotobuf-cpp-full \
  libvts_common \
  libvts_datatype \
  libvts_measurement \
  libvts_multidevice_proto \

LOCAL_PROTOC_OPTIMIZE_TYPE := full

LOCAL_MULTILIB := both

include $(BUILD_SHARED_LIBRARY)


# build VTS profiler for TvInput
include $(CLEAR_VARS)

+0 −4
Original line number Diff line number Diff line
@@ -681,10 +681,6 @@ $(GEN): $(LOCAL_PATH)/types.hal
	$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)

$(GEN): $(LOCAL_PATH)/types.hal
	$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)

#
# Build types.hal (VehiclePropConfig)
#