blob: 9b77c069973b5eceab9ac385f0f928a784409602 [file] [log] [blame]
Christopher Ferrisfc26d712019-02-27 18:07:55 -08001//
2// Copyright (C) 2019 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
17cc_library_shared {
18 name: "libscudo_wrapper",
19 vendor_available: true,
20 srcs: ["scudo.cpp"],
21
22 stl: "none",
23 system_shared_libs: [],
24 host_supported: false,
25
26 header_libs: ["libc_headers"],
27 include_dirs: [
28 "bionic/libc",
29 "bionic/libc/bionic",
30 ],
31
32 whole_static_libs: ["libasync_safe"],
33
34 arch: {
35 arm: {
36 whole_static_libs: ["libclang_rt.scudo_minimal-arm-android.static"],
37 },
38 arm64: {
39 whole_static_libs: ["libclang_rt.scudo_minimal-aarch64-android.static"],
40 },
41 x86: {
42 whole_static_libs: ["libclang_rt.scudo_minimal-i686-android.static"],
43 },
44 x86_64: {
45 whole_static_libs: ["libclang_rt.scudo_minimal-x86_64-android.static"],
46 },
47 },
48
49 // Will be referencing other libc code that won't be defined here.
50 allow_undefined_symbols: true,
51
52 multilib: {
53 lib32: {
54 version_script: "exported32.map",
55 },
56 lib64: {
57 version_script: "exported64.map",
58 },
59 },
Pirama Arumuga Nainar17e7c752019-05-22 22:14:57 -070060
61 // Like libc, disable native coverage for libscudo_wrapper.
62 native_coverage: false,
Christopher Ferrisfc26d712019-02-27 18:07:55 -080063}