blob: 4bbc9c0c8f0bc1232373a7866148efed1516c2c5 [file] [log] [blame]
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -08001# 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
Jorge E. Moreirae2017232017-11-06 15:51:40 -080015# Temporary, should be removed once vsoc hals are in usable state
16
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -080017LOCAL_PATH := $(call my-dir)
18
Jorge E. Moreirae2017232017-11-06 15:51:40 -080019VSOC_GRALLOC_COMMON_SRC_FILES := \
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -080020 gralloc.cpp \
Cody Schuffelen134ff032019-11-22 00:25:32 -080021 framebuffer.cpp \
Jorge E. Moreirafd87e822018-01-23 14:55:00 -080022 mapper.cpp \
23 region_registry.cpp
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -080024
Jorge E. Moreirae2017232017-11-06 15:51:40 -080025VSOC_GRALLOC_COMMON_CFLAGS:= \
26 -DLOG_TAG=\"gralloc_vsoc_legacy\" \
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -080027 -Wno-missing-field-initializers \
28 -Wall -Werror \
Jorge E. Moreirae2017232017-11-06 15:51:40 -080029 $(VSOC_VERSION_CFLAGS)
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -080030
Jorge E. Moreirae2017232017-11-06 15:51:40 -080031include $(CLEAR_VARS)
Greg Hartmana3c552d2019-03-28 18:20:48 -070032LOCAL_MODULE := gralloc.cutf_ashmem
Jorge E. Moreirae2017232017-11-06 15:51:40 -080033LOCAL_MODULE_RELATIVE_PATH := hw
34LOCAL_MODULE_TAGS := optional
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -080035
Jorge E. Moreirae2017232017-11-06 15:51:40 -080036LOCAL_SRC_FILES := $(VSOC_GRALLOC_COMMON_SRC_FILES)
37
38LOCAL_CFLAGS := $(VSOC_GRALLOC_COMMON_CFLAGS)
Jorge E. Moreirafd87e822018-01-23 14:55:00 -080039LOCAL_C_INCLUDES := \
40 device/google/cuttlefish_common \
41 device/google/cuttlefish_kernel
Steven Moreland9e7b0d72018-01-08 14:27:31 -080042
43LOCAL_HEADER_LIBRARIES := \
44 libhardware_headers
45
Jorge E. Moreirae2017232017-11-06 15:51:40 -080046LOCAL_SHARED_LIBRARIES := \
Jorge E. Moreirafd87e822018-01-23 14:55:00 -080047 libbase \
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -080048 liblog \
49 libutils \
Cody Schuffelen134ff032019-11-22 00:25:32 -080050 libcutils \
51 vsoc_lib
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -080052
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -080053LOCAL_VENDOR_MODULE := true
Jorge E. Moreira9dc14e72017-11-07 16:07:48 -080054
Greg Hartman917a9d82017-11-30 12:25:19 -080055# See b/67109557
56ifeq (true, $(TARGET_TRANSLATE_2ND_ARCH))
57LOCAL_MULTILIB := first
58endif
59
60include $(BUILD_SHARED_LIBRARY)