forked from openssl/openssl
-
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.
fix: for exporters to work for build config, there may be two include…
… dirs For CMake / pkg-config configuration files to be used for an uninstalled build, the include directory in the build directory isn't enough, if that one is separate from the source directory. The include directory in the source directory must be accounted for too. This includes some lighter refactoring of util/mkinstallvars.pl, with the result that almost all variables in builddata.pm and installdata.pm have become arrays, even though unnecessarily for most of them; it was simpler that way. The CMake / pkg-config templates are adapted accordingly. Reviewed-by: Neil Horman <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#24918)
- Loading branch information
Showing
5 changed files
with
84 additions
and
46 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 |
---|---|---|
@@ -1,15 +1,22 @@ | ||
prefix={- $OpenSSL::safe::installdata::PREFIX -} | ||
prefix={- $OpenSSL::safe::installdata::PREFIX[0] -} | ||
exec_prefix=${prefix} | ||
libdir={- $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX | ||
? '${exec_prefix}/' . $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX | ||
: $OpenSSL::safe::installdata::libdir -} | ||
includedir=${prefix}/{- $OpenSSL::safe::installdata::INCLUDEDIR_REL_PREFIX -} | ||
enginesdir=${libdir}/{- $OpenSSL::safe::installdata::ENGINESDIR_REL_LIBDIR -} | ||
modulesdir=${libdir}/{- $OpenSSL::safe::installdata::MODULESDIR_REL_LIBDIR -} | ||
libdir={- $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX[0] | ||
? '${exec_prefix}/' . $OpenSSL::safe::installdata::LIBDIR_REL_PREFIX[0] | ||
: $OpenSSL::safe::installdata::libdir[0] -} | ||
includedir={- $OUT = ''; | ||
$OUT .= '${prefix}/' . $_ . ' ' | ||
foreach (@OpenSSL::safe::installdata::INCLUDEDIR_REL_PREFIX); -} | ||
enginesdir=${libdir}/{- $OpenSSL::safe::installdata::ENGINESDIR_REL_LIBDIR[0] -} | ||
modulesdir=${libdir}/{- $OpenSSL::safe::installdata::MODULESDIR_REL_LIBDIR[0] -} | ||
|
||
Name: OpenSSL-libcrypto | ||
Description: OpenSSL cryptography library | ||
Version: {- $OpenSSL::safe::installdata::VERSION -} | ||
Libs: -L${libdir} -lcrypto | ||
Libs.private: {- join(' ', @OpenSSL::safe::installdata::LDLIBS) -} | ||
Cflags: -I${includedir} | ||
Cflags:{- $OUT = ' -I${includedir}'; | ||
if (scalar @OpenSSL::safe::installdata::INCLUDEDIR_REL_PREFIX > 1) { | ||
$OUT = ''; | ||
$OUT .= ' -I${prefix}/' . $_ . ' ' | ||
foreach (@OpenSSL::safe::installdata::INCLUDEDIR_REL_PREFIX); | ||
} -} |
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