blob: 578330637c2499f6b511193212546bf3b9e145d6 [file] [log] [blame]
Dan Willemsen639eb8d2015-09-16 17:25:01 -07001//
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
Chih-Hung Hsieh328ecd42017-09-29 12:19:56 -070035LIBUNWIND_CFLAGS = [
36 "-Wall",
37 "-Werror",
Ryan Prichardb846b132019-10-11 14:44:42 -070038 "-D_LIBUNWIND_USE_DLADDR=0",
Chih-Hung Hsieh328ecd42017-09-29 12:19:56 -070039]
40
Dan Willemsen639eb8d2015-09-16 17:25:01 -070041LIBUNWIND_CPPFLAGS = [
42 "-std=c++14",
43 "-fexceptions",
Dan Willemsen639eb8d2015-09-16 17:25:01 -070044 "-Wextra",
Chih-Hung Hsieh6136ec02018-09-04 14:19:27 -070045 "-Wno-implicit-fallthrough",
46 // src/Unwind-EHABI.cpp line 97 and 100 have implicit fallthrough.
Dan Willemsen639eb8d2015-09-16 17:25:01 -070047 "-Wno-unused-function",
48 "-Wno-unused-parameter",
Dan Albert93d99bf2017-04-18 14:50:19 -070049 "-Wno-unused-local-typedef",
Chih-Hung Hsieh741a8f32020-01-24 14:41:09 -080050 "-Wno-bitwise-conditional-parentheses", // in src/UnwindCursor.hpp:1437
Dan Willemsen639eb8d2015-09-16 17:25:01 -070051]
52
53cc_library_static {
54 name: "libunwind_llvm",
Stephen Hinesd9a5f192016-07-08 15:16:19 -070055 sdk_version: "21",
Dan Willemsena756c602017-04-07 14:13:13 -070056 vendor_available: true,
Yifan Hong2bdeda52020-01-22 17:13:18 -080057 ramdisk_available: true,
Jiyong Park2dd29ac2018-04-27 21:48:09 +090058 recovery_available: true,
dimitryec94f192019-05-09 14:59:18 +020059 native_bridge_supported: true,
Dan Willemsen639eb8d2015-09-16 17:25:01 -070060 srcs: LIBUNWIND_SRC_FILES,
61 include_dirs: LIBUNWIND_INCLUDES,
62 local_include_dirs: LIBUNWIND_LOCAL_INCLUDES,
Chih-Hung Hsieh328ecd42017-09-29 12:19:56 -070063 cflags: LIBUNWIND_CFLAGS,
Dan Willemsen639eb8d2015-09-16 17:25:01 -070064 cppflags: LIBUNWIND_CPPFLAGS,
65 stl: "none",
Peter Collingbourne956ccc22020-01-10 12:55:33 -080066 system_shared_libs: [],
67 header_libs: ["libc_headers"],
Colin Cross75720b62016-04-07 13:28:39 -070068 sanitize: {
69 never: true,
70 },
Dan Willemsenf171e722015-11-30 16:00:33 -080071 enabled: false,
Dan Willemsen639eb8d2015-09-16 17:25:01 -070072 arch: {
73 arm: {
Dan Willemsenf171e722015-11-30 16:00:33 -080074 enabled: true,
Dan Willemsen639eb8d2015-09-16 17:25:01 -070075 },
76 },
Jooyung Hanb6b048f2020-04-22 11:46:10 +090077 min_sdk_version: "apex_inherit",
Dan Willemsen639eb8d2015-09-16 17:25:01 -070078}