-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move internal OpenPGP parser into a subdirectory
This will let us split it out of the main rpm repository with minimal effects to the outside. Make sure the name implies its status too. Ie, first we declared it's trash, and now we're swiping it under the carpet.
- Loading branch information
Showing
7 changed files
with
24 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# At least for now, this is can't be built as a standalone project. Ie, | ||
# it can only be built as a part of rpm build tree. | ||
add_library(rpmpgp_legacy OBJECT) | ||
|
||
option(WITH_INTERNAL_OPENPGP "Use internal OpenPGP parser (DEPRECATED)" OFF) | ||
option(WITH_OPENSSL "Use openssl (instead of libgcrypt) for internal crypto" OFF) | ||
|
||
target_sources(rpmpgp_legacy PRIVATE | ||
rpmpgp_internal.h rpmpgp_internal.c | ||
) | ||
target_include_directories(rpmpgp_legacy PRIVATE ..) | ||
if (WITH_OPENSSL) | ||
find_package(OpenSSL 1.0.2 REQUIRED) | ||
target_sources(rpmpgp_legacy PRIVATE digest_openssl.c) | ||
target_link_libraries(rpmpgp_legacy PRIVATE OpenSSL::Crypto) | ||
else() | ||
pkg_check_modules(LIBGCRYPT REQUIRED IMPORTED_TARGET libgcrypt) | ||
target_sources(rpmpgp_legacy PRIVATE digest_libgcrypt.c) | ||
target_link_libraries(rpmpgp_legacy PRIVATE PkgConfig::LIBGCRYPT) | ||
endif() | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.