blob: d5f5162419bc683c025cb71b1fde4d5de1bb55fe [file] [log] [blame]
Nicolas Geoffray51cba192018-03-19 11:11:18 +00001// 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
Bob Badourd7257ba2021-02-28 21:06:19 -080015package {
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
Nicolas Geoffrayd1ef7172018-03-28 09:16:31 +010024cc_binary {
Nicolas Geoffray51cba192018-03-19 11:11:18 +000025 name: "veridex",
Andreas Gampe370f0412018-10-02 12:11:11 -070026 defaults: ["art_defaults"],
Nicolas Geoffray51cba192018-03-19 11:11:18 +000027 host_supported: true,
Nicolas Geoffraydd96ed32018-03-21 11:00:14 +000028 srcs: [
Nicolas Geoffray2ebff052018-04-04 22:32:03 +010029 "flow_analysis.cc",
Nicolas Geoffray534a0a12018-03-24 20:02:25 +000030 "hidden_api.cc",
Nicolas Geoffray11ed0272018-03-28 18:18:48 +010031 "hidden_api_finder.cc",
Nicolas Geoffray2ebff052018-04-04 22:32:03 +010032 "precise_hidden_api_finder.cc",
Nicolas Geoffraydd96ed32018-03-21 11:00:14 +000033 "resolver.cc",
34 "veridex.cc",
35 ],
Andreas Gampe0dc93b12019-05-15 10:30:22 -070036 cflags: [
37 "-Wall",
38 "-Werror",
39 ],
Nicolas Geoffray8fb67842018-05-23 11:22:30 +010040 static_libs: [
David Sehr1f010162018-05-15 08:59:32 -070041 "libdexfile",
42 "libartbase",
43 "libbase",
Nicolas Geoffray8fb67842018-05-23 11:22:30 +010044 "liblog",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000045 "libz",
46 "libziparchive",
David Sehr1f010162018-05-15 08:59:32 -070047 ],
Nicolas Geoffray8fb67842018-05-23 11:22:30 +010048 stl: "libc++_static",
Nicolas Geoffray51cba192018-03-19 11:11:18 +000049 header_libs: [
50 "art_libartbase_headers",
51 ],
Orion Hodson4080b8f2019-04-02 13:58:04 +010052 target: {
53 darwin: {
54 enabled: true,
55 },
56 },
Nicolas Geoffray51cba192018-03-19 11:11:18 +000057}
Paul Duffin50037df2019-07-10 14:10:08 +010058
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}