1 # Copyright (C) 2015 The Android Open Source Project
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 ifeq ($(strip $(BOARD_USES_DRM_HWCOMPOSER)),true)
17 LOCAL_PATH := $(call my-dir)
19 # =====================
21 # =====================
27 LOCAL_MODULE := libdrmhwc_utils
29 include $(BUILD_STATIC_LIBRARY)
31 # =====================
33 # =====================
36 LOCAL_SHARED_LIBRARIES := \
47 LOCAL_STATIC_LIBRARIES := libdrmhwc_utils
50 external/drm_gralloc \
58 drmdisplaycomposition.cpp \
59 drmdisplaycompositor.cpp \
61 drmeventlistener.cpp \
69 platformdrmgeneric.cpp \
71 virtualcompositorworker.cpp \
76 -DHWC2_INCLUDE_STRINGIFICATION
79 ifeq ($(TARGET_PRODUCT),hikey960)
80 LOCAL_CPPFLAGS += -DUSE_HISI_IMPORTER
81 LOCAL_SRC_FILES += platformhisi.cpp
82 LOCAL_C_INCLUDES += device/linaro/hikey/gralloc960/
84 ifeq ($(TARGET_PRODUCT),hikey)
85 LOCAL_CPPFLAGS += -DUSE_HISI_IMPORTER
86 LOCAL_SRC_FILES += platformhisi.cpp
87 LOCAL_C_INCLUDES += device/linaro/hikey/gralloc/
89 LOCAL_CPPFLAGS += -DUSE_DRM_GENERIC_IMPORTER
93 LOCAL_MODULE := hwcomposer.drm
94 LOCAL_MODULE_TAGS := optional
95 LOCAL_MODULE_RELATIVE_PATH := hw
96 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
97 LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX)
98 LOCAL_VENDOR_MODULE := true
100 include $(BUILD_SHARED_LIBRARY)
102 include $(call all-makefiles-under,$(LOCAL_PATH))