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 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: { 28 host: { 29 host_ldlibs: ["-ldl"], 30 }, 31 android: { 32 shared_libs: ["liblog"], 33 }, 34 }, 35} 36 37// Create a dummy version of libsigchain which expose the necessary symbols 38// but throws when called. This can be used to get static binaries which don't 39// need the real functionality of the sig chain but need to please the linker. 40cc_library_static { 41 name: "libsigchain_dummy", 42 host_supported: true, 43 defaults: ["art_defaults"], 44 srcs: ["sigchain_dummy.cc"], 45 target: { 46 host: { 47 host_ldlibs: ["-ldl"], 48 }, 49 android: { 50 shared_libs: ["liblog"], 51 }, 52 }, 53} 54