blob: 3d19ce1690144697cfa4c63101fed3d43d262c6a [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 Ahmeda422f352017-12-01 15:33:56 -050010LOCAL_C_INCLUDES := $(common_includes)
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053011
Naseer Ahmed4d78d032017-03-22 12:47:30 -040012LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmeda422f352017-12-01 15:33:56 -050013LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync libgrallocutils \
14 libgralloccore android.hardware.graphics.mapper@2.0
15LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -std=c++14 -Werror
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053016LOCAL_CFLAGS += -isystem $(kernel_includes)
17LOCAL_CLANG := true
Naseer Ahmeda422f352017-12-01 15:33:56 -050018LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
19LOCAL_SRC_FILES := gr_device_impl.cpp
Prabhanjan Kandula96e92342016-03-24 21:03:35 +053020LOCAL_COPY_HEADERS_TO := $(common_header_export_path)
21LOCAL_COPY_HEADERS := gr_device_impl.h gralloc_priv.h gr_priv_handle.h
22include $(BUILD_SHARED_LIBRARY)
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070023
24#libgrallocutils
25include $(CLEAR_VARS)
26LOCAL_MODULE := libgrallocutils
Naseer Ahmed725789e2017-05-17 13:41:10 -040027LOCAL_VENDOR_MODULE := true
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070028LOCAL_MODULE_TAGS := optional
29LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
30LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmeda422f352017-12-01 15:33:56 -050031LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl \
32 android.hardware.graphics.mapper@2.0
33LOCAL_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 Ahmeda422f352017-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) $(kernel_includes)
44LOCAL_HEADER_LIBRARIES := display_headers
45LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libdl libgrallocutils \
46 android.hardware.graphics.mapper@2.0
47LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
48LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
49LOCAL_SRC_FILES := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp
50include $(BUILD_SHARED_LIBRARY)
51
52
53qti_mapper_version := $(shell \
54 if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/mapper/1.0" ];\
55 then echo QTI_MAPPER_1_0; fi)
56
57qti_allocator_version := $(shell \
58 if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/allocator/1.0" ];\
59 then echo QTI_ALLOCATOR_1_0; fi)
60
61
Naseer Ahmeda422f352017-12-01 15:33:56 -050062#mapper
63include $(CLEAR_VARS)
64LOCAL_MODULE := android.hardware.graphics.mapper@2.0-impl-qti-display
65LOCAL_VENDOR_MODULE := true
66LOCAL_MODULE_RELATIVE_PATH := hw
67LOCAL_MODULE_TAGS := optional
68LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
69LOCAL_HEADER_LIBRARIES := display_headers
70LOCAL_SHARED_LIBRARIES := $(common_libs) \
71 libhidlbase \
72 libhidltransport \
73 libqdMetaData \
74 libgrallocutils \
75 libgralloccore \
76 libsync \
Naseer Ahmeda422f352017-12-01 15:33:56 -050077 android.hardware.graphics.mapper@2.0
78LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
79LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
80LOCAL_SRC_FILES := QtiMapper.cpp
81include $(BUILD_SHARED_LIBRARY)
Naseer Ahmeda422f352017-12-01 15:33:56 -050082
Naseer Ahmeda422f352017-12-01 15:33:56 -050083include $(CLEAR_VARS)
84LOCAL_MODULE := vendor.qti.hardware.display.allocator@1.0-service
85LOCAL_VENDOR_MODULE := true
86LOCAL_MODULE_RELATIVE_PATH := hw
87LOCAL_MODULE_TAGS := optional
88LOCAL_HEADER_LIBRARIES := display_headers
89LOCAL_SHARED_LIBRARIES := $(common_libs) \
90 libhidlbase \
91 libhidltransport\
92 libqdMetaData \
93 libgrallocutils \
94 libgralloccore \
Naseer Ahmeda422f352017-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
100LOCAL_INIT_RC := vendor.qti.hardware.display.allocator@1.0-service.rc
101include $(BUILD_EXECUTABLE)