blob: 6603f43b1c5d2a0163dc4d72dace4050a62634ca [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
Naseer Ahmed755af6b2019-04-15 19:49:29 -04006LOCAL_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
Isaac J. Manjarres857a4992019-04-22 17:18:05 -070019LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Naseer Ahmede36f2242017-12-01 15:33:56 -050020LOCAL_SRC_FILES := gr_device_impl.cpp
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053021include $(BUILD_SHARED_LIBRARY)
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070022
23#libgrallocutils
24include $(CLEAR_VARS)
25LOCAL_MODULE := libgrallocutils
Naseer Ahmed725789e2017-05-17 13:41:10 -040026LOCAL_VENDOR_MODULE := true
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070027LOCAL_MODULE_TAGS := optional
28LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
29LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmede36f2242017-12-01 15:33:56 -050030LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050031 android.hardware.graphics.mapper@2.0 \
32 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050033LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
34LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070035LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp
36include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -050037
38#libgralloccore
39include $(CLEAR_VARS)
40LOCAL_MODULE := libgralloccore
41LOCAL_VENDOR_MODULE := true
42LOCAL_MODULE_TAGS := optional
43LOCAL_C_INCLUDES := $(common_includes) \
44 system/core/libion/include \
45 system/core/libion/kernel-headers \
46 $(kernel_includes)
47
48LOCAL_HEADER_LIBRARIES := display_headers
49LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils libion \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050050 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050051LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
Isaac J. Manjarres857a4992019-04-22 17:18:05 -070052LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Naseer Ahmede36f2242017-12-01 15:33:56 -050053LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp
54include $(BUILD_SHARED_LIBRARY)
55
Naseer Ahmede36f2242017-12-01 15:33:56 -050056#mapper
57include $(CLEAR_VARS)
58LOCAL_MODULE := android.hardware.graphics.mapper@2.0-impl-qti-display
59LOCAL_VENDOR_MODULE := true
60LOCAL_MODULE_RELATIVE_PATH := hw
61LOCAL_MODULE_TAGS := optional
62LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
63LOCAL_HEADER_LIBRARIES := display_headers
64LOCAL_SHARED_LIBRARIES := $(common_libs) \
65 libhidlbase \
66 libhidltransport \
67 libqdMetaData \
68 libgrallocutils \
69 libgralloccore \
70 libsync \
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -040071 vendor.qti.hardware.display.mapper@2.0 \
72 vendor.qti.hardware.display.mapperextensions@1.0 \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050073 android.hardware.graphics.mapper@2.0 \
74 android.hardware.graphics.mapper@2.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050075LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
76LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -040077LOCAL_SRC_FILES := QtiMapper.cpp QtiMapperExtensions.cpp
Naseer Ahmede36f2242017-12-01 15:33:56 -050078include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -050079
Ashish Kumarf04c3de2018-08-01 14:45:14 +053080#allocator
Naseer Ahmede36f2242017-12-01 15:33:56 -050081include $(CLEAR_VARS)
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -040082LOCAL_MODULE := vendor.qti.hardware.display.allocator-service
Naseer Ahmede36f2242017-12-01 15:33:56 -050083LOCAL_VENDOR_MODULE := true
84LOCAL_MODULE_RELATIVE_PATH := hw
85LOCAL_MODULE_TAGS := optional
86LOCAL_HEADER_LIBRARIES := display_headers
87LOCAL_SHARED_LIBRARIES := $(common_libs) \
88 libhidlbase \
89 libhidltransport\
90 libqdMetaData \
91 libgrallocutils \
92 libgralloccore \
Ashish Kumarf04c3de2018-08-01 14:45:14 +053093 vendor.qti.hardware.display.allocator@1.0 \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050094 android.hardware.graphics.mapper@2.1 \
Naseer Ahmede36f2242017-12-01 15:33:56 -050095 android.hardware.graphics.allocator@2.0
96LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags)
97LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
98LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
99LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -0400100LOCAL_INIT_RC := vendor.qti.hardware.display.allocator-service.rc
Naseer Ahmede36f2242017-12-01 15:33:56 -0500101include $(BUILD_EXECUTABLE)