compat: libc: Convert to Android.bp
While we're at it: * Rename to libc_*_shim * Move the source files to /libc/ Change-Id: I7eb08ae8ab7ff5349814d4475ab08fcfc95e8854
This commit is contained in:
parent
ca8a75680f
commit
ac25b3eb52
4 changed files with 16 additions and 39 deletions
16
Android.bp
16
Android.bp
|
@ -262,6 +262,22 @@ cc_library {
|
|||
vendor: true
|
||||
}
|
||||
|
||||
cc_library {
|
||||
name: "libc_mutexdestroy_shim",
|
||||
shared_libs: ["libc"],
|
||||
srcs: ["libc/pthread_mutex_destroy.cpp"],
|
||||
sanitize: { never: true },
|
||||
stl: "none",
|
||||
vendor: true
|
||||
}
|
||||
|
||||
cc_library {
|
||||
name: "libc_pthreadts_shim",
|
||||
shared_libs: ["libc"],
|
||||
srcs: ["libc/pthread_cond_timedwait.cpp"],
|
||||
vendor: true
|
||||
}
|
||||
|
||||
cc_library {
|
||||
name: "libcamera_metadata_shim",
|
||||
shared_libs: ["libcamera_metadata"],
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
# Copyright (C) 2013-2016, The CyanogenMod Project
|
||||
# Copyright (C) 2018, The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_SRC_FILES := \
|
||||
bionic/pthread_mutex_destroy.cpp
|
||||
LOCAL_SHARED_LIBRARIES := libc
|
||||
LOCAL_MODULE := libshim_mutexdestroy
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_CXX_STL := none
|
||||
LOCAL_SANITIZE := never
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_32_BIT_ONLY := true
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_SRC_FILES := \
|
||||
bionic/pthread_cond_timedwait.cpp
|
||||
LOCAL_SHARED_LIBRARIES := libc
|
||||
LOCAL_MODULE := libshim_pthreadts
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
include $(BUILD_SHARED_LIBRARY)
|
Loading…
Reference in a new issue