• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15ifeq ($(strip $(BOARD_USES_DRM_HWCOMPOSER)),true)
16
17LOCAL_PATH := $(call my-dir)
18
19# =====================
20# libdrmhwc_utils.a
21# =====================
22include $(CLEAR_VARS)
23
24LOCAL_SRC_FILES := \
25	worker.cpp
26
27LOCAL_MODULE := libdrmhwc_utils
28
29include $(BUILD_STATIC_LIBRARY)
30
31# =====================
32# hwcomposer.drm.so
33# =====================
34include $(CLEAR_VARS)
35
36LOCAL_SHARED_LIBRARIES := \
37	libcutils \
38	libdrm \
39	libEGL \
40	libGLESv2 \
41	libhardware \
42	liblog \
43	libsync \
44	libui \
45	libutils
46
47LOCAL_STATIC_LIBRARIES := libdrmhwc_utils
48
49LOCAL_C_INCLUDES := \
50	external/drm_gralloc \
51	external/libdrm \
52	external/libdrm/include/drm \
53	system/core/include/utils \
54	system/core/libsync \
55	system/core/libsync/include \
56
57LOCAL_SRC_FILES := \
58	drmresources.cpp \
59	drmcomposition.cpp \
60	drmcompositor.cpp \
61	drmconnector.cpp \
62	drmcrtc.cpp \
63	drmdisplaycomposition.cpp \
64	drmdisplaycompositor.cpp \
65	drmencoder.cpp \
66	drmeventlistener.cpp \
67	drmmode.cpp \
68	drmplane.cpp \
69	drmproperty.cpp \
70	glworker.cpp \
71	hwcomposer.cpp \
72	platform.cpp \
73	separate_rects.cpp \
74	virtualcompositorworker.cpp \
75	vsyncworker.cpp
76
77ifeq ($(strip $(BOARD_DRM_HWCOMPOSER_BUFFER_IMPORTER)),nvidia-gralloc)
78LOCAL_CPPFLAGS += -DUSE_NVIDIA_IMPORTER
79LOCAL_SRC_FILES += platformnv.cpp
80else
81LOCAL_CPPFLAGS += -DUSE_DRM_GENERIC_IMPORTER
82LOCAL_SRC_FILES += platformdrmgeneric.cpp
83endif
84
85LOCAL_MODULE := hwcomposer.drm
86LOCAL_MODULE_TAGS := optional
87LOCAL_MODULE_RELATIVE_PATH := hw
88LOCAL_MODULE_CLASS := SHARED_LIBRARIES
89LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX)
90include $(BUILD_SHARED_LIBRARY)
91
92include $(call all-makefiles-under,$(LOCAL_PATH))
93endif
94