summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBiswapriyo Nath <nathbappai@gmail.com>2022-07-26 01:08:21 +0530
committerBiswapriyo Nath <nathbappai@gmail.com>2022-07-26 01:08:21 +0530
commita27b8782702d52dee33eaa013b86a28eb9af3dae (patch)
tree503bdb7d2884c9f111638e634b89f820c337db9d
parent99019ed62db7d63dd1c78a775b920b05386365e0 (diff)
meson: Add ws2_32 library for Windows plarform
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
-rw-r--r--meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 8209a7f..d538001 100644
--- a/meson.build
+++ b/meson.build
@@ -73,7 +73,12 @@ libcacard_dep = declare_dependency(
dependencies: [glib_dep, nss_dep, pcsc_dep],
)
-executable('vscclient', 'src/vscclient.c', dependencies: [libcacard_dep])
+ws2_32_dep = dependency('', required: false)
+if host_machine.system() == 'windows'
+ ws2_32_dep = cc.find_library('ws2_32', required : true)
+endif
+
+executable('vscclient', 'src/vscclient.c', dependencies: [libcacard_dep, ws2_32_dep])
configure_file(
output: 'config.h',