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 LIBUNWIND_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 28 LIBUNWIND_INCLUDES := \ 29 $(LOCAL_PATH)/include \ 30 external/libcxx/include \ 31 32 LIBUNWIND_CPPFLAGS := \ 33 -std=c++14 \ 34 -fexceptions \ 35 -Wall \ 36 -Wextra \ 37 -Wno-unused-function \ 38 -Wno-unused-parameter \ 39 -Werror \ 40 41 include $(CLEAR_VARS) 42 LOCAL_MODULE := libunwind_llvm 43 LOCAL_CLANG := true 44 LOCAL_SRC_FILES := $(LIBUNWIND_SRC_FILES) 45 LOCAL_C_INCLUDES := $(LIBUNWIND_INCLUDES) 46 LOCAL_CPPFLAGS := $(LIBUNWIND_CPPFLAGS) 47 LOCAL_MODULE_TARGET_ARCH := arm 48 LOCAL_CXX_STL := none 49 LOCAL_SANITIZE := never 50 include $(BUILD_STATIC_LIBRARY) 51