1 // 2 // Copyright (C) 2014 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 LIBUNWIND_SRC_FILES = [ 18 "src/libunwind.cpp", 19 "src/Unwind-EHABI.cpp", 20 "src/Unwind-sjlj.c", 21 "src/UnwindLevel1-gcc-ext.c", 22 "src/UnwindLevel1.c", 23 "src/UnwindRegistersSave.S", 24 "src/UnwindRegistersRestore.S", 25 ] 26 27 LIBUNWIND_INCLUDES = [ 28 "external/libcxx/include", 29 ] 30 31 LIBUNWIND_LOCAL_INCLUDES = [ 32 "include", 33 ] 34 35 LIBUNWIND_CFLAGS = [ 36 "-Wall", 37 "-Werror", 38 ] 39 40 LIBUNWIND_CPPFLAGS = [ 41 "-std=c++14", 42 "-fexceptions", 43 "-Wextra", 44 "-Wno-unused-function", 45 "-Wno-unused-parameter", 46 "-Wno-unused-local-typedef", 47 ] 48 49 cc_library_static { 50 name: "libunwind_llvm", 51 sdk_version: "21", 52 vendor_available: true, 53 srcs: LIBUNWIND_SRC_FILES, 54 include_dirs: LIBUNWIND_INCLUDES, 55 local_include_dirs: LIBUNWIND_LOCAL_INCLUDES, 56 cflags: LIBUNWIND_CFLAGS, 57 cppflags: LIBUNWIND_CPPFLAGS, 58 stl: "none", 59 sanitize: { 60 never: true, 61 }, 62 enabled: false, 63 arch: { 64 arm: { 65 enabled: true, 66 }, 67 }, 68 lto: { 69 never: true, 70 } 71 } 72