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 | fa37f67 | 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 |
Sumit Semwal | 94bb596 | 2018-04-26 12:05:54 -0700 | [diff] [blame] | 28 | LOCAL_VENDOR_MODULE := true |
Adrian Salido | fa37f67 | 2017-02-16 10:29:46 -0800 | [diff] [blame] | 29 | |
| 30 | include $(BUILD_STATIC_LIBRARY) |
| 31 | |
| 32 | # ===================== |
| 33 | # hwcomposer.drm.so |
| 34 | # ===================== |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 35 | include $(CLEAR_VARS) |
| 36 | |
| 37 | LOCAL_SHARED_LIBRARIES := \ |
Lauri Peltonen | 64717b2 | 2015-02-04 16:55:31 +0200 | [diff] [blame] | 38 | libcutils \ |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 39 | libdrm \ |
Zach Reizner | 45624d3 | 2015-06-10 16:03:01 -0700 | [diff] [blame] | 40 | libEGL \ |
| 41 | libGLESv2 \ |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 42 | libhardware \ |
| 43 | liblog \ |
Sean Paul | 9aa5ad3 | 2015-01-22 15:47:54 -0500 | [diff] [blame] | 44 | libsync \ |
Zach Reizner | 45624d3 | 2015-06-10 16:03:01 -0700 | [diff] [blame] | 45 | libui \ |
| 46 | libutils |
| 47 | |
Adrian Salido | fa37f67 | 2017-02-16 10:29:46 -0800 | [diff] [blame] | 48 | LOCAL_STATIC_LIBRARIES := libdrmhwc_utils |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 49 | |
| 50 | LOCAL_C_INCLUDES := \ |
Rob Herring | 60d1d4f | 2017-10-24 19:06:43 -0500 | [diff] [blame] | 51 | system/core/libsync |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 52 | |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 53 | LOCAL_SRC_FILES := \ |
Zach Reizner | 49446bc | 2015-11-13 16:09:39 -0800 | [diff] [blame] | 54 | autolock.cpp \ |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 55 | drmresources.cpp \ |
| 56 | drmconnector.cpp \ |
| 57 | drmcrtc.cpp \ |
Haixia Shi | aa2f4a5 | 2015-11-02 10:54:29 -0800 | [diff] [blame] | 58 | drmdisplaycomposition.cpp \ |
| 59 | drmdisplaycompositor.cpp \ |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 60 | drmencoder.cpp \ |
Sean Paul | 047b9b2 | 2015-07-28 14:15:42 -0400 | [diff] [blame] | 61 | drmeventlistener.cpp \ |
Sean Paul | ed2ec4b | 2016-03-10 15:35:40 -0500 | [diff] [blame] | 62 | drmhwctwo.cpp \ |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 63 | drmmode.cpp \ |
| 64 | drmplane.cpp \ |
| 65 | drmproperty.cpp \ |
Zach Reizner | 6cbe883 | 2015-06-26 18:25:38 -0700 | [diff] [blame] | 66 | glworker.cpp \ |
Sean Paul | ed2ec4b | 2016-03-10 15:35:40 -0500 | [diff] [blame] | 67 | hwcutils.cpp \ |
| 68 | platform.cpp \ |
| 69 | platformdrmgeneric.cpp \ |
Haixia Shi | aa2f4a5 | 2015-11-02 10:54:29 -0800 | [diff] [blame] | 70 | separate_rects.cpp \ |
Haixia Shi | d21f528 | 2015-10-05 14:35:09 -0700 | [diff] [blame] | 71 | virtualcompositorworker.cpp \ |
Adrian Salido | fa37f67 | 2017-02-16 10:29:46 -0800 | [diff] [blame] | 72 | vsyncworker.cpp |
Sean Paul | cd36a9e | 2015-01-22 18:01:18 -0500 | [diff] [blame] | 73 | |
Sean Paul | ed2ec4b | 2016-03-10 15:35:40 -0500 | [diff] [blame] | 74 | LOCAL_CPPFLAGS += \ |
| 75 | -DHWC2_USE_CPP11 \ |
| 76 | -DHWC2_INCLUDE_STRINGIFICATION |
| 77 | |
John Stultz | 499db60 | 2018-03-13 16:51:12 -0700 | [diff] [blame] | 78 | |
| 79 | ifeq ($(TARGET_PRODUCT),hikey960) |
| 80 | LOCAL_CPPFLAGS += -DUSE_HISI_IMPORTER |
| 81 | LOCAL_SRC_FILES += platformhisi.cpp |
| 82 | LOCAL_C_INCLUDES += device/linaro/hikey/gralloc960/ |
Alistair Strachan | 71edaca | 2018-05-02 17:01:49 -0700 | [diff] [blame^] | 83 | else ifeq ($(TARGET_PRODUCT),hikey) |
John Stultz | 499db60 | 2018-03-13 16:51:12 -0700 | [diff] [blame] | 84 | LOCAL_CPPFLAGS += -DUSE_HISI_IMPORTER |
| 85 | LOCAL_SRC_FILES += platformhisi.cpp |
| 86 | LOCAL_C_INCLUDES += device/linaro/hikey/gralloc/ |
Alistair Strachan | 71edaca | 2018-05-02 17:01:49 -0700 | [diff] [blame^] | 87 | else ifeq ($(strip $(BOARD_DRM_HWCOMPOSER_BUFFER_IMPORTER)),minigbm) |
| 88 | LOCAL_SRC_FILES += platformminigbm.cpp |
| 89 | LOCAL_C_INCLUDES += external/minigbm/cros_gralloc/ |
John Stultz | 499db60 | 2018-03-13 16:51:12 -0700 | [diff] [blame] | 90 | else |
Sean Paul | da6270d | 2015-06-01 14:11:52 -0400 | [diff] [blame] | 91 | LOCAL_CPPFLAGS += -DUSE_DRM_GENERIC_IMPORTER |
John Stultz | 499db60 | 2018-03-13 16:51:12 -0700 | [diff] [blame] | 92 | endif |
Sean Paul | cd36a9e | 2015-01-22 18:01:18 -0500 | [diff] [blame] | 93 | |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 94 | LOCAL_MODULE := hwcomposer.drm |
| 95 | LOCAL_MODULE_TAGS := optional |
| 96 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 97 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 98 | LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX) |
Rob Herring | 4f7dc9b | 2017-09-15 08:48:55 -0500 | [diff] [blame] | 99 | LOCAL_VENDOR_MODULE := true |
| 100 | |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 101 | include $(BUILD_SHARED_LIBRARY) |
Sean Paul | cfc06cc | 2015-04-10 04:45:33 -0700 | [diff] [blame] | 102 | |
Adrian Salido | fa37f67 | 2017-02-16 10:29:46 -0800 | [diff] [blame] | 103 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
Sean Paul | cfc06cc | 2015-04-10 04:45:33 -0700 | [diff] [blame] | 104 | endif |