OSDN Git Service

drm_hwcomposer: Mark tests as vendor, fix build
authorAlistair Strachan <astrachan@google.com>
Wed, 2 May 2018 23:55:22 +0000 (16:55 -0700)
committerSean Paul <seanpaul@chromium.org>
Thu, 3 May 2018 13:43:33 +0000 (09:43 -0400)
After commit 94bb596, the tests for drm_hwcomposer no longer build,
because the build system detects that they are linking other vendor
modules (but installing themselves elsewhere).

This change also adds the libhardware include path explicitly, as the
implicit include of hardware/libhardware/include is going away.

Cc: John Stultz <john.stultz@linaro.org>
Cc: Rob Herring <rob.herring@linaro.org>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Sean Paul <seanpaul@google.com>
Cc: Robert Foss <robert.foss@collabora.com>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Alistair Strachan <astrachan@google.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
tests/Android.mk

index 3b9e0a2..c6a0afa 100644 (file)
@@ -7,6 +7,8 @@ LOCAL_SRC_FILES := \
        worker_test.cpp
 
 LOCAL_MODULE := hwc-drm-tests
+LOCAL_VENDOR_MODULE := true
+LOCAL_HEADER_LIBRARIES := libhardware_headers
 LOCAL_STATIC_LIBRARIES := libdrmhwc_utils
 LOCAL_SHARED_LIBRARIES := hwcomposer.drm
 LOCAL_C_INCLUDES := external/drm_hwcomposer