1# Copyright (C) 2016 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Temporary, should be removed once vsoc hals are in usable state
16
17LOCAL_PATH := $(call my-dir)
18
19VSOC_GRALLOC_COMMON_SRC_FILES := \
20    gralloc.cpp \
21    mapper.cpp \
22    region_registry.cpp
23
24VSOC_GRALLOC_COMMON_CFLAGS:= \
25    -DLOG_TAG=\"gralloc_vsoc_legacy\" \
26    -Wno-missing-field-initializers \
27    -Wall -Werror \
28    $(VSOC_VERSION_CFLAGS)
29
30include $(CLEAR_VARS)
31LOCAL_MODULE := gralloc.cutf_ashmem
32LOCAL_MODULE_RELATIVE_PATH := hw
33LOCAL_MODULE_TAGS := optional
34
35LOCAL_SRC_FILES := $(VSOC_GRALLOC_COMMON_SRC_FILES)
36
37LOCAL_CFLAGS := $(VSOC_GRALLOC_COMMON_CFLAGS)
38LOCAL_C_INCLUDES := \
39    device/google/cuttlefish
40
41LOCAL_HEADER_LIBRARIES := \
42    libhardware_headers
43
44LOCAL_SHARED_LIBRARIES := \
45    libbase \
46    liblog \
47    libutils \
48    libcutils
49
50LOCAL_VENDOR_MODULE := true
51
52# See b/67109557
53ifeq (true, $(TARGET_TRANSLATE_2ND_ARCH))
54LOCAL_MULTILIB := first
55endif
56
57include $(BUILD_SHARED_LIBRARY)
58