1// 2// Copyright (C) 2023 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 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_library { 22 name: "libelf64", 23 local_include_dirs: [ 24 "include", 25 ], 26 export_include_dirs: [ 27 "include", 28 ], 29 srcs: [ 30 "comparator.cpp", 31 "iter.cpp", 32 "parse.cpp", 33 "writer.cpp", 34 ], 35 shared_libs: [ 36 "libbase", 37 ], 38 cflags: [ 39 "-Wall", 40 "-Werror", 41 ], 42} 43 44cc_binary { 45 name: "gen_invalid_libs", 46 srcs: [ 47 "gen_invalid_libs.cpp", 48 ], 49 static_libs: [ 50 "libelf64", 51 ], 52 shared_libs: [ 53 "libbase", 54 ], 55 cflags: [ 56 "-Wall", 57 "-Werror", 58 ], 59} 60 61cc_binary { 62 name: "compare_libs", 63 srcs: [ 64 "compare_libs.cpp", 65 ], 66 static_libs: [ 67 "libelf64", 68 ], 69 shared_libs: [ 70 "libbase", 71 ], 72 cflags: [ 73 "-Wall", 74 "-Werror", 75 ], 76} 77