| Andy Qiu | 6a6081a | 2013-03-22 16:25:43 -0700 | [diff] [blame] | 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 | |
| Andy Qiu | aca1af6 | 2014-07-21 16:25:34 -0700 | [diff] [blame] | 15 | ifeq ($(INTEL_HWC_MOOREFIELD),true) |
| 16 | |
| Andy Qiu | 6a6081a | 2013-03-22 16:25:43 -0700 | [diff] [blame] | 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| Andy Qiu | aca1af6 | 2014-07-21 16:25:34 -0700 | [diff] [blame] | 19 | # HAL module implemenation, not prelinked and stored in |
| 20 | # hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so |
| 21 | include $(CLEAR_VARS) |
| Andy Qiu | 6a6081a | 2013-03-22 16:25:43 -0700 | [diff] [blame] | 22 | |
| Andy Qiu | aca1af6 | 2014-07-21 16:25:34 -0700 | [diff] [blame] | 23 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 24 | LOCAL_MODULE_TAGS := optional |
| 25 | LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM) |
| 26 | LOCAL_CFLAGS := -Werror |
| 27 | |
| 28 | LOCAL_SHARED_LIBRARIES := liblog libcutils libdrm \ |
| 29 | libwsbm libutils libhardware \ |
| 30 | libva libva-tpi libva-android libsync |
| 31 | |
| 32 | LOCAL_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 | |
| 53 | LOCAL_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 | |
| 69 | LOCAL_SRC_FILES += \ |
| 70 | ips/tangier/TngGrallocBuffer.cpp \ |
| 71 | ips/tangier/TngGrallocBufferMapper.cpp \ |
| 72 | ips/tangier/TngDisplayQuery.cpp \ |
| 73 | ips/tangier/TngDisplayContext.cpp |
| 74 | |
| 75 | LOCAL_SRC_FILES += \ |
| 76 | ips/anniedale/AnnPlaneManager.cpp \ |
| 77 | ips/anniedale/AnnOverlayPlane.cpp \ |
| 78 | ips/anniedale/AnnRGBPlane.cpp \ |
| Lei Zhang | a6ca0e9 | 2014-09-03 16:49:45 -0700 | [diff] [blame] | 79 | ips/anniedale/AnnCursorPlane.cpp \ |
| Andy Qiu | aca1af6 | 2014-07-21 16:25:34 -0700 | [diff] [blame] | 80 | ips/anniedale/PlaneCapabilities.cpp |
| 81 | |
| 82 | LOCAL_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 | |
| 88 | LOCAL_C_INCLUDES := \ |
| 89 | $(LOCAL_PATH)/include \ |
| Byron Gardner | 88ad3d3 | 2014-08-15 16:07:02 -0700 | [diff] [blame] | 90 | $(LOCAL_PATH)/include/pvr/hal \ |
| Andy Qiu | aca1af6 | 2014-07-21 16:25:34 -0700 | [diff] [blame] | 91 | $(TARGET_OUT_HEADERS)/libdrm \ |
| 92 | $(TARGET_OUT_HEADERS)/libwsbm/wsbm \ |
| 93 | $(TARGET_OUT_HEADERS)/libttm \ |
| Byron Gardner | 88ad3d3 | 2014-08-15 16:07:02 -0700 | [diff] [blame] | 94 | frameworks/native/include/media/openmax |
| Andy Qiu | aca1af6 | 2014-07-21 16:25:34 -0700 | [diff] [blame] | 95 | |
| 96 | ifeq ($(TARGET_SUPPORT_HDMI_PRIMARY),true) |
| 97 | LOCAL_CFLAGS += -DINTEL_SUPPORT_HDMI_PRIMARY |
| Andy Qiu | 6a6081a | 2013-03-22 16:25:43 -0700 | [diff] [blame] | 98 | endif |
| 99 | |
| Byron Gardner | 88ad3d3 | 2014-08-15 16:07:02 -0700 | [diff] [blame] | 100 | LOCAL_COPY_HEADERS:=include/pvr/hal/hal_public.h |
| 101 | LOCAL_COPY_HEADERS_TO:=pvr/hal |
| 102 | |
| Andy Qiu | aca1af6 | 2014-07-21 16:25:34 -0700 | [diff] [blame] | 103 | include $(BUILD_SHARED_LIBRARY) |
| Andy Qiu | 6a6081a | 2013-03-22 16:25:43 -0700 | [diff] [blame] | 104 | |
| Andy Qiu | aca1af6 | 2014-07-21 16:25:34 -0700 | [diff] [blame] | 105 | endif |