Skip to content

Commit

Permalink
lib/openssl/meson.build: add variable openssl_api_comat
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Oct 25, 2023
1 parent c02ce53 commit aa0e288
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/openssl/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ if not is_variable('openssl_min_version')
openssl_min_version = '1.1.1'
endif

if not is_variable('openssl_api_compat')
openssl_api_compat = '0x10100000L'
endif

libcrypto = dependency('libcrypto', version: '>= ' + openssl_min_version,
required: get_variable('libcommon_require_libcrypto', true))
if not libcrypto.found()
Expand All @@ -10,15 +14,15 @@ if not libcrypto.found()
endif

libcrypto = declare_dependency(
compile_args: ['-DOPENSSL_API_COMPAT=0x10100000L'],
compile_args: ['-DOPENSSL_API_COMPAT=' + openssl_api_compat],
dependencies: libcrypto,
)

if get_variable('libcommon_enable_libssl', true)
libssl = dependency('libssl', version: '>= ' + openssl_min_version)

libssl = declare_dependency(
compile_args: ['-DOPENSSL_API_COMPAT=0x10100000L'],
compile_args: ['-DOPENSSL_API_COMPAT=' + openssl_api_compat],
dependencies: libssl,
)
else
Expand Down

0 comments on commit aa0e288

Please sign in to comment.