Home | History | Annotate | Download | only in libunwind_llvm
      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_CPPFLAGS = [
     36     "-std=c++14",
     37     "-fexceptions",
     38     "-Wall",
     39     "-Wextra",
     40     "-Wno-unused-function",
     41     "-Wno-unused-parameter",
     42     "-Werror",
     43 ]
     44 
     45 cc_library_static {
     46     name: "libunwind_llvm",
     47     clang: true,
     48     sdk_version: "21",
     49     vendor_available: true,
     50     srcs: LIBUNWIND_SRC_FILES,
     51     include_dirs: LIBUNWIND_INCLUDES,
     52     local_include_dirs: LIBUNWIND_LOCAL_INCLUDES,
     53     cppflags: LIBUNWIND_CPPFLAGS,
     54     stl: "none",
     55     sanitize: {
     56         never: true,
     57     },
     58     enabled: false,
     59     arch: {
     60         arm: {
     61             enabled: true,
     62         },
     63     },
     64 }
     65