-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAndroid.mk
113 lines (95 loc) · 3.66 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ifeq ($(INTEL_HWC_MOOREFIELD),true)
LOCAL_PATH := $(call my-dir)
# HAL module implemenation, not prelinked and stored in
# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
include $(CLEAR_VARS)
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM)
LOCAL_CFLAGS := -Werror
LOCAL_SHARED_LIBRARIES := liblog libcutils libdrm \
libwsbm libutils libhardware \
libva libva-tpi libva-android libsync
LOCAL_SRC_FILES := \
common/base/Drm.cpp \
common/base/HwcLayer.cpp \
common/base/HwcLayerList.cpp \
common/base/Hwcomposer.cpp \
common/base/HwcModule.cpp \
common/base/DisplayAnalyzer.cpp \
common/buffers/BufferCache.cpp \
common/buffers/GraphicBuffer.cpp \
common/buffers/BufferManager.cpp \
common/devices/DummyDevice.cpp \
common/devices/PhysicalDevice.cpp \
common/devices/PrimaryDevice.cpp \
common/devices/ExternalDevice.cpp \
common/observers/UeventObserver.cpp \
common/observers/VsyncEventObserver.cpp \
common/observers/SoftVsyncObserver.cpp \
common/planes/DisplayPlane.cpp \
common/planes/DisplayPlaneManager.cpp \
common/utils/Dump.cpp
LOCAL_SRC_FILES += \
ips/common/BlankControl.cpp \
ips/common/HdcpControl.cpp \
ips/common/DrmControl.cpp \
ips/common/VsyncControl.cpp \
ips/common/OverlayPlaneBase.cpp \
ips/common/SpritePlaneBase.cpp \
ips/common/PixelFormat.cpp \
ips/common/GrallocBufferBase.cpp \
ips/common/GrallocBufferMapperBase.cpp \
ips/common/TTMBufferMapper.cpp \
ips/common/DrmConfig.cpp \
ips/common/Wsbm.cpp \
ips/common/WsbmWrapper.c \
ips/common/RotationBufferProvider.cpp
LOCAL_SRC_FILES += \
ips/tangier/TngGrallocBuffer.cpp \
ips/tangier/TngGrallocBufferMapper.cpp \
ips/tangier/TngDisplayQuery.cpp \
ips/tangier/TngDisplayContext.cpp
LOCAL_SRC_FILES += \
ips/anniedale/AnnPlaneManager.cpp \
ips/anniedale/AnnOverlayPlane.cpp \
ips/anniedale/AnnRGBPlane.cpp \
ips/anniedale/AnnCursorPlane.cpp \
ips/anniedale/PlaneCapabilities.cpp
LOCAL_SRC_FILES += \
platforms/merrifield_plus/PlatfBufferManager.cpp \
platforms/merrifield_plus/PlatfPrimaryDevice.cpp \
platforms/merrifield_plus/PlatfExternalDevice.cpp \
platforms/merrifield_plus/PlatfHwcomposer.cpp
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/include/pvr/hal \
$(TARGET_OUT_HEADERS)/libdrm \
$(TARGET_OUT_HEADERS)/libwsbm/wsbm \
$(TARGET_OUT_HEADERS)/libttm \
frameworks/native/include/media/openmax
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
ifeq ($(TARGET_SUPPORT_HDMI_PRIMARY),true)
LOCAL_CFLAGS += -DINTEL_SUPPORT_HDMI_PRIMARY
endif
ifeq ($(TARGET_INTEL_HWCOMPOSER_FORCE_ONLY_ONE_RGB_LAYER),true)
LOCAL_CFLAGS += -DFORCE_ONLY_ONE_RGB_LAYER=1
endif
LOCAL_COPY_HEADERS:=include/pvr/hal/hal_public.h
LOCAL_COPY_HEADERS_TO:=pvr/hal
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
include $(BUILD_SHARED_LIBRARY)
endif