blob: 9ad44e52328635bcf197654976792e6709481fa6 [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 \
Ashish Kumar25435772019-08-06 16:15:56 +053074 android.hardware.graphics.mapper@2.1 \
75 vendor.qti.hardware.display.mapperextensions@1.1
Naseer Ahmede36f2242017-12-01 15:33:56 -050076LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
77LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -040078LOCAL_SRC_FILES := QtiMapper.cpp QtiMapperExtensions.cpp
Naseer Ahmede36f2242017-12-01 15:33:56 -050079include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -050080
Ashish Kumarf04c3de2018-08-01 14:45:14 +053081#allocator
Naseer Ahmede36f2242017-12-01 15:33:56 -050082include $(CLEAR_VARS)
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -040083LOCAL_MODULE := vendor.qti.hardware.display.allocator-service
Naseer Ahmede36f2242017-12-01 15:33:56 -050084LOCAL_VENDOR_MODULE := true
85LOCAL_MODULE_RELATIVE_PATH := hw
86LOCAL_MODULE_TAGS := optional
87LOCAL_HEADER_LIBRARIES := display_headers
88LOCAL_SHARED_LIBRARIES := $(common_libs) \
89 libhidlbase \
90 libhidltransport\
91 libqdMetaData \
92 libgrallocutils \
93 libgralloccore \
Ashish Kumarf04c3de2018-08-01 14:45:14 +053094 vendor.qti.hardware.display.allocator@1.0 \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050095 android.hardware.graphics.mapper@2.1 \
Naseer Ahmede36f2242017-12-01 15:33:56 -050096 android.hardware.graphics.allocator@2.0
97LOCAL_CFLAGS := -DLOG_TAG=\"qdgralloc\" $(common_flags)
98LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
99LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
100LOCAL_SRC_FILES := QtiAllocator.cpp service.cpp
Tharaga Balachandranf7e62a32019-06-06 11:33:29 -0400101LOCAL_INIT_RC := vendor.qti.hardware.display.allocator-service.rc
Naseer Ahmede36f2242017-12-01 15:33:56 -0500102include $(BUILD_EXECUTABLE)