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