blob: 603fabd81996ca4fe0eb680440cbb7ff20926915 [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 Ahmed082f2282019-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. Manjarres84612282019-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)
Ashish Kumar1ff363d2019-04-09 21:46:24 +053035LOCAL_SRC_FILES := gr_utils.cpp gr_adreno_info.cpp gr_camera_info.cpp
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070036include $(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. Manjarres84612282019-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 Balachandrand3331da2019-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 Balachandrand3331da2019-06-06 11:33:29 -040077LOCAL_SRC_FILES := QtiMapper.cpp QtiMapperExtensions.cpp
Tharaga Balachandran069fe842019-08-08 18:04:34 -040078LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.mapper-impl-qti-display.xml
Naseer Ahmede36f2242017-12-01 15:33:56 -050079include $(BUILD_SHARED_LIBRARY)
Naseer Ahmede36f2242017-12-01 15:33:56 -050080
Ashish Kumarca7efd72018-08-01 14:45:14 +053081#allocator
Naseer Ahmede36f2242017-12-01 15:33:56 -050082include $(CLEAR_VARS)
Tharaga Balachandrand3331da2019-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 Kumarca7efd72018-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 Balachandrand3331da2019-06-06 11:33:29 -0400101LOCAL_INIT_RC := vendor.qti.hardware.display.allocator-service.rc
Tharaga Balachandran069fe842019-08-08 18:04:34 -0400102LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.allocator-service.xml
Naseer Ahmede36f2242017-12-01 15:33:56 -0500103include $(BUILD_EXECUTABLE)