add_library(libandroidfw STATIC
        base/libs/androidfw/ApkAssets.cpp
        base/libs/androidfw/Asset.cpp
        base/libs/androidfw/AssetDir.cpp
        base/libs/androidfw/AssetManager.cpp
        base/libs/androidfw/AssetManager2.cpp
        base/libs/androidfw/AttributeResolution.cpp
        base/libs/androidfw/ChunkIterator.cpp
        base/libs/androidfw/ConfigDescription.cpp
        base/libs/androidfw/Idmap.cpp
        base/libs/androidfw/LoadedArsc.cpp
        base/libs/androidfw/Locale.cpp
        base/libs/androidfw/LocaleData.cpp
        base/libs/androidfw/misc.cpp
        base/libs/androidfw/ObbFile.cpp
        base/libs/androidfw/PosixUtils.cpp
        base/libs/androidfw/ResourceTypes.cpp
        base/libs/androidfw/ResourceUtils.cpp
        base/libs/androidfw/StreamingZipInflater.cpp
        base/libs/androidfw/TypeWrappers.cpp
        base/libs/androidfw/Util.cpp
        base/libs/androidfw/ZipFileRO.cpp
        base/libs/androidfw/ZipUtils.cpp)

target_compile_definitions(libandroidfw PUBLIC -DSTATIC_ANDROIDFW_FOR_TOOLS)
target_compile_definitions(libandroidfw PRIVATE -D_GNU_SOURCE -DNDEBUG)
target_include_directories(libandroidfw PUBLIC
	base/libs/androidfw/include
	core/libcutils/include
	logging/liblog/include
	core/libsystem/include
	core/libutils/include
	libbase/include
	native/include
	libziparchive/include
	incremental_delivery/incfs/util/include)
target_link_libraries(libandroidfw PUBLIC fmt::fmt)
