-
Notifications
You must be signed in to change notification settings - Fork 289
Add OpenSSL 3.x, V8 12.1+, GCC 15 compatibility and system library support #1641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8f05f21
Add OpenSSL 3.x compatibility to common_openssl
toabctl 336e87b
Add OpenSSL 3.x compatibility to Certificate_openssl
toabctl 8cd2325
Add OpenSSL 3.x compatibility to osign certificate
toabctl fc31de6
Add OpenSSL 3.x compatibility to doctrenderer hash
toabctl 603127d
Handle unsupported hash algorithms in HashEmbed
toabctl a4b236d
Allow using system OpenSSL via CONFIG+=use_system_openssl
toabctl ea3c718
Remove redundant vendored zlib.h include from ioapibuf.h
toabctl 8c11d67
Allow using system zlib via CONFIG+=use_system_zlib
toabctl 5a8f8ab
Allow using system Crypto++ via CONFIG+=use_system_cryptopp
toabctl 15549d4
Allow using system Boost via CONFIG+=use_system_boost
toabctl 7f24264
Allow using system ICU via CONFIG+=use_system_icu
toabctl 06d0719
Allow using system HarfBuzz via CONFIG+=use_system_harfbuzz
toabctl cd81b64
Allow using system libheif via CONFIG+=use_system_heif
toabctl 1e72d7e
Allow using system V8 via CONFIG+=use_system_v8
toabctl c92f694
Use portable include path for libheif header
toabctl 78a4250
Fix incompatible pointer types in vendored jasper JPEG-2000
toabctl 704e7b6
Fix GCC 15 and V8 12.1+ compatibility issues
toabctl f22a1fb
Allow using system V8 via CONFIG+=use_system_v8
toabctl 30f03ae
Export zlib_addon symbols for shared library visibility
toabctl c75ccef
Allow using system googletest via CONFIG+=use_system_googletest
toabctl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
80 changes: 44 additions & 36 deletions
Common/3dParty/boost/boost.pri
This file contains hidden or 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,53 +1,61 @@ | ||
| INCLUDEPATH += $$PWD/build/$$CORE_BUILDS_PLATFORM_PREFIX/include | ||
| CORE_BOOST_LIBS = $$PWD/build/$$CORE_BUILDS_PLATFORM_PREFIX/lib | ||
| !use_system_boost { | ||
| INCLUDEPATH += $$PWD/build/$$CORE_BUILDS_PLATFORM_PREFIX/include | ||
| CORE_BOOST_LIBS = $$PWD/build/$$CORE_BUILDS_PLATFORM_PREFIX/lib | ||
|
|
||
| core_android { | ||
| INCLUDEPATH += $$PWD/build/android/include | ||
| CORE_BOOST_LIBS = $$PWD/build/android/lib/$$CORE_BUILDS_PLATFORM_PREFIX | ||
|
|
||
| DEFINES += "_HAS_AUTO_PTR_ETC=0" | ||
| } | ||
|
|
||
| bundle_xcframeworks { | ||
| xcframework_platform_ios_simulator { | ||
| CORE_BOOST_LIBS = $$PWD/build/ios_xcframework/ios_simulator/lib/$$CORE_BUILDS_PLATFORM_PREFIX | ||
| } else { | ||
| CORE_BOOST_LIBS = $$PWD/build/ios_xcframework/ios/lib/$$CORE_BUILDS_PLATFORM_PREFIX | ||
| } | ||
| } | ||
| } | ||
|
|
||
| core_ios:CONFIG += disable_enum_constexpr_conversion | ||
| core_android:CONFIG += disable_enum_constexpr_conversion | ||
| core_mac:CONFIG += disable_enum_constexpr_conversion | ||
| core_linux_clang:CONFIG += disable_enum_constexpr_conversion | ||
|
|
||
| core_android { | ||
| INCLUDEPATH += $$PWD/build/android/include | ||
| CORE_BOOST_LIBS = $$PWD/build/android/lib/$$CORE_BUILDS_PLATFORM_PREFIX | ||
|
|
||
| DEFINES += "_HAS_AUTO_PTR_ETC=0" | ||
| } | ||
|
|
||
| disable_enum_constexpr_conversion { | ||
| QMAKE_CFLAGS += -Wno-enum-constexpr-conversion | ||
| QMAKE_CXXFLAGS += -Wno-enum-constexpr-conversion | ||
| } | ||
|
|
||
| bundle_xcframeworks { | ||
| xcframework_platform_ios_simulator { | ||
| CORE_BOOST_LIBS = $$PWD/build/ios_xcframework/ios_simulator/lib/$$CORE_BUILDS_PLATFORM_PREFIX | ||
| } else { | ||
| CORE_BOOST_LIBS = $$PWD/build/ios_xcframework/ios/lib/$$CORE_BUILDS_PLATFORM_PREFIX | ||
| } | ||
| } | ||
|
|
||
| core_win_arm64 { | ||
| DEFINES += MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS=0 | ||
| } | ||
|
|
||
| core_windows { | ||
| VS_VERSION=140 | ||
| VS_DEBUG= | ||
| VS_ARCH=x64 | ||
| core_debug:VS_DEBUG=gd- | ||
| core_win_32:VS_ARCH=x32 | ||
| core_win_arm64:VS_ARCH=a64 | ||
| vs2019:VS_VERSION=142 | ||
|
|
||
| DEFINES += BOOST_USE_WINDOWS_H BOOST_WINAPI_NO_REDECLARATIONS | ||
|
|
||
| BOOST_POSTFIX = -vc$${VS_VERSION}-mt-$${VS_DEBUG}$${VS_ARCH}-1_72 | ||
|
|
||
| core_boost_libs:LIBS += -L$$CORE_BOOST_LIBS -llibboost_system$$BOOST_POSTFIX -llibboost_filesystem$$BOOST_POSTFIX | ||
| core_boost_regex:LIBS += -L$$CORE_BOOST_LIBS -llibboost_regex$$BOOST_POSTFIX | ||
| core_boost_date_time:LIBS += -L$$CORE_BOOST_LIBS -llibboost_date_time$$BOOST_POSTFIX | ||
| use_system_boost { | ||
| core_boost_libs:LIBS += -lboost_system -lboost_filesystem | ||
| core_boost_regex:LIBS += -lboost_regex | ||
| core_boost_date_time:LIBS += -lboost_date_time | ||
| } else { | ||
| core_boost_libs:LIBS += -L$$CORE_BOOST_LIBS -lboost_system -lboost_filesystem | ||
| core_boost_regex:LIBS += -L$$CORE_BOOST_LIBS -lboost_regex | ||
| core_boost_date_time:LIBS += -L$$CORE_BOOST_LIBS -lboost_date_time | ||
| core_windows { | ||
| VS_VERSION=140 | ||
| VS_DEBUG= | ||
| VS_ARCH=x64 | ||
| core_debug:VS_DEBUG=gd- | ||
| core_win_32:VS_ARCH=x32 | ||
| core_win_arm64:VS_ARCH=a64 | ||
| vs2019:VS_VERSION=142 | ||
|
|
||
| DEFINES += BOOST_USE_WINDOWS_H BOOST_WINAPI_NO_REDECLARATIONS | ||
|
|
||
| BOOST_POSTFIX = -vc$${VS_VERSION}-mt-$${VS_DEBUG}$${VS_ARCH}-1_72 | ||
|
|
||
| core_boost_libs:LIBS += -L$$CORE_BOOST_LIBS -llibboost_system$$BOOST_POSTFIX -llibboost_filesystem$$BOOST_POSTFIX | ||
| core_boost_regex:LIBS += -L$$CORE_BOOST_LIBS -llibboost_regex$$BOOST_POSTFIX | ||
| core_boost_date_time:LIBS += -L$$CORE_BOOST_LIBS -llibboost_date_time$$BOOST_POSTFIX | ||
| } else { | ||
| core_boost_libs:LIBS += -L$$CORE_BOOST_LIBS -lboost_system -lboost_filesystem | ||
| core_boost_regex:LIBS += -L$$CORE_BOOST_LIBS -lboost_regex | ||
| core_boost_date_time:LIBS += -L$$CORE_BOOST_LIBS -lboost_date_time | ||
| } | ||
| } |
7 changes: 7 additions & 0 deletions
Common/3dParty/cryptopp/cryptopp.pri
This file contains hidden or 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,7 @@ | ||
| use_system_cryptopp { | ||
| LIBS += -lcryptopp | ||
| } else { | ||
| DEFINES += CRYPTOPP_DISABLE_ASM | ||
| INCLUDEPATH += $$PWD/.. | ||
| LIBS += -L$$CORE_BUILDS_LIBRARIES_PATH -lCryptoPPLib | ||
| } |
31 changes: 23 additions & 8 deletions
Common/3dParty/googletest/googletest.pri
This file contains hidden or 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,12 +1,27 @@ | ||
| CORE_GTEST_PATH=$$PWD/googletest/googletest | ||
| use_system_googletest { | ||
| LIBS += -lgtest | ||
| !core_no_gtest_main:LIBS += -lgtest_main | ||
| core_gmock:LIBS += -lgmock | ||
| } else { | ||
| CORE_GTEST_PATH=$$PWD/googletest/googletest | ||
|
|
||
| CONFIG += c++14 | ||
| CONFIG += c++14 | ||
|
|
||
| CORE_GTEST_PATH_INCLUDE = $$CORE_GTEST_PATH/include | ||
| CORE_GTEST_PATH_INCLUDE = $$CORE_GTEST_PATH/include | ||
|
|
||
| INCLUDEPATH += $$CORE_GTEST_PATH | ||
| INCLUDEPATH += $$CORE_GTEST_PATH_INCLUDE | ||
| INCLUDEPATH += $$CORE_GTEST_PATH | ||
| INCLUDEPATH += $$CORE_GTEST_PATH_INCLUDE | ||
|
|
||
| SOURCES += \ | ||
| $$CORE_GTEST_PATH/src/gtest-all.cc \ | ||
| $$CORE_GTEST_PATH/src/gtest_main.cc | ||
| SOURCES += \ | ||
| $$CORE_GTEST_PATH/src/gtest-all.cc | ||
| !core_no_gtest_main:SOURCES += $$CORE_GTEST_PATH/src/gtest_main.cc | ||
|
|
||
| core_gmock { | ||
| CORE_GMOCK_PATH=$$PWD/googletest/googlemock | ||
|
|
||
| INCLUDEPATH += $$CORE_GMOCK_PATH | ||
| INCLUDEPATH += $$CORE_GMOCK_PATH/include | ||
|
|
||
| SOURCES += $$CORE_GMOCK_PATH/src/gmock-all.cc | ||
| } | ||
| } |
2 changes: 1 addition & 1 deletion
Common/3dParty/harfbuzz/.gitignore
This file contains hidden or 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,3 +1,3 @@ | ||
| harfbuzz/ | ||
| harfbuzz.pri | ||
| harfbuzz_sources.pri | ||
| module.version |
6 changes: 6 additions & 0 deletions
Common/3dParty/harfbuzz/harfbuzz.pri
This file contains hidden or 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,6 @@ | ||
| use_system_harfbuzz { | ||
| INCLUDEPATH += /usr/include/harfbuzz | ||
| LIBS += -lharfbuzz | ||
| } else { | ||
| include($$PWD/harfbuzz_sources.pri) | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
4 changes: 2 additions & 2 deletions
Common/cfcpp/test/test.pro
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.