blob: 6543fdfa8e0cba53ff51b479d428068b4fe168a0 [file] [log] [blame]
Andy Qiu6a6081a2013-03-22 16:25:43 -07001# 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
Andy Qiuaca1af62014-07-21 16:25:34 -070015ifeq ($(INTEL_HWC_MOOREFIELD),true)
16
Andy Qiu6a6081a2013-03-22 16:25:43 -070017LOCAL_PATH := $(call my-dir)
18
Andy Qiuaca1af62014-07-21 16:25:34 -070019# HAL module implemenation, not prelinked and stored in
20# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
21include $(CLEAR_VARS)
Andy Qiu6a6081a2013-03-22 16:25:43 -070022
Andy Qiuaca1af62014-07-21 16:25:34 -070023LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
24LOCAL_MODULE_TAGS := optional
25LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM)
26LOCAL_CFLAGS := -Werror
27
28LOCAL_SHARED_LIBRARIES := liblog libcutils libdrm \
29 libwsbm libutils libhardware \
30 libva libva-tpi libva-android libsync
31
32LOCAL_SRC_FILES := \
33 common/base/Drm.cpp \
34 common/base/HwcLayer.cpp \
35 common/base/HwcLayerList.cpp \
36 common/base/Hwcomposer.cpp \
37 common/base/HwcModule.cpp \
38 common/base/DisplayAnalyzer.cpp \
39 common/buffers/BufferCache.cpp \
40 common/buffers/GraphicBuffer.cpp \
41 common/buffers/BufferManager.cpp \
42 common/devices/DummyDevice.cpp \
43 common/devices/PhysicalDevice.cpp \
44 common/devices/PrimaryDevice.cpp \
45 common/devices/ExternalDevice.cpp \
46 common/observers/UeventObserver.cpp \
47 common/observers/VsyncEventObserver.cpp \
48 common/observers/SoftVsyncObserver.cpp \
49 common/planes/DisplayPlane.cpp \
50 common/planes/DisplayPlaneManager.cpp \
51 common/utils/Dump.cpp
52
53LOCAL_SRC_FILES += \
54 ips/common/BlankControl.cpp \
55 ips/common/HdcpControl.cpp \
56 ips/common/DrmControl.cpp \
57 ips/common/VsyncControl.cpp \
58 ips/common/OverlayPlaneBase.cpp \
59 ips/common/SpritePlaneBase.cpp \
60 ips/common/PixelFormat.cpp \
61 ips/common/GrallocBufferBase.cpp \
62 ips/common/GrallocBufferMapperBase.cpp \
63 ips/common/TTMBufferMapper.cpp \
64 ips/common/DrmConfig.cpp \
65 ips/common/Wsbm.cpp \
66 ips/common/WsbmWrapper.c \
67 ips/common/RotationBufferProvider.cpp
68
69LOCAL_SRC_FILES += \
70 ips/tangier/TngGrallocBuffer.cpp \
71 ips/tangier/TngGrallocBufferMapper.cpp \
72 ips/tangier/TngDisplayQuery.cpp \
73 ips/tangier/TngDisplayContext.cpp
74
75LOCAL_SRC_FILES += \
76 ips/anniedale/AnnPlaneManager.cpp \
77 ips/anniedale/AnnOverlayPlane.cpp \
78 ips/anniedale/AnnRGBPlane.cpp \
79 ips/anniedale/PlaneCapabilities.cpp
80
81LOCAL_SRC_FILES += \
82 platforms/merrifield_plus/PlatfBufferManager.cpp \
83 platforms/merrifield_plus/PlatfPrimaryDevice.cpp \
84 platforms/merrifield_plus/PlatfExternalDevice.cpp \
85 platforms/merrifield_plus/PlatfHwcomposer.cpp
86
87LOCAL_C_INCLUDES := \
88 $(LOCAL_PATH)/include \
89 $(TARGET_OUT_HEADERS)/libdrm \
90 $(TARGET_OUT_HEADERS)/libwsbm/wsbm \
91 $(TARGET_OUT_HEADERS)/libttm \
92 frameworks/native/include/media/openmax \
93 vendor/intel/hardware/anniedale/rgx/include \
94 $(TARGET_OUT_HEADERS)/pvr/hal
95
96
97ifeq ($(TARGET_SUPPORT_HDMI_PRIMARY),true)
98 LOCAL_CFLAGS += -DINTEL_SUPPORT_HDMI_PRIMARY
Andy Qiu6a6081a2013-03-22 16:25:43 -070099endif
100
Andy Qiuaca1af62014-07-21 16:25:34 -0700101include $(BUILD_SHARED_LIBRARY)
Andy Qiu6a6081a2013-03-22 16:25:43 -0700102
Andy Qiuaca1af62014-07-21 16:25:34 -0700103endif