Start work on implementing public key crypto

Will come in handy for various things in the future, so lets just setup
the API now. No new dependencies are needed since Python already depends
on OpenSSL.
This commit is contained in:
Kovid Goyal
2022-08-03 22:37:35 +05:30
parent 97d7329d14
commit fd6bc55db6
4 changed files with 104 additions and 1 deletions

View File

@@ -412,6 +412,7 @@ def kitty_env() -> Env:
at_least_version('harfbuzz', 1, 5)
cflags.extend(pkg_config('libpng', '--cflags-only-I'))
cflags.extend(pkg_config('lcms2', '--cflags-only-I'))
cflags.extend(pkg_config('libcrypto', '--cflags-only-I'))
if is_macos:
platform_libs = [
'-framework', 'Carbon', '-framework', 'CoreText', '-framework', 'CoreGraphics',
@@ -436,7 +437,8 @@ def kitty_env() -> Env:
gl_libs = ['-framework', 'OpenGL'] if is_macos else pkg_config('gl', '--libs')
libpng = pkg_config('libpng', '--libs')
lcms2 = pkg_config('lcms2', '--libs')
ans.ldpaths += pylib + platform_libs + gl_libs + libpng + lcms2
libcrypto = pkg_config('libcrypto', '--libs')
ans.ldpaths += pylib + platform_libs + gl_libs + libpng + lcms2 + libcrypto
if is_macos:
ans.ldpaths.extend('-framework Cocoa'.split())
elif not is_openbsd: