1// Copyright (C) 2018 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "art_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["art_license"], 22} 23 24cc_binary { 25 name: "veridex", 26 defaults: ["art_defaults"], 27 host_supported: true, 28 srcs: [ 29 "flow_analysis.cc", 30 "hidden_api.cc", 31 "hidden_api_finder.cc", 32 "precise_hidden_api_finder.cc", 33 "resolver.cc", 34 "veridex.cc", 35 ], 36 cflags: [ 37 "-Wall", 38 "-Werror", 39 ], 40 static_libs: [ 41 "libdexfile", 42 "libartbase", 43 "libbase", 44 "liblog", 45 "libz", 46 "libziparchive", 47 ], 48 stl: "libc++_static", 49 header_libs: [ 50 "art_libartbase_headers", 51 ], 52 target: { 53 darwin: { 54 enabled: true, 55 }, 56 }, 57} 58 59// Expose the appcompat.sh script for use by the build. 60sh_binary_host { 61 name: "veridex-appcompat", 62 src: "appcompat.sh", 63 filename_from_src: true, 64} 65