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