-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: homebrew CI build, macOS ARM64 with Xcode 16, Boost.JSON build v…
…ia CMake (#444) - fixed CI homebrew build - fixed Boost.JSON build via CMake - fixed macOS ARM64 with Xcode 16
- Loading branch information
Showing
19 changed files
with
123 additions
and
34 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
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
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 |
---|---|---|
@@ -1,17 +1,54 @@ | ||
set(FETCHCONTENT_QUIET FALSE) | ||
FetchContent_Declare( | ||
set(PAR2_ROOT ${CMAKE_BINARY_DIR}/par2-turbo/src) | ||
|
||
add_compile_definitions(HAVE_CONFIG_H PARPAR_ENABLE_HASHER_MD5CRC) | ||
|
||
set(CMAKE_ARGS | ||
-DBUILD_TOOL=OFF | ||
-DBUILD_LIB=ON | ||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | ||
-DCMAKE_SYSTEM_PROCESSOR=${CMAKE_SYSTEM_PROCESSOR} | ||
-DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME} | ||
) | ||
|
||
if(APPLE) | ||
set(CMAKE_ARGS ${CMAKE_ARGS} | ||
-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES} | ||
) | ||
endif() | ||
|
||
if(CMAKE_SYSROOT) | ||
set(CMAKE_ARGS ${CMAKE_ARGS} | ||
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} | ||
-DCMAKE_SYSROOT=${CMAKE_SYSROOT} | ||
-DCMAKE_CXX_FLAGS=-I${CMAKE_SYSROOT}/usr/include/c++/v1 | ||
) | ||
endif() | ||
|
||
ExternalProject_add( | ||
par2-turbo | ||
GIT_REPOSITORY https://github.com/nzbgetcom/par2cmdline-turbo.git | ||
GIT_TAG v1.1.1-nzbget | ||
TLS_VERIFY TRUE | ||
GIT_SHALLOW TRUE | ||
PREFIX par2-turbo | ||
GIT_REPOSITORY https://github.com/nzbgetcom/par2cmdline-turbo.git | ||
GIT_TAG v1.1.1-nzbget | ||
TLS_VERIFY TRUE | ||
GIT_SHALLOW TRUE | ||
GIT_PROGRESS TRUE | ||
DOWNLOAD_EXTRACT_TIMESTAMP TRUE | ||
CMAKE_ARGS ${CMAKE_ARGS} | ||
INSTALL_COMMAND "" | ||
) | ||
|
||
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) | ||
if(WIN32) | ||
set(LIBS ${LIBS} | ||
${PAR2_ROOT}/par2-turbo-build/${CMAKE_BUILD_TYPE}/par2-turbo.lib | ||
${PAR2_ROOT}/par2-turbo-build/${CMAKE_BUILD_TYPE}/gf16.lib | ||
${PAR2_ROOT}/par2-turbo-build/${CMAKE_BUILD_TYPE}/hasher.lib | ||
) | ||
else() | ||
set(LIBS ${LIBS} | ||
${PAR2_ROOT}/par2-turbo-build/libpar2-turbo.a | ||
${PAR2_ROOT}/par2-turbo-build/libgf16.a | ||
${PAR2_ROOT}/par2-turbo-build/libhasher.a | ||
) | ||
endif() | ||
|
||
set(LIBS ${LIBS} par2-turbo gf16 hasher) | ||
set(INCLUDES ${INCLUDES} ${par2_SOURCE_DIR}/include) | ||
set(INCLUDES ${INCLUDES} ${PAR2_ROOT}/par2-turbo/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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
file(GLOB ExtensionSrc | ||
set(ExtensionSrc | ||
main.cpp | ||
ManifestFileTest.cpp | ||
ExtensionLoaderTest.cpp | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
file(GLOB PostprocessTestsSrc | ||
set(PostprocessTestsSrc | ||
main.cpp | ||
# DirectUnpackTest.cpp | ||
# DupeMatcherTest.cpp | ||
|
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
File renamed without changes.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
file(GLOB UtilTestSrc | ||
set(UtilTestSrc | ||
main.cpp | ||
FileSystemTest.cpp | ||
UtilTest.cpp | ||
|