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 framebuffer.cpp \ 22 mapper.cpp \ 23 region_registry.cpp 24 25VSOC_GRALLOC_COMMON_CFLAGS:= \ 26 -DLOG_TAG=\"gralloc_vsoc_legacy\" \ 27 -Wno-missing-field-initializers \ 28 -Wall -Werror \ 29 $(VSOC_VERSION_CFLAGS) 30 31include $(CLEAR_VARS) 32LOCAL_MODULE := gralloc.vsoc 33LOCAL_MODULE_RELATIVE_PATH := hw 34LOCAL_MODULE_TAGS := optional 35 36LOCAL_SRC_FILES := $(VSOC_GRALLOC_COMMON_SRC_FILES) 37 38LOCAL_CFLAGS := $(VSOC_GRALLOC_COMMON_CFLAGS) 39LOCAL_C_INCLUDES := \ 40 device/google/cuttlefish_common \ 41 device/google/cuttlefish_kernel 42 43LOCAL_HEADER_LIBRARIES := \ 44 libhardware_headers 45 46LOCAL_SHARED_LIBRARIES := \ 47 libbase \ 48 liblog \ 49 libutils \ 50 libcutils \ 51 vsoc_lib 52 53LOCAL_VENDOR_MODULE := true 54 55# See b/67109557 56ifeq (true, $(TARGET_TRANSLATE_2ND_ARCH)) 57LOCAL_MULTILIB := first 58endif 59 60include $(BUILD_SHARED_LIBRARY) 61