Colin Cross | 4f8d9e6 | 2016-12-01 15:55:00 -0800 | [diff] [blame] | 1 | // Copyright (C) 2010 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 | |
| 15 | // libandroidfw is partially built for the host (used by obbtool, aapt, and others) |
| 16 | |
| 17 | cc_library { |
| 18 | name: "libandroidfw", |
| 19 | host_supported: true, |
| 20 | cflags: [ |
| 21 | "-Wall", |
| 22 | "-Werror", |
| 23 | "-Wunused", |
| 24 | "-Wunreachable-code", |
| 25 | ], |
| 26 | srcs: [ |
| 27 | "Asset.cpp", |
| 28 | "AssetDir.cpp", |
| 29 | "AssetManager.cpp", |
| 30 | "AttributeResolution.cpp", |
| 31 | "LocaleData.cpp", |
| 32 | "misc.cpp", |
| 33 | "ObbFile.cpp", |
| 34 | "ResourceTypes.cpp", |
| 35 | "StreamingZipInflater.cpp", |
| 36 | "TypeWrappers.cpp", |
| 37 | "ZipFileRO.cpp", |
| 38 | "ZipUtils.cpp", |
| 39 | ], |
| 40 | export_include_dirs: ["include"], |
| 41 | target: { |
| 42 | android: { |
| 43 | srcs: [ |
| 44 | "BackupData.cpp", |
| 45 | "BackupHelpers.cpp", |
| 46 | "CursorWindow.cpp", |
| 47 | "DisplayEventDispatcher.cpp", |
| 48 | ], |
| 49 | shared_libs: [ |
| 50 | "libziparchive", |
| 51 | "libbase", |
| 52 | "libbinder", |
| 53 | "liblog", |
| 54 | "libcutils", |
| 55 | "libgui", |
| 56 | "libutils", |
| 57 | "libz", |
| 58 | ], |
| 59 | static: { |
| 60 | enabled: false, |
| 61 | }, |
| 62 | }, |
| 63 | host: { |
| 64 | cflags: ["-DSTATIC_ANDROIDFW_FOR_TOOLS"], |
| 65 | shared: { |
| 66 | enabled: false, |
| 67 | }, |
| 68 | shared_libs: ["libz-host"], |
| 69 | }, |
| 70 | windows: { |
| 71 | enabled: true, |
| 72 | }, |
| 73 | }, |
| 74 | } |