大量测试暂时未发现Bug.
This commit is contained in:
@@ -1 +0,0 @@
|
||||
# dummy
|
@@ -1,65 +0,0 @@
|
||||
|
||||
cmake_minimum_required( VERSION 3.13 )
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
add_definitions(-DHAVE_STRUCT_TIMESPEC)
|
||||
|
||||
# Windows compatibility headers
|
||||
include_directories(${CMAKE_SOURCE_DIR}/win32/compat)
|
||||
endif()
|
||||
|
||||
# Move public headers to a dedicated INTERFACE library
|
||||
#
|
||||
# An interface is required because libclamav objects will depend on the
|
||||
# interface to put unrar_iface.h in the include path, but we don't want to link
|
||||
# with it.
|
||||
# libclamunrar_iface will be dynamically loaded at run time, if enabled.
|
||||
add_library(clamunrar_iface_iface INTERFACE)
|
||||
target_sources(clamunrar_iface_iface
|
||||
INTERFACE
|
||||
unrar_iface.h )
|
||||
target_include_directories( clamunrar_iface_iface
|
||||
INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> )
|
||||
|
||||
add_library( ClamAV::libclamunrar_iface_iface ALIAS clamunrar_iface_iface )
|
||||
|
||||
if(ENABLE_UNRAR)
|
||||
# The clamunrar_iface SHARED library.
|
||||
add_library( clamunrar_iface SHARED )
|
||||
set_target_properties(clamunrar_iface PROPERTIES
|
||||
VERSION ${LIBCLAMAV_VERSION}
|
||||
SOVERSION ${LIBCLAMAV_SOVERSION})
|
||||
target_sources( clamunrar_iface
|
||||
PRIVATE
|
||||
unrar_iface.cpp )
|
||||
|
||||
target_include_directories( clamunrar_iface
|
||||
PRIVATE
|
||||
"${CMAKE_BINARY_DIR}" # For clamav-config.h
|
||||
$<TARGET_PROPERTY:ClamAV::libclamunrar,INTERFACE_INCLUDE_DIRECTORIES>
|
||||
$<TARGET_PROPERTY:ClamAV::libclamav,INTERFACE_INCLUDE_DIRECTORIES> )
|
||||
|
||||
set_target_properties( clamunrar_iface PROPERTIES
|
||||
COMPILE_FLAGS "${WARNCXXFLAGS} ${CXX1XCXXFLAGS}" )
|
||||
|
||||
if(WIN32)
|
||||
set_target_properties(clamunrar_iface PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
# Private (internal-only) dependencies.
|
||||
target_link_libraries( clamunrar_iface
|
||||
PRIVATE
|
||||
ClamAV::libclamunrar
|
||||
PUBLIC
|
||||
ClamAV::libclamunrar_iface_iface)
|
||||
|
||||
if(WIN32)
|
||||
install(TARGETS clamunrar_iface DESTINATION ${CMAKE_INSTALL_PREFIX})
|
||||
else()
|
||||
install(TARGETS clamunrar_iface DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
endif()
|
||||
|
||||
add_library( ClamAV::libclamunrar_iface ALIAS clamunrar_iface )
|
||||
endif()
|
@@ -1,22 +0,0 @@
|
||||
PROJECT_NAME = ClamAV - Libclamunrar_iface
|
||||
OUTPUT_DIRECTORY = ../docs/libclamunrar_iface
|
||||
WARNINGS = YES
|
||||
FILE_PATTERNS = *.c *.h
|
||||
PERL_PATH = /usr/bin/perl
|
||||
SEARCHENGINE = YES
|
||||
|
||||
GENERATE_LATEX=NO
|
||||
OPTIMIZE_OUTPUT_FOR_C=YES
|
||||
HAVE_DOT=YES
|
||||
CALL_GRAPH=YES
|
||||
CALLER_GRAPH=YES
|
||||
JAVADOC_AUTOBRIEF=YES
|
||||
GENERATE_MAN=NO
|
||||
EXAMPLE_PATH=examples
|
||||
|
||||
DOT_CLEANUP=NO
|
||||
MAX_DOT_GRAPH_DEPTH=3
|
||||
|
||||
EXTRACT_ALL=YES
|
||||
INPUT = . \
|
||||
../shared
|
@@ -1,10 +0,0 @@
|
||||
CLAMAV_PRIVATE {
|
||||
global:
|
||||
libclamunrar_iface_LTX_unrar_open;
|
||||
libclamunrar_iface_LTX_unrar_peek_file_header;
|
||||
libclamunrar_iface_LTX_unrar_extract_file;
|
||||
libclamunrar_iface_LTX_unrar_skip_file;
|
||||
libclamunrar_iface_LTX_unrar_close;
|
||||
local:
|
||||
*;
|
||||
};
|
Reference in New Issue
Block a user