• 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),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
23LOCAL_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/AnnCursorPlane.cpp \
80    ips/anniedale/PlaneCapabilities.cpp
81
82LOCAL_SRC_FILES += \
83    platforms/merrifield_plus/PlatfBufferManager.cpp \
84    platforms/merrifield_plus/PlatfPrimaryDevice.cpp \
85    platforms/merrifield_plus/PlatfExternalDevice.cpp \
86    platforms/merrifield_plus/PlatfHwcomposer.cpp
87
88LOCAL_C_INCLUDES := \
89    $(LOCAL_PATH)/include \
90    $(LOCAL_PATH)/include/pvr/hal \
91    $(TARGET_OUT_HEADERS)/libdrm \
92    $(TARGET_OUT_HEADERS)/libwsbm/wsbm \
93    $(TARGET_OUT_HEADERS)/libttm \
94    frameworks/native/include/media/openmax
95
96ifeq ($(TARGET_SUPPORT_HDMI_PRIMARY),true)
97   LOCAL_CFLAGS += -DINTEL_SUPPORT_HDMI_PRIMARY
98endif
99
100LOCAL_COPY_HEADERS:=include/pvr/hal/hal_public.h
101LOCAL_COPY_HEADERS_TO:=pvr/hal
102
103include $(BUILD_SHARED_LIBRARY)
104
105endif
106