-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[qca]support linux-osx-static build #13964
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
Merged
dan-shaw
merged 20 commits into
microsoft:master
from
longhuan2018:fix-qca-linux-osx-bug
Oct 12, 2020
Merged
Changes from 13 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4dac6c2
Merge pull request #1 from microsoft/master
longhuan2018 af60ca0
Merge pull request #3 from microsoft/master
longhuan2018 087655f
Merge pull request #4 from microsoft/master
longhuan2018 c1a19a4
Merge pull request #8 from microsoft/master
longhuan2018 657efd4
Merge pull request #9 from microsoft/master
longhuan2018 842b78e
Merge pull request #10 from microsoft/master
longhuan2018 64c225d
Merge pull request #11 from microsoft/master
longhuan2018 407205c
Merge pull request #12 from microsoft/master
longhuan2018 813ef5d
Merge pull request #13 from microsoft/master
longhuan2018 3823c53
Merge pull request #16 from microsoft/master
longhuan2018 1851503
Merge pull request #18 from microsoft/master
longhuan2018 ae4b824
support linux, osx, static build
longhuan2018 b1948ec
fix install bug
longhuan2018 1a53d1e
set OSX_FRAMEWORK=OFF fix osx install failed bug
longhuan2018 2e73d04
Update ports/qca/portfile.cmake
longhuan2018 1c39b91
Update ports/qca/portfile.cmake
longhuan2018 2c8a560
Update ports/qca/portfile.cmake
longhuan2018 73b570e
Update ports/qca/portfile.cmake
longhuan2018 c53e2c3
Update ports/qca/portfile.cmake
longhuan2018 13c11cf
change install copyright
longhuan2018 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,57 +1,58 @@ | ||
| diff --git a/plugins/qca-gnupg/CMakeLists.txt b/plugins/qca-gnupg/CMakeLists.txt | ||
| index 1ed8e21..20890dd 100644 | ||
| --- a/plugins/qca-gnupg/CMakeLists.txt | ||
| +++ b/plugins/qca-gnupg/CMakeLists.txt | ||
| @@ -68,6 +68,4 @@ if(NOT DEVELOPER_MODE) | ||
| LIBRARY DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | ||
| ARCHIVE DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | ||
| RUNTIME DESTINATION "${QCA_CRYPTO_INSTALL_DIR}") | ||
| - | ||
| - install_pdb(qca-gnupg ${QCA_CRYPTO_INSTALL_DIR}) | ||
| endif() | ||
| diff --git a/plugins/qca-logger/CMakeLists.txt b/plugins/qca-logger/CMakeLists.txt | ||
| index ba6926e..45e1986 100644 | ||
| --- a/plugins/qca-logger/CMakeLists.txt | ||
| +++ b/plugins/qca-logger/CMakeLists.txt | ||
| @@ -20,6 +20,4 @@ if(NOT DEVELOPER_MODE) | ||
| LIBRARY DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | ||
| ARCHIVE DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | ||
| RUNTIME DESTINATION "${QCA_CRYPTO_INSTALL_DIR}") | ||
| - | ||
| - install_pdb(qca-logger ${QCA_CRYPTO_INSTALL_DIR}) | ||
| endif() | ||
| diff --git a/plugins/qca-ossl/CMakeLists.txt b/plugins/qca-ossl/CMakeLists.txt | ||
| index af3d756..c8480a3 100644 | ||
| --- a/plugins/qca-ossl/CMakeLists.txt | ||
| +++ b/plugins/qca-ossl/CMakeLists.txt | ||
| @@ -65,8 +65,6 @@ if(OPENSSL_FOUND) | ||
| LIBRARY DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | ||
| ARCHIVE DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | ||
| RUNTIME DESTINATION "${QCA_CRYPTO_INSTALL_DIR}") | ||
| - | ||
| - install_pdb(qca-ossl ${QCA_CRYPTO_INSTALL_DIR}) | ||
| endif() | ||
| diff --git "a/cmake/modules/QcaMacro.cmake" "b/cmake/modules/QcaMacro.cmake" | ||
| index 5d86e4725..62568626b 100644 | ||
| --- "a/cmake/modules/QcaMacro.cmake" | ||
| +++ "b/cmake/modules/QcaMacro.cmake" | ||
| @@ -61,15 +61,6 @@ macro(add_qca_test TARGET DESCRIPTION) | ||
| endmacro(add_qca_test) | ||
|
|
||
| else(OPENSSL_FOUND) | ||
| diff --git a/plugins/qca-softstore/CMakeLists.txt b/plugins/qca-softstore/CMakeLists.txt | ||
| index d7af072..3c64870 100644 | ||
| --- a/plugins/qca-softstore/CMakeLists.txt | ||
| +++ b/plugins/qca-softstore/CMakeLists.txt | ||
| @@ -20,6 +20,4 @@ if(NOT DEVELOPER_MODE) | ||
| LIBRARY DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | ||
| ARCHIVE DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | ||
| RUNTIME DESTINATION "${QCA_CRYPTO_INSTALL_DIR}") | ||
| macro(install_pdb TARGET INSTALL_PATH) | ||
| - if(MSVC) | ||
| - get_target_property(LOCATION ${TARGET} LOCATION_DEBUG) | ||
| - string(REGEX REPLACE "\\.[^.]*$" ".pdb" LOCATION "${LOCATION}") | ||
| - install(FILES ${LOCATION} DESTINATION ${INSTALL_PATH} CONFIGURATIONS Debug) | ||
| - | ||
| - install_pdb(qca-softstore ${QCA_CRYPTO_INSTALL_DIR}) | ||
| endif() | ||
| diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
| index 2e81974..907049c 100644 | ||
| --- a/src/CMakeLists.txt | ||
| +++ b/src/CMakeLists.txt | ||
| @@ -184,6 +184,5 @@ if(NOT DEVELOPER_MODE) | ||
| FRAMEWORK DESTINATION "${QCA_LIBRARY_INSTALL_DIR}" | ||
| PUBLIC_HEADER DESTINATION "${QCA_FULL_INCLUDE_INSTALL_DIR}" INCLUDES DESTINATION "${QCA_FULL_INCLUDE_INSTALL_DIR}" | ||
| ) | ||
| - install_pdb(${QCA_LIB_NAME} ${QCA_BINARY_INSTALL_DIR}) | ||
| endif() | ||
| - get_target_property(LOCATION ${TARGET} LOCATION_RELWITHDEBINFO) | ||
| - string(REGEX REPLACE "\\.[^.]*$" ".pdb" LOCATION "${LOCATION}") | ||
| - install(FILES ${LOCATION} DESTINATION ${INSTALL_PATH} CONFIGURATIONS RelWithDebInfo) | ||
| - endif() | ||
| endmacro(install_pdb) | ||
|
|
||
| macro(normalize_path PATH) | ||
| diff --git "a/plugins/qca-ossl/qca-ossl.cpp" "b/plugins/qca-ossl/qca-ossl.cpp" | ||
| index ee872d721..fa3e2c414 100644 | ||
| --- "a/plugins/qca-ossl/qca-ossl.cpp" | ||
| +++ "b/plugins/qca-ossl/qca-ossl.cpp" | ||
| @@ -6910,6 +6910,7 @@ public: | ||
| else if ( type == QLatin1String("aes256-ccm") ) | ||
| return new opensslCipherContext( EVP_aes_256_ccm(), 0, this, type); | ||
| #endif | ||
| +#ifndef OPENSSL_NO_BF | ||
| else if ( type == QLatin1String("blowfish-ecb") ) | ||
| return new opensslCipherContext( EVP_bf_ecb(), 0, this, type); | ||
| else if ( type == QLatin1String("blowfish-cfb") ) | ||
| @@ -6920,6 +6921,8 @@ public: | ||
| return new opensslCipherContext( EVP_bf_cbc(), 0, this, type); | ||
| else if ( type == QLatin1String("blowfish-cbc-pkcs7") ) | ||
| return new opensslCipherContext( EVP_bf_cbc(), 1, this, type); | ||
| +#endif | ||
| +#ifndef OPENSSL_NO_DES | ||
| else if ( type == QLatin1String("tripledes-ecb") ) | ||
| return new opensslCipherContext( EVP_des_ede3(), 0, this, type); | ||
| else if ( type == QLatin1String("tripledes-cbc") ) | ||
| @@ -6936,6 +6939,8 @@ public: | ||
| return new opensslCipherContext( EVP_des_cfb(), 0, this, type); | ||
| else if ( type == QLatin1String("des-ofb") ) | ||
| return new opensslCipherContext( EVP_des_ofb(), 0, this, type); | ||
| +#endif | ||
| +#ifndef OPENSSL_NO_CAST | ||
| else if ( type == QLatin1String("cast5-ecb") ) | ||
| return new opensslCipherContext( EVP_cast5_ecb(), 0, this, type); | ||
| else if ( type == QLatin1String("cast5-cbc") ) | ||
| @@ -6946,6 +6951,7 @@ public: | ||
| return new opensslCipherContext( EVP_cast5_cfb(), 0, this, type); | ||
| else if ( type == QLatin1String("cast5-ofb") ) | ||
| return new opensslCipherContext( EVP_cast5_ofb(), 0, this, type); | ||
| +#endif | ||
| else if ( type == QLatin1String("pkey") ) | ||
| return new MyPKeyContext( this ); | ||
| else if ( type == QLatin1String("dlgroup") ) |
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,5 +1,5 @@ | ||
| Source: qca | ||
| Version: 2.2.1-1 | ||
| Version: 2.3.1 | ||
| Description: Qt Cryptographic Architecture (QCA). | ||
| Homepage: https://cgit.kde.org/qca.git/ | ||
| Build-Depends: qt5-base[core] |
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
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.
Uh oh!
There was an error while loading. Please reload this page.