diff options
Diffstat (limited to 'tools/aapt2/ResourceUtils.h')
-rw-r--r-- | tools/aapt2/ResourceUtils.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceUtils.h b/tools/aapt2/ResourceUtils.h index f93a4c762706..64ca97185153 100644 --- a/tools/aapt2/ResourceUtils.h +++ b/tools/aapt2/ResourceUtils.h @@ -17,6 +17,7 @@ #ifndef AAPT_RESOURCEUTILS_H #define AAPT_RESOURCEUTILS_H +#include "NameMangler.h" #include "Resource.h" #include "ResourceValues.h" #include "util/StringPiece.h" @@ -154,6 +155,16 @@ std::unique_ptr<Item> parseItemForAttribute( uint32_t androidTypeToAttributeTypeMask(uint16_t type); +/** + * Returns a string path suitable for use within an APK. The path will look like: + * + * res/type[-config]/<name>.<ext> + * + * Then name may be mangled if a NameMangler is supplied (can be nullptr) and the package + * requires mangling. + */ +std::string buildResourceFileName(const ResourceFile& resFile, const NameMangler* mangler); + } // namespace ResourceUtils } // namespace aapt |