• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17LIBUNWIND_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
27LIBUNWIND_INCLUDES = [
28    "external/libcxx/include",
29]
30
31LIBUNWIND_LOCAL_INCLUDES = [
32    "include",
33]
34
35LIBUNWIND_CPPFLAGS = [
36    "-std=c++14",
37    "-fexceptions",
38    "-Wall",
39    "-Wextra",
40    "-Wno-unused-function",
41    "-Wno-unused-parameter",
42    "-Wno-unused-local-typedef",
43    "-Werror",
44]
45
46cc_library_static {
47    name: "libunwind_llvm",
48    clang: true,
49    sdk_version: "21",
50    vendor_available: true,
51    srcs: LIBUNWIND_SRC_FILES,
52    include_dirs: LIBUNWIND_INCLUDES,
53    local_include_dirs: LIBUNWIND_LOCAL_INCLUDES,
54    cppflags: LIBUNWIND_CPPFLAGS,
55    stl: "none",
56    sanitize: {
57        never: true,
58    },
59    enabled: false,
60    arch: {
61        arm: {
62            enabled: true,
63        },
64    },
65}
66