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 17LOCAL_PATH := $(call my-dir) 18 19LIBUNWIND_SRC_FILES := \ 20 src/libunwind.cpp \ 21 src/Unwind-EHABI.cpp \ 22 src/Unwind-sjlj.c \ 23 src/UnwindLevel1-gcc-ext.c \ 24 src/UnwindLevel1.c \ 25 src/UnwindRegistersSave.S \ 26 src/UnwindRegistersRestore.S \ 27 28LIBUNWIND_INCLUDES := \ 29 $(LOCAL_PATH)/include \ 30 external/libcxx/include \ 31 32LIBUNWIND_CPPFLAGS := \ 33 -std=c++14 \ 34 -fexceptions \ 35 -Wall \ 36 -Wextra \ 37 -Wno-unused-function \ 38 -Wno-unused-parameter \ 39 -Werror \ 40 41include $(CLEAR_VARS) 42LOCAL_MODULE := libunwind_llvm 43LOCAL_CLANG := true 44LOCAL_SRC_FILES := $(LIBUNWIND_SRC_FILES) 45LOCAL_C_INCLUDES := $(LIBUNWIND_INCLUDES) 46LOCAL_CPPFLAGS := $(LIBUNWIND_CPPFLAGS) 47LOCAL_MODULE_TARGET_ARCH := arm 48LOCAL_CXX_STL := none 49LOCAL_SANITIZE := never 50include $(BUILD_STATIC_LIBRARY) 51