OSDN Git Service

drm_hwcomposer: drmeventlistener: Set nl_pid to 0
[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
29 include $(BUILD_STATIC_LIBRARY)
30
31 # =====================
32 # hwcomposer.drm.so
33 # =====================
34 include $(CLEAR_VARS)
35
36 LOCAL_SHARED_LIBRARIES := \
37         libcutils \
38         libdrm \
39         libEGL \
40         libGLESv2 \
41         libhardware \
42         liblog \
43         libsync \
44         libui \
45         libutils
46
47 LOCAL_STATIC_LIBRARIES := libdrmhwc_utils
48
49 LOCAL_C_INCLUDES := \
50         external/drm_gralloc \
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
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/
88 else
89 LOCAL_CPPFLAGS += -DUSE_DRM_GENERIC_IMPORTER
90 endif
91 endif
92
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
99
100 include $(BUILD_SHARED_LIBRARY)
101
102 include $(call all-makefiles-under,$(LOCAL_PATH))
103 endif