blob: 1640a463231f56efc8e27402ebc0d6874967b3c4 [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
Nicolas Geoffrayd1ef7172018-03-28 09:16:31 +010015cc_binary {
Nicolas Geoffray51cba192018-03-19 11:11:18 +000016 name: "veridex",
Andreas Gampe370f0412018-10-02 12:11:11 -070017 defaults: ["art_defaults"],
Nicolas Geoffray51cba192018-03-19 11:11:18 +000018 host_supported: true,
Nicolas Geoffraydd96ed32018-03-21 11:00:14 +000019 srcs: [
Nicolas Geoffray2ebff052018-04-04 22:32:03 +010020 "flow_analysis.cc",
Nicolas Geoffray534a0a12018-03-24 20:02:25 +000021 "hidden_api.cc",
Nicolas Geoffray11ed0272018-03-28 18:18:48 +010022 "hidden_api_finder.cc",
Nicolas Geoffray2ebff052018-04-04 22:32:03 +010023 "precise_hidden_api_finder.cc",
Nicolas Geoffraydd96ed32018-03-21 11:00:14 +000024 "resolver.cc",
25 "veridex.cc",
26 ],
Andreas Gampe0dc93b12019-05-15 10:30:22 -070027 cflags: [
28 "-Wall",
29 "-Werror",
30 ],
Nicolas Geoffray8fb67842018-05-23 11:22:30 +010031 static_libs: [
David Sehr1f010162018-05-15 08:59:32 -070032 "libdexfile",
33 "libartbase",
34 "libbase",
Nicolas Geoffray8fb67842018-05-23 11:22:30 +010035 "liblog",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000036 "libz",
37 "libziparchive",
David Sehr1f010162018-05-15 08:59:32 -070038 ],
Nicolas Geoffray8fb67842018-05-23 11:22:30 +010039 stl: "libc++_static",
Nicolas Geoffray51cba192018-03-19 11:11:18 +000040 header_libs: [
41 "art_libartbase_headers",
42 ],
Orion Hodson4080b8f2019-04-02 13:58:04 +010043 target: {
44 darwin: {
45 enabled: true,
46 },
47 },
Nicolas Geoffray51cba192018-03-19 11:11:18 +000048}
Paul Duffin50037df2019-07-10 14:10:08 +010049
50// Expose the appcompat.sh script for use by the build.
51sh_binary_host {
52 name: "veridex-appcompat",
53 src: "appcompat.sh",
54 filename_from_src: true,
55}