forked from nzbgetcom/nzbget
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description - replaced the Par2 library with Par2-turbo which provides faster file recovery on x86/ARM platforms ## Lib changes - switched from Par2 to Par2-turbo - removed Par2 source files from the repo
- Loading branch information
Showing
65 changed files
with
517 additions
and
11,209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
if(CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang") | ||
add_compile_options(-Weverything) | ||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
add_compile_options(-Wall -Wextra) | ||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") | ||
add_compile_options(/Zi /MTd /MP /EHs /W4 /utf-8) | ||
endif() | ||
elseif(CMAKE_BUILD_TYPE STREQUAL "Release") | ||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") | ||
add_compile_options(/MT /Oi /MP /EHs /GR- /W0 /utf-8) | ||
else() | ||
add_compile_options(-fno-rtti -Wno-unused-function -Wno-unused-variable -Wno-unused-parameter) | ||
if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "powerpc") | ||
add_compile_options(-fstack-protector) | ||
endif() | ||
endif() | ||
|
||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang") | ||
add_compile_options(-Wno-c++98-compat) | ||
endif() | ||
endif() | ||
|
||
include(FetchContent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
set(FETCHCONTENT_QUIET FALSE) | ||
FetchContent_Declare( | ||
par2-turbo | ||
GIT_REPOSITORY https://github.com/nzbgetcom/par2cmdline-turbo.git | ||
GIT_TAG nzbget | ||
TLS_VERIFY TRUE | ||
GIT_SHALLOW TRUE | ||
GIT_PROGRESS TRUE | ||
) | ||
|
||
add_compile_definitions(HAVE_CONFIG_H PARPAR_ENABLE_HASHER_MD5CRC) | ||
set(BUILD_TOOL OFF CACHE BOOL "") | ||
set(BUILD_LIB ON CACHE BOOL "") | ||
FetchContent_MakeAvailable(par2-turbo) | ||
|
||
set(LIBS ${LIBS} par2-turbo gf16 hasher) | ||
set(INCLUDES ${INCLUDES} ${par2_SOURCE_DIR}/include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.