1# Gralloc module
2LOCAL_PATH := $(call my-dir)
3include $(LOCAL_PATH)/../common.mk
4include $(CLEAR_VARS)
5
6LOCAL_MODULE                  := gralloc.$(TARGET_BOARD_PLATFORM)
7LOCAL_VENDOR_MODULE           := true
8LOCAL_MODULE_RELATIVE_PATH    := hw
9LOCAL_MODULE_TAGS             := optional
10LOCAL_C_INCLUDES              := $(common_includes) $(kernel_includes)
11
12LOCAL_HEADER_LIBRARIES        := display_headers
13LOCAL_SHARED_LIBRARIES        := $(common_libs) libqdMetaData libsync libgrallocutils \
14                                 libgralloccore \
15                                 android.hardware.graphics.mapper@2.0 \
16                                 android.hardware.graphics.mapper@2.1 \
17                                 android.hardware.graphics.mapper@3.0
18LOCAL_CFLAGS                  := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror
19LOCAL_CLANG                   := true
20LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
21LOCAL_SRC_FILES               := gr_device_impl.cpp
22include $(BUILD_SHARED_LIBRARY)
23
24#libgrallocutils
25include $(CLEAR_VARS)
26LOCAL_MODULE                  := libgrallocutils
27LOCAL_VENDOR_MODULE           := true
28LOCAL_MODULE_TAGS             := optional
29LOCAL_C_INCLUDES              := $(common_includes) $(kernel_includes)
30LOCAL_HEADER_LIBRARIES        := display_headers
31LOCAL_SHARED_LIBRARIES        := $(common_libs) libqdMetaData libdl  \
32                                  android.hardware.graphics.mapper@2.0 \
33                                  android.hardware.graphics.mapper@2.1 \
34                                  android.hardware.graphics.mapper@3.0
35LOCAL_CFLAGS                  := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
36LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
37LOCAL_SRC_FILES               := gr_utils.cpp gr_adreno_info.cpp
38include $(BUILD_SHARED_LIBRARY)
39
40#libgralloccore
41include $(CLEAR_VARS)
42LOCAL_MODULE                  := libgralloccore
43LOCAL_VENDOR_MODULE           := true
44LOCAL_MODULE_TAGS             := optional
45LOCAL_C_INCLUDES              := $(common_includes) \
46                                 system/memory/libion/include \
47                                 system/memory/libion/kernel-headers \
48                                 $(kernel_includes)
49
50LOCAL_HEADER_LIBRARIES        := display_headers
51LOCAL_SHARED_LIBRARIES        := $(common_libs) libqdMetaData libdl libgrallocutils libion \
52                                  android.hardware.graphics.mapper@2.1 \
53                                  android.hardware.graphics.mapper@3.0
54LOCAL_CFLAGS                  := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
55LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
56LOCAL_SRC_FILES               := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp
57include $(BUILD_SHARED_LIBRARY)
58
59#mapper
60include $(CLEAR_VARS)
61LOCAL_MODULE                  := android.hardware.graphics.mapper@3.0-impl-qti-display
62LOCAL_VENDOR_MODULE           := true
63LOCAL_MODULE_RELATIVE_PATH    := hw
64LOCAL_MODULE_TAGS             := optional
65LOCAL_C_INCLUDES              := $(common_includes) $(kernel_includes)
66LOCAL_HEADER_LIBRARIES        := display_headers
67LOCAL_SHARED_LIBRARIES        := $(common_libs) \
68                                  libhidlbase \
69                                  libhidltransport \
70                                  libqdMetaData \
71                                  libgrallocutils \
72                                  libgralloccore \
73                                  libsync \
74                                  vendor.qti.hardware.display.mapper@3.0 \
75                                  vendor.qti.hardware.display.mapperextensions@1.0 \
76                                  android.hardware.graphics.mapper@2.0 \
77                                  android.hardware.graphics.mapper@2.1 \
78                                  android.hardware.graphics.mapper@3.0
79LOCAL_CFLAGS                  := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
80ifeq ($(qti_mapper1_1_version), QTI_MAPPER_1_1)
81LOCAL_SHARED_LIBRARIES        += vendor.qti.hardware.display.mapper@1.1
82LOCAL_CFLAGS                  += -DQTI_MAPPER_1_1
83endif
84LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
85LOCAL_SRC_FILES               := QtiMapper.cpp QtiMapperExtensions.cpp
86include $(BUILD_SHARED_LIBRARY)
87
88#allocator
89include $(CLEAR_VARS)
90LOCAL_MODULE                  := vendor.qti.hardware.display.allocator-service
91LOCAL_VENDOR_MODULE           := true
92LOCAL_MODULE_RELATIVE_PATH    := hw
93LOCAL_MODULE_TAGS             := optional
94LOCAL_HEADER_LIBRARIES        := display_headers
95LOCAL_SHARED_LIBRARIES        := $(common_libs) \
96                                 libhidlbase \
97                                 libhidltransport\
98                                 libqdMetaData \
99                                 libgrallocutils \
100                                 libgralloccore \
101                                 vendor.qti.hardware.display.allocator@3.0 \
102                                 android.hardware.graphics.mapper@3.0 \
103                                 android.hardware.graphics.mapper@2.1 \
104                                 android.hardware.graphics.allocator@3.0
105LOCAL_CFLAGS                  := -DLOG_TAG=\"qdgralloc\" $(common_flags)
106LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
107LOCAL_C_INCLUDES              := $(common_includes) $(kernel_includes)
108LOCAL_SRC_FILES               := QtiAllocator.cpp service.cpp
109LOCAL_INIT_RC                 := vendor.qti.hardware.display.allocator-service.rc
110include $(BUILD_EXECUTABLE)
111