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
17LOCAL_CFLAGS                  := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wall -Werror
18LOCAL_CLANG                   := true
19LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
20LOCAL_SRC_FILES               := gr_device_impl.cpp
21LOCAL_COPY_HEADERS_TO         := $(common_header_export_path)
22LOCAL_COPY_HEADERS            := gr_device_impl.h gralloc_priv.h gr_priv_handle.h
23include $(BUILD_SHARED_LIBRARY)
24
25#libgrallocutils
26include $(CLEAR_VARS)
27LOCAL_MODULE                  := libgrallocutils
28LOCAL_VENDOR_MODULE           := true
29LOCAL_MODULE_TAGS             := optional
30LOCAL_C_INCLUDES              := $(common_includes) $(kernel_includes)
31LOCAL_HEADER_LIBRARIES        := display_headers
32LOCAL_SHARED_LIBRARIES        := $(common_libs) libqdMetaData libdl  \
33                                  android.hardware.graphics.mapper@2.0 \
34                                  android.hardware.graphics.mapper@2.1
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) $(kernel_includes)
46LOCAL_HEADER_LIBRARIES        := display_headers
47LOCAL_SHARED_LIBRARIES        := $(common_libs) libqdMetaData libdl libgrallocutils \
48                                  android.hardware.graphics.mapper@2.1
49LOCAL_CFLAGS                  := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
50LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
51LOCAL_SRC_FILES               := gr_allocator.cpp gr_buf_mgr.cpp gr_ion_alloc.cpp
52include $(BUILD_SHARED_LIBRARY)
53
54
55qti_mapper_version := $(shell \
56    if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/mapper/1.0" ];\
57    then echo QTI_MAPPER_1_0; fi)
58
59qti_allocator_version := $(shell \
60    if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/allocator/1.0" ];\
61    then echo QTI_ALLOCATOR_1_0; fi)
62
63
64#mapper
65include $(CLEAR_VARS)
66LOCAL_MODULE                  := android.hardware.graphics.mapper@2.0-impl-qti-display
67LOCAL_VENDOR_MODULE           := true
68LOCAL_MODULE_RELATIVE_PATH    := hw
69LOCAL_MODULE_TAGS             := optional
70LOCAL_C_INCLUDES              := $(common_includes) $(kernel_includes)
71LOCAL_HEADER_LIBRARIES        := display_headers
72LOCAL_SHARED_LIBRARIES        := $(common_libs) \
73                                  libhidlbase \
74                                  libqdMetaData \
75                                  libgrallocutils \
76                                  libgralloccore \
77                                  libsync \
78                                  android.hardware.graphics.mapper@2.0 \
79                                  android.hardware.graphics.mapper@2.1
80LOCAL_CFLAGS                  := $(common_flags) -DLOG_TAG=\"qdgralloc\" -Wno-sign-conversion
81LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
82LOCAL_SRC_FILES               := QtiMapper.cpp
83include $(BUILD_SHARED_LIBRARY)
84
85include $(CLEAR_VARS)
86LOCAL_MODULE                  := vendor.qti.hardware.display.allocator@1.0-service
87LOCAL_VENDOR_MODULE           := true
88LOCAL_MODULE_RELATIVE_PATH    := hw
89LOCAL_MODULE_TAGS             := optional
90LOCAL_HEADER_LIBRARIES        := display_headers
91LOCAL_SHARED_LIBRARIES        := $(common_libs) \
92                                 libhidlbase \
93                                 libqdMetaData \
94                                 libgrallocutils \
95                                 libgralloccore \
96                                 android.hardware.graphics.mapper@2.1 \
97                                 android.hardware.graphics.allocator@2.0
98LOCAL_CFLAGS                  := -DLOG_TAG=\"qdgralloc\" $(common_flags)
99LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
100LOCAL_C_INCLUDES              := $(common_includes) $(kernel_includes)
101LOCAL_SRC_FILES               := QtiAllocator.cpp service.cpp
102LOCAL_INIT_RC                 := vendor.qti.hardware.display.allocator@1.0-service.rc
103include $(BUILD_EXECUTABLE)
104