1#
2# Copyright 2015 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16LOCAL_PATH:= $(call my-dir)
17
18include $(CLEAR_VARS)
19
20LOCAL_MODULE := android.hardware.graphics.allocator@3.0-service
21LOCAL_MODULE_RELATIVE_PATH := hw
22LOCAL_VENDOR_MODULE := true
23LOCAL_SRC_FILES := allocator3.cpp
24LOCAL_INIT_RC := android.hardware.graphics.allocator@3.0-service.rc
25
26LOCAL_SHARED_LIBRARIES += \
27    android.hardware.graphics.allocator@3.0 \
28    android.hardware.graphics.mapper@3.0 \
29    libOpenglSystemCommon \
30    libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX) \
31    libbase \
32    libcutils \
33    libhidlbase \
34    liblog \
35    libutils
36
37LOCAL_STATIC_LIBRARIES += libqemupipe.ranchu libGoldfishAddressSpace$(GOLDFISH_OPENGL_LIB_SUFFIX)
38LOCAL_HEADER_LIBRARIES += libgralloc_cb.ranchu
39
40LOCAL_C_INCLUDES += \
41    device/generic/goldfish-opengl/system/include \
42    device/generic/goldfish-opengl/system/OpenglSystemCommon \
43    device/generic/goldfish-opengl/shared/GoldfishAddressSpace/include \
44    device/generic/goldfish-opengl/shared/OpenglCodecCommon \
45    device/generic/goldfish-opengl/host/include/libOpenglRender \
46    device/generic/goldfish-opengl/system/renderControl_enc \
47
48LOCAL_CFLAGS += -DVIRTIO_GPU
49LOCAL_C_INCLUDES += external/libdrm external/minigbm/cros_gralloc
50LOCAL_SHARED_LIBRARIES += libdrm
51
52include $(BUILD_EXECUTABLE)
53
54include $(CLEAR_VARS)
55
56LOCAL_MODULE := android.hardware.graphics.mapper@3.0-impl-ranchu
57LOCAL_MODULE_RELATIVE_PATH := hw
58LOCAL_VENDOR_MODULE := true
59LOCAL_SRC_FILES := mapper3.cpp
60
61#     android.hardware.graphics.allocator@3.0 \
62
63LOCAL_SHARED_LIBRARIES += \
64    android.hardware.graphics.mapper@3.0 \
65    libOpenglSystemCommon \
66    libOpenglCodecCommon$(GOLDFISH_OPENGL_LIB_SUFFIX) \
67    libbase \
68    libcutils \
69    libhidlbase \
70    liblog \
71    libutils \
72    libsync
73
74LOCAL_STATIC_LIBRARIES += libqemupipe.ranchu libGoldfishAddressSpace$(GOLDFISH_OPENGL_LIB_SUFFIX)
75LOCAL_HEADER_LIBRARIES += libgralloc_cb.ranchu
76
77LOCAL_C_INCLUDES += \
78    device/generic/goldfish-opengl/system/include \
79    device/generic/goldfish-opengl/system/OpenglSystemCommon \
80    device/generic/goldfish-opengl/shared/GoldfishAddressSpace/include \
81    device/generic/goldfish-opengl/shared/OpenglCodecCommon \
82    device/generic/goldfish-opengl/host/include/libOpenglRender \
83    device/generic/goldfish-opengl/system/renderControl_enc \
84
85LOCAL_CFLAGS += -DVIRTIO_GPU
86LOCAL_C_INCLUDES += external/libdrm external/minigbm/cros_gralloc
87LOCAL_SHARED_LIBRARIES += libdrm
88
89include $(BUILD_SHARED_LIBRARY)
90
91