Home | History | Annotate | Download | only in gralloc
      1 # Copyright (C) 2017 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 LOCAL_PATH := $(call my-dir)
     16 
     17 include $(CLEAR_VARS)
     18 
     19 LOCAL_MODULE := gralloc.vsoc-future
     20 LOCAL_MODULE_TAGS := optional
     21 
     22 LOCAL_SRC_FILES := \
     23     gralloc.cpp \
     24     mapper.cpp
     25 
     26 LOCAL_C_INCLUDES += \
     27     device/google/cuttlefish_common \
     28     device/google/cuttlefish_kernel \
     29     hardware/libhardware/include \
     30     system/core/base/include
     31 
     32 LOCAL_CFLAGS := \
     33     -DLOG_TAG=\"gralloc_vsoc\" \
     34     -Wno-missing-field-initializers \
     35     -Wall -Werror \
     36     $(VSOC_VERSION_CFLAGS)
     37 
     38 LOCAL_SHARED_LIBRARIES := \
     39     libbase \
     40     libcutils \
     41     cuttlefish_auto_resources \
     42     libcuttlefish_fs \
     43     liblog \
     44     vsoc_lib
     45 
     46 LOCAL_HEADER_LIBRARIES := \
     47     libhardware_headers
     48 
     49 ifeq (0, $(shell test $(PLATFORM_SDK_VERSION) -ge 21; echo $$?))
     50 LOCAL_MODULE_RELATIVE_PATH := hw
     51 else
     52 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
     53 endif
     54 
     55 LOCAL_VENDOR_MODULE := true
     56 
     57 # See b/67109557
     58 ifeq (true, $(TARGET_TRANSLATE_2ND_ARCH))
     59 LOCAL_MULTILIB := first
     60 endif
     61 include $(BUILD_SHARED_LIBRARY)
     62 
     63 include $(call first-makefiles-under,$(LOCAL_PATH))
     64