Skip to content

Commit

Permalink
Rewrite problematic code
Browse files Browse the repository at this point in the history
Fixes #60. Based on Davipb/utf8-utf16-converter@656b03a.

Signed-off-by: Peter Lemenkov <[email protected]>
  • Loading branch information
lemenkov committed Nov 19, 2024
1 parent d6d883a commit cec275c
Show file tree
Hide file tree
Showing 10 changed files with 413 additions and 776 deletions.
6 changes: 3 additions & 3 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
add_subdirectory(convert_utf)

if(USE_OUR_OWN_MD5)
add_subdirectory(md5)
endif()
Expand All @@ -9,10 +7,12 @@ set(LIBUNSHIELD_HEADERS
libunshield.h
log.h
cabfile.h
converter.h
)

set(LIBUNSHIELD_SOURCES
component.c
converter.c
directory.c
file.c
file_group.c
Expand All @@ -31,7 +31,7 @@ endif()
target_include_directories(libunshield PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
target_link_libraries(libunshield PUBLIC ZLIB::ZLIB PRIVATE $<TARGET_OBJECTS:convert_utf>)
target_link_libraries(libunshield PUBLIC ZLIB::ZLIB)
target_compile_definitions(libunshield PRIVATE UNSHIELD_EXPORT)
set_target_properties(libunshield PROPERTIES OUTPUT_NAME unshield)
set_target_properties(libunshield PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
Expand Down
22 changes: 0 additions & 22 deletions lib/convert_utf/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit cec275c

Please sign in to comment.