aapt2/cmake/libziparchive.cmake

22 lines
709 B
CMake
Raw Normal View History

2022-06-17 22:48:19 +02:00
add_library(libziparchive STATIC
${SRC}/libziparchive/zip_archive.cc
${SRC}/libziparchive/zip_archive_stream_entry.cc
${SRC}/libziparchive/zip_cd_entry_map.cc
${SRC}/libziparchive/zip_writer.cc
${SRC}/libziparchive/zip_error.cpp
${SRC}/libziparchive/incfs_support/signal_handling.cpp
)
target_compile_definitions(libziparchive PRIVATE
-DZLIB_CONST
-D_FILE_OFFSET_BITS=64
-DZIPARCHIVE_DISABLE_CALLBACK_API=1
)
target_include_directories(libziparchive PRIVATE
${SRC}/libziparchive/include
${SRC}/libziparchive/incfs_support/include
${SRC}/libbase/include
${SRC}/logging/liblog/include
${SRC}/boringssl/third_party/googletest/include
)