Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 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 | |
Jorge E. Moreira | e201723 | 2017-11-06 15:51:40 -0800 | [diff] [blame] | 15 | # Temporary, should be removed once vsoc hals are in usable state |
| 16 | |
Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
Jorge E. Moreira | e201723 | 2017-11-06 15:51:40 -0800 | [diff] [blame] | 19 | VSOC_GRALLOC_COMMON_SRC_FILES := \ |
Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 20 | gralloc.cpp \ |
Cody Schuffelen | 134ff03 | 2019-11-22 00:25:32 -0800 | [diff] [blame^] | 21 | framebuffer.cpp \ |
Jorge E. Moreira | fd87e82 | 2018-01-23 14:55:00 -0800 | [diff] [blame] | 22 | mapper.cpp \ |
| 23 | region_registry.cpp |
Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 24 | |
Jorge E. Moreira | e201723 | 2017-11-06 15:51:40 -0800 | [diff] [blame] | 25 | VSOC_GRALLOC_COMMON_CFLAGS:= \ |
| 26 | -DLOG_TAG=\"gralloc_vsoc_legacy\" \ |
Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 27 | -Wno-missing-field-initializers \ |
| 28 | -Wall -Werror \ |
Jorge E. Moreira | e201723 | 2017-11-06 15:51:40 -0800 | [diff] [blame] | 29 | $(VSOC_VERSION_CFLAGS) |
Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 30 | |
Jorge E. Moreira | e201723 | 2017-11-06 15:51:40 -0800 | [diff] [blame] | 31 | include $(CLEAR_VARS) |
Greg Hartman | a3c552d | 2019-03-28 18:20:48 -0700 | [diff] [blame] | 32 | LOCAL_MODULE := gralloc.cutf_ashmem |
Jorge E. Moreira | e201723 | 2017-11-06 15:51:40 -0800 | [diff] [blame] | 33 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 34 | LOCAL_MODULE_TAGS := optional |
Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 35 | |
Jorge E. Moreira | e201723 | 2017-11-06 15:51:40 -0800 | [diff] [blame] | 36 | LOCAL_SRC_FILES := $(VSOC_GRALLOC_COMMON_SRC_FILES) |
| 37 | |
| 38 | LOCAL_CFLAGS := $(VSOC_GRALLOC_COMMON_CFLAGS) |
Jorge E. Moreira | fd87e82 | 2018-01-23 14:55:00 -0800 | [diff] [blame] | 39 | LOCAL_C_INCLUDES := \ |
| 40 | device/google/cuttlefish_common \ |
| 41 | device/google/cuttlefish_kernel |
Steven Moreland | 9e7b0d7 | 2018-01-08 14:27:31 -0800 | [diff] [blame] | 42 | |
| 43 | LOCAL_HEADER_LIBRARIES := \ |
| 44 | libhardware_headers |
| 45 | |
Jorge E. Moreira | e201723 | 2017-11-06 15:51:40 -0800 | [diff] [blame] | 46 | LOCAL_SHARED_LIBRARIES := \ |
Jorge E. Moreira | fd87e82 | 2018-01-23 14:55:00 -0800 | [diff] [blame] | 47 | libbase \ |
Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 48 | liblog \ |
| 49 | libutils \ |
Cody Schuffelen | 134ff03 | 2019-11-22 00:25:32 -0800 | [diff] [blame^] | 50 | libcutils \ |
| 51 | vsoc_lib |
Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 52 | |
Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 53 | LOCAL_VENDOR_MODULE := true |
Jorge E. Moreira | 9dc14e7 | 2017-11-07 16:07:48 -0800 | [diff] [blame] | 54 | |
Greg Hartman | 917a9d8 | 2017-11-30 12:25:19 -0800 | [diff] [blame] | 55 | # See b/67109557 |
| 56 | ifeq (true, $(TARGET_TRANSLATE_2ND_ARCH)) |
| 57 | LOCAL_MULTILIB := first |
| 58 | endif |
| 59 | |
| 60 | include $(BUILD_SHARED_LIBRARY) |