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) |
| 18 | include $(CLEAR_VARS) |
| 19 | |
| 20 | LOCAL_SHARED_LIBRARIES := \ |
Lauri Peltonen | 64717b2 | 2015-02-04 16:55:31 +0200 | [diff] [blame] | 21 | libcutils \ |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 22 | libdrm \ |
Zach Reizner | 45624d3 | 2015-06-10 16:03:01 -0700 | [diff] [blame] | 23 | libEGL \ |
| 24 | libGLESv2 \ |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 25 | libhardware \ |
| 26 | liblog \ |
Sean Paul | 9aa5ad3 | 2015-01-22 15:47:54 -0500 | [diff] [blame] | 27 | libsync \ |
Zach Reizner | 45624d3 | 2015-06-10 16:03:01 -0700 | [diff] [blame] | 28 | libui \ |
| 29 | libutils |
| 30 | |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 31 | |
| 32 | LOCAL_C_INCLUDES := \ |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 33 | external/libdrm \ |
| 34 | external/libdrm/include/drm \ |
| 35 | system/core/include/utils \ |
Sean Paul | f1dc191 | 2015-01-24 01:34:31 -0500 | [diff] [blame] | 36 | system/core/libsync \ |
Sean Paul | 9aa5ad3 | 2015-01-22 15:47:54 -0500 | [diff] [blame] | 37 | system/core/libsync/include \ |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 38 | |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 39 | LOCAL_SRC_FILES := \ |
| 40 | compositor.cpp \ |
| 41 | drmresources.cpp \ |
Sean Paul | b386f1b | 2015-05-13 06:33:23 -0700 | [diff] [blame] | 42 | drmcomposition.cpp \ |
| 43 | drmcompositor.cpp \ |
| 44 | drmcompositorworker.cpp \ |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 45 | drmconnector.cpp \ |
| 46 | drmcrtc.cpp \ |
Sean Paul | 98e73c8 | 2015-06-24 14:38:49 -0700 | [diff] [blame^] | 47 | drmdisplaycomposition.cpp \ |
| 48 | drmdisplaycompositor.cpp \ |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 49 | drmencoder.cpp \ |
| 50 | drmmode.cpp \ |
| 51 | drmplane.cpp \ |
| 52 | drmproperty.cpp \ |
Zach Reizner | 45624d3 | 2015-06-10 16:03:01 -0700 | [diff] [blame] | 53 | gl_compositor.cpp \ |
Zach Reizner | 6cbe883 | 2015-06-26 18:25:38 -0700 | [diff] [blame] | 54 | glworker.cpp \ |
Sean Paul | cb8676c | 2015-05-13 06:22:10 -0700 | [diff] [blame] | 55 | hwcomposer.cpp \ |
Zach Reizner | 45624d3 | 2015-06-10 16:03:01 -0700 | [diff] [blame] | 56 | seperate_rects.cpp \ |
Sean Paul | 4057be3 | 2015-05-13 06:23:09 -0700 | [diff] [blame] | 57 | vsyncworker.cpp \ |
Sean Paul | cb8676c | 2015-05-13 06:22:10 -0700 | [diff] [blame] | 58 | worker.cpp |
Sean Paul | cd36a9e | 2015-01-22 18:01:18 -0500 | [diff] [blame] | 59 | |
Tomasz Figa | 235c5e7 | 2015-06-03 10:46:14 -0400 | [diff] [blame] | 60 | ifeq ($(strip $(BOARD_DRM_HWCOMPOSER_BUFFER_IMPORTER)),nvidia-gralloc) |
Sean Paul | 4095ca7 | 2015-06-08 16:03:33 -0400 | [diff] [blame] | 61 | LOCAL_SRC_FILES += nvimporter.cpp |
Sean Paul | da6270d | 2015-06-01 14:11:52 -0400 | [diff] [blame] | 62 | LOCAL_CPPFLAGS += -DUSE_NVIDIA_IMPORTER |
| 63 | else |
Sean Paul | 4095ca7 | 2015-06-08 16:03:33 -0400 | [diff] [blame] | 64 | LOCAL_C_INCLUDES += external/drm_gralloc |
| 65 | LOCAL_SRC_FILES += drmgenericimporter.cpp |
Sean Paul | da6270d | 2015-06-01 14:11:52 -0400 | [diff] [blame] | 66 | LOCAL_CPPFLAGS += -DUSE_DRM_GENERIC_IMPORTER |
Lauri Peltonen | ceaadea | 2015-02-02 14:45:13 +0200 | [diff] [blame] | 67 | endif |
Sean Paul | cd36a9e | 2015-01-22 18:01:18 -0500 | [diff] [blame] | 68 | |
Sean Paul | e0c4c3d | 2015-01-20 16:56:04 -0500 | [diff] [blame] | 69 | LOCAL_MODULE := hwcomposer.drm |
| 70 | LOCAL_MODULE_TAGS := optional |
| 71 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 72 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 73 | LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX) |
| 74 | include $(BUILD_SHARED_LIBRARY) |
Sean Paul | cfc06cc | 2015-04-10 04:45:33 -0700 | [diff] [blame] | 75 | |
| 76 | endif |