1 # 2 # Copyright (C) 2015 The Android Open Source Project 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 17 LOCAL_PATH := $(call my-dir) 18 19 # Use these prebuilts unless we are actually building from a newly rebased 20 # LLVM. This variable is set by external/clang/build.py. 21 ifneq (true,$(FORCE_BUILD_SANITIZER_SHARED_OBJECTS)) 22 23 libclang_dir := $(LLVM_PREBUILTS_VERSION)/lib64/clang/3.8 24 25 include $(CLEAR_VARS) 26 LOCAL_MODULE := libclang_rt.asan-arm-android 27 LOCAL_SRC_FILES := $(libclang_dir)/lib/linux/$(LOCAL_MODULE).so 28 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 29 LOCAL_MODULE_SUFFIX := .so 30 LOCAL_MODULE_TARGET_ARCH := arm arm64 31 LOCAL_MULTILIB := 32 32 LOCAL_MODULE_PATH_32 := $(TARGET_OUT)/lib 33 LOCAL_SANITIZE := never 34 include $(BUILD_PREBUILT) 35 36 include $(CLEAR_VARS) 37 LOCAL_MODULE := libclang_rt.asan-aarch64-android 38 LOCAL_SRC_FILES := $(libclang_dir)/lib/linux/$(LOCAL_MODULE).so 39 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 40 LOCAL_MODULE_SUFFIX := .so 41 LOCAL_MODULE_TARGET_ARCH := arm64 42 LOCAL_MODULE_PATH_64 := $(TARGET_OUT)/lib64 43 LOCAL_SANITIZE := never 44 include $(BUILD_PREBUILT) 45 46 include $(CLEAR_VARS) 47 LOCAL_MODULE := libclang_rt.asan-i686-android 48 LOCAL_SRC_FILES := $(libclang_dir)/lib/linux/$(LOCAL_MODULE).so 49 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 50 LOCAL_MODULE_SUFFIX := .so 51 LOCAL_MODULE_TARGET_ARCH := x86 52 LOCAL_MODULE_PATH_32 := $(TARGET_OUT)/lib 53 LOCAL_SANITIZE := never 54 include $(BUILD_PREBUILT) 55 56 endif 57