Jorge E. Moreira | 7a8dadd | 2017-08-22 17:01:39 -0700 | [diff] [blame] | 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 | |
| 37 | LOCAL_SHARED_LIBRARIES := \ |
| 38 | libbase \ |
| 39 | libcutils \ |
Greg Hartman | ce872ef | 2017-12-04 22:51:47 -0800 | [diff] [blame] | 40 | cuttlefish_auto_resources \ |
Jorge E. Moreira | 7a8dadd | 2017-08-22 17:01:39 -0700 | [diff] [blame] | 41 | libcuttlefish_fs \ |
| 42 | liblog \ |
Greg Hartman | d072a34 | 2017-12-05 20:27:40 -0800 | [diff] [blame^] | 43 | vsoc_lib |
Jorge E. Moreira | 7a8dadd | 2017-08-22 17:01:39 -0700 | [diff] [blame] | 44 | |
| 45 | ifeq (0, $(shell test $(PLATFORM_SDK_VERSION) -ge 21; echo $$?)) |
| 46 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 47 | else |
| 48 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 49 | endif |
| 50 | |
| 51 | LOCAL_VENDOR_MODULE := true |
Greg Hartman | a8baedc | 2017-09-29 16:21:38 -0700 | [diff] [blame] | 52 | |
| 53 | # See b/67109557 |
| 54 | ifeq (true, $(TARGET_TRANSLATE_2ND_ARCH)) |
| 55 | LOCAL_MULTILIB := first |
| 56 | endif |
Jorge E. Moreira | 7a8dadd | 2017-08-22 17:01:39 -0700 | [diff] [blame] | 57 | include $(BUILD_SHARED_LIBRARY) |
Greg Hartman | 917a9d8 | 2017-11-30 12:25:19 -0800 | [diff] [blame] | 58 | |
| 59 | include $(call first-makefiles-under,$(LOCAL_PATH)) |