Skip to content

Commit

Permalink
openssl: Update pkg-conf files
Browse files Browse the repository at this point in the history
Mimic what it is done on Linux. One pkg-conf file for each library:
libcrypto.dll -> libcrypto.pc
libssl.pc     -> libssl.pc

Then a openssl.pc file that that requires both libraries.
  • Loading branch information
AlessandroBono authored and nacho committed Nov 16, 2023
1 parent fb374b2 commit 8fa65fd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
12 changes: 12 additions & 0 deletions gvsbuild/patches/openssl/pc-files/libcrypto.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
enginesdir=${libdir}/engines-3

Name: OpenSSL-libcrypto
Description: OpenSSL cryptography library
Version: @version@
Libs: -L${libdir} -lcrypto
Libs.private: -ldl -pthread
Cflags: -I${includedir}
11 changes: 11 additions & 0 deletions gvsbuild/patches/openssl/pc-files/libssl.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: OpenSSL-libssl
Description: Secure Sockets Layer and cryptography libraries
Version: @version@
Requires.private: libcrypto
Libs: -L${libdir} -lssl
Cflags: -I${includedir}
10 changes: 4 additions & 6 deletions gvsbuild/patches/openssl/pc-files/openssl.pc
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# On windows, the prefix is automagically build from the location of the .pc file
prefix=@prefix@
exec_prefix=${prefix}
libdir=${prefix}/lib
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: openssl
Description: Cryptography and SSL/TLS Toolkit
Name: OpenSSL
Description: Secure Sockets Layer and cryptography libraries and tools
Version: @version@
Requires: libssl libcrypto

Libs: -L${libdir} -llibssl -llibcrypto
Cflags: -I${includedir}/openssl

0 comments on commit 8fa65fd

Please sign in to comment.