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