| Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 1 | # Copyright (C) 2015 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 | |
| Sean Paul | cfc06cc | 2015-04-10 04:45:33 -0700 | [diff] [blame] | 15 | ifeq ($(strip $(BOARD_USES_DRM_HWCOMPOSER)),true) |
| Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 16 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| Adrian Salido | e5c7565 | 2017-02-16 10:29:46 -0800 | [diff] [blame] | 18 | |
| 19 | # ===================== |
| 20 | # libdrmhwc_utils.a |
| 21 | # ===================== |
| 22 | include $(CLEAR_VARS) |
| 23 | |
| 24 | LOCAL_SRC_FILES := \ |
| 25 | worker.cpp |
| 26 | |
| 27 | LOCAL_MODULE := libdrmhwc_utils |
| 28 | |
| 29 | include $(BUILD_STATIC_LIBRARY) |
| 30 | |
| 31 | # ===================== |
| 32 | # hwcomposer.drm.so |
| 33 | # ===================== |
| Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 34 | include $(CLEAR_VARS) |
| 35 | |
| 36 | LOCAL_SHARED_LIBRARIES := \ |
| Lauri Peltonen | 64717b2 | 2015-02-04 16:55:31 +0200 | [diff] [blame] | 37 | libcutils \ |
| Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 38 | libdrm \ |
| Zach Reizner | 45624d3 | 2015-06-10 16:03:01 -0700 | [diff] [blame] | 39 | libEGL \ |
| 40 | libGLESv2 \ |
| Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 41 | libhardware \ |
| 42 | liblog \ |
| Sean Paul | 9aa5ad3 | 2015-01-22 15:47:54 -0500 | [diff] [blame] | 43 | libsync \ |
| Zach Reizner | 45624d3 | 2015-06-10 16:03:01 -0700 | [diff] [blame] | 44 | libui \ |
| 45 | libutils |
| 46 | |
| Adrian Salido | e5c7565 | 2017-02-16 10:29:46 -0800 | [diff] [blame] | 47 | LOCAL_STATIC_LIBRARIES := libdrmhwc_utils |
| Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 48 | |
| 49 | LOCAL_C_INCLUDES := \ |
| Sean Paul | ed2ec4b | 2016-03-10 15:35:40 -0500 | [diff] [blame] | 50 | external/drm_gralloc \ |
| Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 51 | external/libdrm \ |
| 52 | external/libdrm/include/drm \ |
| 53 | system/core/include/utils \ |
| Sean Paul | f1dc191 | 2015-01-24 01:34:31 -0500 | [diff] [blame] | 54 | system/core/libsync \ |
| Sean Paul | 9aa5ad3 | 2015-01-22 15:47:54 -0500 | [diff] [blame] | 55 | system/core/libsync/include \ |
| Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 56 | |
| Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 57 | LOCAL_SRC_FILES := \ |
| Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 58 | drmresources.cpp \ |
| Haixia Shi | aa2f4a5 | 2015-11-02 10:54:29 -0800 | [diff] [blame] | 59 | drmcomposition.cpp \ |
| 60 | drmcompositor.cpp \ |
| Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 61 | drmconnector.cpp \ |
| 62 | drmcrtc.cpp \ |
| Haixia Shi | aa2f4a5 | 2015-11-02 10:54:29 -0800 | [diff] [blame] | 63 | drmdisplaycomposition.cpp \ |
| 64 | drmdisplaycompositor.cpp \ |
| Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 65 | drmencoder.cpp \ |
| Sean Paul | 047b9b2 | 2015-07-28 14:15:42 -0400 | [diff] [blame] | 66 | drmeventlistener.cpp \ |
| Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 67 | drmmode.cpp \ |
| 68 | drmplane.cpp \ |
| 69 | drmproperty.cpp \ |
| Zach Reizner | 6cbe883 | 2015-06-26 18:25:38 -0700 | [diff] [blame] | 70 | glworker.cpp \ |
| Adrian Salido | 9cc8393 | 2017-08-21 16:14:57 -0700 | [diff] [blame] | 71 | hwcomposer.cpp \ |
| Sean Paul | ed2ec4b | 2016-03-10 15:35:40 -0500 | [diff] [blame] | 72 | platform.cpp \ |
| Haixia Shi | aa2f4a5 | 2015-11-02 10:54:29 -0800 | [diff] [blame] | 73 | separate_rects.cpp \ |
| Haixia Shi | d21f528 | 2015-10-05 14:35:09 -0700 | [diff] [blame] | 74 | virtualcompositorworker.cpp \ |
| Adrian Salido | e5c7565 | 2017-02-16 10:29:46 -0800 | [diff] [blame] | 75 | vsyncworker.cpp |
| Sean Paul | cd36a9e | 2015-01-22 18:01:18 -0500 | [diff] [blame] | 76 | |
| Tomasz Figa | 235c5e7 | 2015-06-03 10:46:14 -0400 | [diff] [blame] | 77 | ifeq ($(strip $(BOARD_DRM_HWCOMPOSER_BUFFER_IMPORTER)),nvidia-gralloc) |
| Sean Paul | da6270d | 2015-06-01 14:11:52 -0400 | [diff] [blame] | 78 | LOCAL_CPPFLAGS += -DUSE_NVIDIA_IMPORTER |
| Chia-I Wu | 713d754 | 2017-05-19 10:48:38 -0700 | [diff] [blame] | 79 | LOCAL_SRC_FILES += platformnv.cpp |
| Sean Paul | da6270d | 2015-06-01 14:11:52 -0400 | [diff] [blame] | 80 | else |
| 81 | LOCAL_CPPFLAGS += -DUSE_DRM_GENERIC_IMPORTER |
| Chia-I Wu | 713d754 | 2017-05-19 10:48:38 -0700 | [diff] [blame] | 82 | LOCAL_SRC_FILES += platformdrmgeneric.cpp |
| Lauri Peltonen | ceaadea | 2015-02-02 14:45:13 +0200 | [diff] [blame] | 83 | endif |
| Sean Paul | cd36a9e | 2015-01-22 18:01:18 -0500 | [diff] [blame] | 84 | |
| Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 85 | LOCAL_MODULE := hwcomposer.drm |
| 86 | LOCAL_MODULE_TAGS := optional |
| 87 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 88 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 89 | LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX) |
| 90 | include $(BUILD_SHARED_LIBRARY) |
| Sean Paul | cfc06cc | 2015-04-10 04:45:33 -0700 | [diff] [blame] | 91 | |
| Adrian Salido | e5c7565 | 2017-02-16 10:29:46 -0800 | [diff] [blame] | 92 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
| Sean Paul | cfc06cc | 2015-04-10 04:45:33 -0700 | [diff] [blame] | 93 | endif |