diff --git a/meson.build b/meson.build index 6855417e8..dc8895735 100644 --- a/meson.build +++ b/meson.build @@ -116,7 +116,16 @@ if compiler_id == 'gcc' and compiler.version().version_compare('<9.1') or compil endif if get_option('PISTACHE_USE_SSL') - deps_libpistache += dependency('openssl') + ssl_lib_dir = get_option('PISTACHE_SSL_LIB_DIR') + ssl_hdr_dir = get_option('PISTACHE_SSL_INC_DIR') + if ssl_lib_dir != '' and ssl_hdr_dir != '' + deps_libpistache += declare_dependency( + link_args : ['-L' + ssl_lib_dir, '-lcrypto', '-lssl', '-ldl'], + include_directories : include_directories(ssl_hdr_dir) + ) + else + deps_libpistache += dependency('openssl') + endif endif version_array = [] diff --git a/meson_options.txt b/meson_options.txt index 00787acc8..0eb45126d 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -9,3 +9,5 @@ option('PISTACHE_INSTALL', type: 'boolean', value: true, description: 'add pista option('PISTACHE_USE_SSL', type: 'boolean', value: false, description: 'add support for SSL server') option('PISTACHE_USE_RAPIDJSON', type: 'boolean', value: true, description: 'add support for rapidjson') option('PISTACHE_USE_CONTENT_ENCODING_DEFLATE', type: 'boolean', value: false, description: 'add support for deflate compressed content encoding') +option('PISTACHE_SSL_LIB_DIR', type: 'string', description: 'SSL library path') +option('PISTACHE_SSL_INC_DIR', type: 'string', description: 'SSL headers path') \ No newline at end of file diff --git a/version.txt b/version.txt index 69446d306..1825ea935 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.2.2.20230803 +0.2.2.20230828