Nicolas Geoffray | 51cba19 | 2018-03-19 11:11:18 +0000 | [diff] [blame] | 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 | |
Bob Badour | d7257ba | 2021-02-28 21:06:19 -0800 | [diff] [blame] | 15 | package { |
| 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 Geoffray | d1ef717 | 2018-03-28 09:16:31 +0100 | [diff] [blame] | 24 | cc_binary { |
Nicolas Geoffray | 51cba19 | 2018-03-19 11:11:18 +0000 | [diff] [blame] | 25 | name: "veridex", |
Andreas Gampe | 370f041 | 2018-10-02 12:11:11 -0700 | [diff] [blame] | 26 | defaults: ["art_defaults"], |
Nicolas Geoffray | 51cba19 | 2018-03-19 11:11:18 +0000 | [diff] [blame] | 27 | host_supported: true, |
Nicolas Geoffray | dd96ed3 | 2018-03-21 11:00:14 +0000 | [diff] [blame] | 28 | srcs: [ |
Nicolas Geoffray | 2ebff05 | 2018-04-04 22:32:03 +0100 | [diff] [blame] | 29 | "flow_analysis.cc", |
Nicolas Geoffray | 534a0a1 | 2018-03-24 20:02:25 +0000 | [diff] [blame] | 30 | "hidden_api.cc", |
Nicolas Geoffray | 11ed027 | 2018-03-28 18:18:48 +0100 | [diff] [blame] | 31 | "hidden_api_finder.cc", |
Nicolas Geoffray | 2ebff05 | 2018-04-04 22:32:03 +0100 | [diff] [blame] | 32 | "precise_hidden_api_finder.cc", |
Nicolas Geoffray | dd96ed3 | 2018-03-21 11:00:14 +0000 | [diff] [blame] | 33 | "resolver.cc", |
| 34 | "veridex.cc", |
| 35 | ], |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 36 | cflags: [ |
| 37 | "-Wall", |
| 38 | "-Werror", |
| 39 | ], |
Nicolas Geoffray | 8fb6784 | 2018-05-23 11:22:30 +0100 | [diff] [blame] | 40 | static_libs: [ |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 41 | "libdexfile", |
| 42 | "libartbase", |
| 43 | "libbase", |
Nicolas Geoffray | 8fb6784 | 2018-05-23 11:22:30 +0100 | [diff] [blame] | 44 | "liblog", |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 45 | "libz", |
| 46 | "libziparchive", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 47 | ], |
Nicolas Geoffray | 8fb6784 | 2018-05-23 11:22:30 +0100 | [diff] [blame] | 48 | stl: "libc++_static", |
Nicolas Geoffray | 51cba19 | 2018-03-19 11:11:18 +0000 | [diff] [blame] | 49 | header_libs: [ |
| 50 | "art_libartbase_headers", |
| 51 | ], |
Orion Hodson | 4080b8f | 2019-04-02 13:58:04 +0100 | [diff] [blame] | 52 | target: { |
| 53 | darwin: { |
| 54 | enabled: true, |
| 55 | }, |
| 56 | }, |
Nicolas Geoffray | 51cba19 | 2018-03-19 11:11:18 +0000 | [diff] [blame] | 57 | } |
Paul Duffin | 50037df | 2019-07-10 14:10:08 +0100 | [diff] [blame] | 58 | |
| 59 | // Expose the appcompat.sh script for use by the build. |
| 60 | sh_binary_host { |
| 61 | name: "veridex-appcompat", |
| 62 | src: "appcompat.sh", |
| 63 | filename_from_src: true, |
| 64 | } |