blob: 0e648fe75ee37008e4cb0fc1277619804d45aa79 [file] [log] [blame]
Prabhanjan Kandula96e92342016-03-24 21:03:35 +05301# Gralloc module
2LOCAL_PATH := $(call my-dir)
3include $(LOCAL_PATH)/../common.mk
4include $(CLEAR_VARS)
5
6LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
Naseer Ahmed725789e2017-05-17 13:41:10 -04007LOCAL_VENDOR_MODULE := true
Prabhanjan Kandula96e92342016-03-24 21:03:35 +05308LOCAL_MODULE_RELATIVE_PATH := hw
9LOCAL_MODULE_TAGS := optional
Naseer Ahmede36f2242017-12-01 15:33:56 -050010LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053011
Naseer Ahmed4d78d032017-03-22 12:47:30 -040012LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmede36f2242017-12-01 15:33:56 -050013LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils \
14 libgralloccore \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050015 android.hardware.graphics.mapper@2.0 \
16 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050017LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053018LOCAL_CLANG := true
19LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps)
Naseer Ahmede36f2242017-12-01 15:33:56 -050020LOCAL_SRC_FILES := gr_device_impl.cpp
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053021LOCAL_COPY_HEADERS_TO := $(common_header_export_path)
22LOCAL_COPY_HEADERS := gr_device_impl.h gralloc_priv.h gr_priv_handle.h
23include $(BUILD_SHARED_LIBRARY)
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070024
25#libgrallocutils
26include $(CLEAR_VARS)
27LOCAL_MODULE := libgrallocutils
Naseer Ahmed725789e2017-05-17 13:41:10 -040028LOCAL_VENDOR_MODULE := true
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070029LOCAL_MODULE_TAGS := optional
30LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
31LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmede36f2242017-12-01 15:33:56 -050032LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050033 android.hardware.graphics.mapper@2.0 \
34 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050035LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
36LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070037LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp
38include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -050039
40#libgralloccore
41include $(CLEAR_VARS)
42LOCAL_MODULE := libgralloccore
43LOCAL_VENDOR_MODULE := true
44LOCAL_MODULE_TAGS := optional
45LOCAL_C_INCLUDES := $(common_includes) \
46 system/core/libion/include \
47 system/core/libion/kernel-headers \
48 $(kernel_includes)
49
50LOCAL_HEADER_LIBRARIES := display_headers
51LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050052 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050053LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
54LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps)
55LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp
56include $(BUILD_SHARED_LIBRARY)
57
58
59qti_mapper_version := $(shell \
60 if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/mapper/1.0" ];\
61 then echo QTI_MAPPER_1_0; fi)
62
63qti_allocator_version := $(shell \
64 if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/allocator/1.0" ];\
65 then echo QTI_ALLOCATOR_1_0; fi)
66
67
Naseer Ahmede36f2242017-12-01 15:33:56 -050068#mapper
69include $(CLEAR_VARS)
70LOCAL_MODULE := android.hardware.graphics.mapper@2.0-impl-qti-display
71LOCAL_VENDOR_MODULE := true
72LOCAL_MODULE_RELATIVE_PATH := hw
73LOCAL_MODULE_TAGS := optional
74LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
75LOCAL_HEADER_LIBRARIES := display_headers
76LOCAL_SHARED_LIBRARIES := $(common_libs) \
77 libhidlbase \
78 libhidltransport \
79 libqdMetaData \
80 libgrallocutils \
81 libgralloccore \
82 libsync \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050083 android.hardware.graphics.mapper@2.0 \
84 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050085LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
86LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
87LOCAL_SRC_FILES := QtiMapper.cpp
88include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -050089
Naseer Ahmede36f2242017-12-01 15:33:56 -050090include $(CLEAR_VARS)
91LOCAL_MODULE := vendor.qti.hardware.display.allocator@1.0-service
92LOCAL_VENDOR_MODULE := true
93LOCAL_MODULE_RELATIVE_PATH := hw
94LOCAL_MODULE_TAGS := optional
95LOCAL_HEADER_LIBRARIES := display_headers
96LOCAL_SHARED_LIBRARIES := $(common_libs) \
97 libhidlbase \
98 libhidltransport\
99 libqdMetaData \
100 libgrallocutils \
101 libgralloccore \
Naseer Ahmed920d71b2018-03-08 16:54:28 -0500102 android.hardware.graphics.mapper@2.1 \
Naseer Ahmede36f2242017-12-01 15:33:56 -0500103 android.hardware.graphics.allocator@2.0
104LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags)
105LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
106LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
107LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp
108LOCAL_INIT_RC := vendor.qti.hardware.display.allocator@1.0-service.rc
109include $(BUILD_EXECUTABLE)