@@ -39,28 +39,28 @@ endif
39
39
deps = [dependency (' threads' )]
40
40
args = []
41
41
42
- openssl_dep = dependency (' openssl' , version : ' >=3.0.0' , required : get_option (' cpp-httplib_openssl ' ))
42
+ openssl_dep = dependency (' openssl' , version : ' >=3.0.0' , required : get_option (' openssl ' ))
43
43
if openssl_dep.found()
44
44
deps += openssl_dep
45
45
args += ' -DCPPHTTPLIB_OPENSSL_SUPPORT'
46
46
if host_machine .system() == ' darwin'
47
- macosx_keychain_dep = dependency (' appleframeworks' , modules : [' CoreFoundation' , ' Security' ], required : get_option (' cpp-httplib_macosx_keychain ' ))
47
+ macosx_keychain_dep = dependency (' appleframeworks' , modules : [' CoreFoundation' , ' Security' ], required : get_option (' macosx_keychain ' ))
48
48
if macosx_keychain_dep.found()
49
49
deps += macosx_keychain_dep
50
50
args += ' -DCPPHTTPLIB_USE_CERTS_FROM_MACOSX_KEYCHAIN'
51
51
endif
52
52
endif
53
53
endif
54
54
55
- zlib_dep = dependency (' zlib' , required : get_option (' cpp-httplib_zlib ' ))
55
+ zlib_dep = dependency (' zlib' , required : get_option (' zlib ' ))
56
56
if zlib_dep.found()
57
57
deps += zlib_dep
58
58
args += ' -DCPPHTTPLIB_ZLIB_SUPPORT'
59
59
endif
60
60
61
- brotli_deps = [dependency (' libbrotlicommon' , required : get_option (' cpp-httplib_brotli ' ))]
62
- brotli_deps += dependency (' libbrotlidec' , required : get_option (' cpp-httplib_brotli ' ))
63
- brotli_deps += dependency (' libbrotlienc' , required : get_option (' cpp-httplib_brotli ' ))
61
+ brotli_deps = [dependency (' libbrotlicommon' , required : get_option (' brotli ' ))]
62
+ brotli_deps += dependency (' libbrotlidec' , required : get_option (' brotli ' ))
63
+ brotli_deps += dependency (' libbrotlienc' , required : get_option (' brotli ' ))
64
64
65
65
brotli_found_all = true
66
66
foreach brotli_dep : brotli_deps
@@ -74,7 +74,7 @@ if brotli_found_all
74
74
args += ' -DCPPHTTPLIB_BROTLI_SUPPORT'
75
75
endif
76
76
77
- async_ns_opt = get_option (' cpp-httplib_non_blocking_getaddrinfo ' )
77
+ async_ns_opt = get_option (' non_blocking_getaddrinfo ' )
78
78
79
79
if host_machine .system() == ' windows'
80
80
async_ns_dep = cxx.find_library (' ws2_32' , required : async_ns_opt)
91
91
92
92
cpp_httplib_dep = dependency ('' , required : false )
93
93
94
- if get_option (' cpp-httplib_compile ' )
94
+ if get_option (' compile ' )
95
95
python3 = find_program (' python3' )
96
96
97
97
httplib_ch = custom_target (
@@ -135,6 +135,6 @@ endif
135
135
136
136
meson .override_dependency(' cpp-httplib' , cpp_httplib_dep)
137
137
138
- if get_option (' cpp-httplib_test ' )
138
+ if get_option (' test ' )
139
139
subdir (' test' )
140
140
endif
0 commit comments