Remove src directory.

This commit is contained in:
Nathan Moinvaziri 2018-03-27 20:37:53 -07:00
parent c5f0063c75
commit a43eb98099
36 changed files with 33 additions and 33 deletions

View File

@ -51,31 +51,31 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/minizip.pc.cmakein ${MINIZIP_PC} @ONL
set(PROJECT_NAME libminizip)
set(MINIZIP_SRC
src/mz_os.c
src/mz_compat.c
src/mz_strm.c
src/mz_strm_buf.c
src/mz_strm_mem.c
src/mz_strm_posix.c
src/mz_strm_split.c
src/mz_strm_zlib.c
src/mz_zip.c)
mz_os.c
mz_compat.c
mz_strm.c
mz_strm_buf.c
mz_strm_mem.c
mz_strm_posix.c
mz_strm_split.c
mz_strm_zlib.c
mz_zip.c)
set(MINIZIP_PUBLIC_HEADERS
src/mz.h
src/mz_os.h
src/mz_compat.h
src/mz_strm.h
src/mz_strm_buf.h
src/mz_strm_mem.h
src/mz_strm_posix.h
src/mz_strm_split.h
src/mz_strm_zlib.h
src/mz_zip.h)
mz.h
mz_os.h
mz_compat.h
mz_strm.h
mz_strm_buf.h
mz_strm_mem.h
mz_strm_posix.h
mz_strm_split.h
mz_strm_zlib.h
mz_zip.h)
if(WIN32)
list(APPEND MINIZIP_SRC "src/mz_os_win32.c" "src/mz_strm_win32.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "src/mz_os_win32.h" "src/mz_strm_win32.h")
list(APPEND MINIZIP_SRC "mz_os_win32.c" "mz_strm_win32.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "mz_os_win32.h" "mz_strm_win32.h")
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
endif()
@ -87,8 +87,8 @@ endif()
if(UNIX)
add_compile_options(-O3)
list(APPEND MINIZIP_SRC "src/mz_os_posix.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "src/mz_os_posix.h")
list(APPEND MINIZIP_SRC "mz_os_posix.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "mz_os_posix.h")
set(define_lfs_macros TRUE)
@ -120,15 +120,15 @@ endif()
if(USE_CRYPT)
add_definitions(-DHAVE_CRYPT)
list(APPEND MINIZIP_SRC "src/mz_strm_crypt.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "src/mz_strm_crypt.h")
list(APPEND MINIZIP_SRC "mz_strm_crypt.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "mz_strm_crypt.h")
endif()
if(USE_AES)
add_definitions(-DHAVE_AES)
list(APPEND MINIZIP_SRC "src/mz_strm_aes.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "src/mz_strm_aes.h")
list(APPEND MINIZIP_SRC "mz_strm_aes.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "mz_strm_aes.h")
set(AES_SRC
lib/aes/aescrypt.c
@ -171,8 +171,8 @@ if(USE_BZIP2)
add_definitions(-DHAVE_BZIP2)
add_definitions(-DBZ_NO_STDIO)
list(APPEND MINIZIP_SRC "src/mz_strm_bzip.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "src/mz_strm_bzip.h")
list(APPEND MINIZIP_SRC "mz_strm_bzip.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "mz_strm_bzip.h")
set(BZIP2_SRC
lib/bzip2/blocksort.c
@ -197,8 +197,8 @@ if(USE_LZMA)
add_definitions(-DHAVE_CONFIG_H)
add_definitions(-DLZMA_API_STATIC)
list(APPEND MINIZIP_SRC "src/mz_strm_lzma.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "src/mz_strm_lzma.h")
list(APPEND MINIZIP_SRC "mz_strm_lzma.c")
list(APPEND MINIZIP_PUBLIC_HEADERS "mz_strm_lzma.h")
set(LZMA_CHECK_SRC
lib/liblzma/check/check.c
@ -356,7 +356,7 @@ install(FILES ${MINIZIP_PUBLIC_HEADERS} DESTINATION "${INSTALL_INC_DIR}")
install(FILES ${MINIZIP_PC} DESTINATION "${INSTALL_PKGCONFIG_DIR}")
if(BUILD_TEST)
add_executable(minizip "src/minizip.c")
add_executable(minizip "minizip.c")
target_link_libraries(minizip ${PROJECT_NAME})
install(TARGETS minizip

View File

@ -17,7 +17,7 @@ DESC
s.libraries = 'z'
s.subspec 'Core' do |sp|
sp.source_files = 'src/{mz_os,mz_compat,mz_strm,mz_strm_mem,mz_strm_buf,mz_zip,mz_strm_crypt,mz_strm_posix,mz_strm_zlib}.{c,h}'
sp.source_files = '{mz_os,mz_compat,mz_strm,mz_strm_mem,mz_strm_buf,mz_zip,mz_strm_crypt,mz_strm_posix,mz_strm_zlib}.{c,h}'
end
s.subspec 'AES' do |sp|

View File