David Srbecky | 2faab00 | 2019-02-12 16:35:48 +0000 | [diff] [blame^] | 1 | // |
| 2 | // Copyright (C) 2011 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
| 17 | // Needed to import elf.h in the runtime. |
| 18 | cc_library_headers { |
| 19 | name: "libelffile-headers", |
| 20 | host_supported: true, |
| 21 | export_include_dirs: ["."], |
| 22 | } |
| 23 | |
| 24 | art_cc_defaults { |
| 25 | name: "libelffile-defaults", |
| 26 | host_supported: true, |
| 27 | export_include_dirs: ["."], |
| 28 | srcs: [ |
| 29 | "elf/xz_utils.cc", |
| 30 | "stream/buffered_output_stream.cc", |
| 31 | "stream/file_output_stream.cc", |
| 32 | "stream/output_stream.cc", |
| 33 | "stream/vector_output_stream.cc", |
| 34 | ], |
| 35 | shared_libs: [ |
| 36 | "libartbase", |
| 37 | "libbase", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | art_cc_library_static { |
| 42 | name: "libelffile", |
| 43 | defaults: [ |
| 44 | "art_defaults", |
| 45 | "libelffile-defaults", |
| 46 | ], |
| 47 | } |
| 48 | |
| 49 | art_cc_library_static { |
| 50 | name: "libelffiled", |
| 51 | defaults: [ |
| 52 | "art_debug_defaults", |
| 53 | "libelffile-defaults", |
| 54 | ], |
| 55 | } |