blob: 5e4a64864e60e5e2a1509a815f7470de24bde049 [file] [log] [blame]
Jorge E. Moreira7a8dadd2017-08-22 17:01:39 -07001# 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.vsoc-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
37LOCAL_SHARED_LIBRARIES := \
38 libbase \
39 libcutils \
Greg Hartmance872ef2017-12-04 22:51:47 -080040 cuttlefish_auto_resources \
Jorge E. Moreira7a8dadd2017-08-22 17:01:39 -070041 libcuttlefish_fs \
42 liblog \
Greg Hartmand072a342017-12-05 20:27:40 -080043 vsoc_lib
Jorge E. Moreira7a8dadd2017-08-22 17:01:39 -070044
45ifeq (0, $(shell test $(PLATFORM_SDK_VERSION) -ge 21; echo $$?))
46LOCAL_MODULE_RELATIVE_PATH := hw
47else
48LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
49endif
50
51LOCAL_VENDOR_MODULE := true
Greg Hartmana8baedc2017-09-29 16:21:38 -070052
53# See b/67109557
54ifeq (true, $(TARGET_TRANSLATE_2ND_ARCH))
55LOCAL_MULTILIB := first
56endif
Jorge E. Moreira7a8dadd2017-08-22 17:01:39 -070057include $(BUILD_SHARED_LIBRARY)
Greg Hartman917a9d82017-11-30 12:25:19 -080058
59include $(call first-makefiles-under,$(LOCAL_PATH))