OSDN Git Service

drm_hwcomposer: Remove NVIDIA importer header
[android-x86/external-drm_hwcomposer.git] / Android.mk
1 # Copyright (C) 2015 The Android Open Source Project
2 #
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
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 ifeq ($(strip $(BOARD_USES_DRM_HWCOMPOSER)),true)
16
17 LOCAL_PATH := $(call my-dir)
18
19 # =====================
20 # libdrmhwc_utils.a
21 # =====================
22 include $(CLEAR_VARS)
23
24 LOCAL_SRC_FILES := \
25         worker.cpp
26
27 LOCAL_MODULE := libdrmhwc_utils
28 LOCAL_VENDOR_MODULE := true
29
30 include $(BUILD_STATIC_LIBRARY)
31
32 # =====================
33 # hwcomposer.drm.so
34 # =====================
35 include $(CLEAR_VARS)
36
37 LOCAL_SHARED_LIBRARIES := \
38         libcutils \
39         libdrm \
40         libEGL \
41         libGLESv2 \
42         libhardware \
43         liblog \
44         libsync \
45         libui \
46         libutils
47
48 LOCAL_STATIC_LIBRARIES := libdrmhwc_utils
49
50 LOCAL_C_INCLUDES := \
51         system/core/libsync
52
53 LOCAL_SRC_FILES := \
54         autolock.cpp \
55         drmresources.cpp \
56         drmconnector.cpp \
57         drmcrtc.cpp \
58         drmdisplaycomposition.cpp \
59         drmdisplaycompositor.cpp \
60         drmencoder.cpp \
61         drmeventlistener.cpp \
62         drmhwctwo.cpp \
63         drmmode.cpp \
64         drmplane.cpp \
65         drmproperty.cpp \
66         glworker.cpp \
67         hwcutils.cpp \
68         platform.cpp \
69         platformdrmgeneric.cpp \
70         separate_rects.cpp \
71         virtualcompositorworker.cpp \
72         vsyncworker.cpp
73
74 LOCAL_CPPFLAGS += \
75         -DHWC2_USE_CPP11 \
76         -DHWC2_INCLUDE_STRINGIFICATION
77
78
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/
83 else ifeq ($(TARGET_PRODUCT),hikey)
84 LOCAL_CPPFLAGS += -DUSE_HISI_IMPORTER
85 LOCAL_SRC_FILES += platformhisi.cpp
86 LOCAL_C_INCLUDES += device/linaro/hikey/gralloc/
87 else ifeq ($(strip $(BOARD_DRM_HWCOMPOSER_BUFFER_IMPORTER)),minigbm)
88 LOCAL_SRC_FILES += platformminigbm.cpp
89 LOCAL_C_INCLUDES += external/minigbm/cros_gralloc/
90 else
91 LOCAL_CPPFLAGS += -DUSE_DRM_GENERIC_IMPORTER
92 endif
93
94 LOCAL_MODULE := hwcomposer.drm
95 LOCAL_MODULE_TAGS := optional
96 LOCAL_MODULE_RELATIVE_PATH := hw
97 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
98 LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX)
99 LOCAL_VENDOR_MODULE := true
100
101 include $(BUILD_SHARED_LIBRARY)
102
103 include $(call all-makefiles-under,$(LOCAL_PATH))
104 endif