• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2008 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 ($(INTEL_HWC_MOOREFIELD_HDMI),true)
16
17LOCAL_PATH := $(call my-dir)
18
19# HAL module implemenation, not prelinked and stored in
20# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
21include $(CLEAR_VARS)
22
23# HwcModule.cpp uses GNU old-style field designator extension.
24LOCAL_CLANG_CFLAGS += -Wno-gnu-designator
25
26LOCAL_MODULE_RELATIVE_PATH := hw
27LOCAL_MODULE_TAGS := optional
28LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM)
29LOCAL_CFLAGS := -Werror
30
31LOCAL_SHARED_LIBRARIES := liblog libcutils libdrm \
32                          libwsbm libutils libhardware \
33                          libva libva-tpi libva-android libsync
34
35LOCAL_HEADER_LIBRARIES := libsystem_headers
36
37LOCAL_SRC_FILES := \
38    common/base/Drm.cpp \
39    common/base/HwcLayer.cpp \
40    common/base/HwcLayerList.cpp \
41    common/base/Hwcomposer.cpp \
42    common/base/HwcModule.cpp \
43    common/base/DisplayAnalyzer.cpp \
44    common/buffers/BufferCache.cpp \
45    common/buffers/GraphicBuffer.cpp \
46    common/buffers/BufferManager.cpp \
47    common/devices/DummyDevice.cpp \
48    common/devices/PhysicalDevice.cpp \
49    common/devices/PrimaryDevice.cpp \
50    common/devices/ExternalDevice.cpp \
51    common/observers/UeventObserver.cpp \
52    common/observers/VsyncEventObserver.cpp \
53    common/observers/SoftVsyncObserver.cpp \
54    common/planes/DisplayPlane.cpp \
55    common/planes/DisplayPlaneManager.cpp \
56    common/utils/Dump.cpp
57
58LOCAL_SRC_FILES += \
59    ips/common/BlankControl.cpp \
60    ips/common/HdcpControl.cpp \
61    ips/common/DrmControl.cpp \
62    ips/common/VsyncControl.cpp \
63    ips/common/OverlayPlaneBase.cpp \
64    ips/common/SpritePlaneBase.cpp \
65    ips/common/PixelFormat.cpp \
66    ips/common/GrallocBufferBase.cpp \
67    ips/common/GrallocBufferMapperBase.cpp \
68    ips/common/TTMBufferMapper.cpp \
69    ips/common/DrmConfig.cpp \
70    ips/common/Wsbm.cpp \
71    ips/common/WsbmWrapper.c \
72    ips/common/RotationBufferProvider.cpp
73
74LOCAL_SRC_FILES += \
75    ips/tangier/TngGrallocBuffer.cpp \
76    ips/tangier/TngGrallocBufferMapper.cpp \
77    ips/tangier/TngDisplayQuery.cpp \
78    ips/tangier/TngDisplayContext.cpp
79
80LOCAL_SRC_FILES += \
81    ips/anniedale/AnnPlaneManager.cpp \
82    ips/anniedale/AnnOverlayPlane.cpp \
83    ips/anniedale/AnnRGBPlane.cpp \
84    ips/anniedale/AnnCursorPlane.cpp \
85    ips/anniedale/PlaneCapabilities.cpp
86
87LOCAL_SRC_FILES += \
88    platforms/merrifield_plus/PlatfBufferManager.cpp \
89    platforms/merrifield_plus/PlatfPrimaryDevice.cpp \
90    platforms/merrifield_plus/PlatfExternalDevice.cpp \
91    platforms/merrifield_plus/PlatfHwcomposer.cpp
92
93LOCAL_C_INCLUDES := \
94    $(LOCAL_PATH)/include \
95    $(LOCAL_PATH)/include/pvr/hal \
96    $(TARGET_OUT_HEADERS)/libdrm \
97    $(TARGET_OUT_HEADERS)/libwsbm/wsbm \
98    $(TARGET_OUT_HEADERS)/libttm \
99    frameworks/native/include/media/openmax
100
101ifeq ($(TARGET_SUPPORT_HDMI_PRIMARY),true)
102   LOCAL_CFLAGS += -DINTEL_SUPPORT_HDMI_PRIMARY
103endif
104
105LOCAL_COPY_HEADERS := \
106 include/pvr/hal/img_gralloc.h \
107 include/pvr/hal/img_gralloc1.h \
108 include/pvr/hal/img_gralloc_common_public.h \
109 include/pvr/hal/hal_public.h
110LOCAL_COPY_HEADERS_TO := pvr/hal
111
112include $(BUILD_SHARED_LIBRARY)
113
114endif
115