@@ -132,6 +132,27 @@ install_headers(
132132 subdir : ' azure/core/tracing' ,
133133)
134134
135+ if host_machine .system() == ' windows'
136+ cc = meson .get_compiler(' cpp' )
137+ wil_dep = cc.find_library (' wil' )
138+ azure_core_url_headers = [
139+ ' inc/azure/core/http/win_http_transport.hpp' ,
140+ ]
141+
142+ azure_core_url_sources = [
143+ ' src/http/winhttp/win_http_transport.cpp' ,
144+ ' src/http/winhttp/win_http_request.hpp' ,
145+ ]
146+
147+ install_headers (
148+ azure_core_url_headers,
149+ subdir : ' azure/core/http' ,
150+ )
151+ else
152+ azure_core_url_headers = []
153+ azure_core_url_sources = []
154+ endif
155+
135156azure_core_headers_all = (azure_core_headers
136157+ azure_core_http_headers
137158+ azure_core_internal_headers
@@ -144,6 +165,7 @@ azure_core_headers_all = (azure_core_headers
144165+ azure_core_internal_tracing_headers
145166+ azure_core_io_headers
146167+ azure_core_tracing_headers
168+ + azure_core_url_headers
147169)
148170
149171azure_core_sources = [
@@ -188,7 +210,7 @@ endif
188210
189211azure_core_lib = library (
190212 ' azure-core' ,
191- sources : azure_core_headers_all + azure_core_sources,
213+ sources : azure_core_headers_all + azure_core_sources + azure_core_url_sources ,
192214 include_directories : incdir,
193215 dependencies : azure_crypto_dep,
194216 cpp_args : [' -DAZ_CORE_BEING_BUILT' ] + azure_core_args,
0 commit comments