blob: 7aab726be7e3e67f46a2ae3f48293dd493f7dda4 [file] [log] [blame]
Colin Cross1f7f3bd2016-07-27 10:12:38 -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
17cc_library {
18 name: "libsigchain",
19 host_supported: true,
20 defaults: ["art_defaults"],
21 shared: {
22 srcs: ["sigchain_dummy.cc"],
23 },
24 static: {
25 srcs: ["sigchain.cc"],
26 },
27 target: {
Colin Cross1f7f3bd2016-07-27 10:12:38 -070028 android: {
29 shared_libs: ["liblog"],
30 },
31 },
Andreas Gampe89b85842017-05-10 09:47:55 -070032 // Sigchainlib is whole-statically linked into binaries. For Android.mk-based binaries,
33 // this will drag ASAN symbols into the binary, even for modules using LOCAL_SANITIZE := never.
34 // So disable sanitization for now. b/38456126
35 sanitize: {
36 never: true,
37 },
Colin Cross1f7f3bd2016-07-27 10:12:38 -070038}
39
40// Create a dummy version of libsigchain which expose the necessary symbols
41// but throws when called. This can be used to get static binaries which don't
42// need the real functionality of the sig chain but need to please the linker.
43cc_library_static {
44 name: "libsigchain_dummy",
45 host_supported: true,
46 defaults: ["art_defaults"],
47 srcs: ["sigchain_dummy.cc"],
48 target: {
Colin Cross1f7f3bd2016-07-27 10:12:38 -070049 android: {
50 shared_libs: ["liblog"],
51 },
52 },
53}