diff options
author | Biswapriyo Nath <nathbappai@gmail.com> | 2022-07-26 01:08:21 +0530 |
---|---|---|
committer | Biswapriyo Nath <nathbappai@gmail.com> | 2022-07-26 01:08:21 +0530 |
commit | a27b8782702d52dee33eaa013b86a28eb9af3dae (patch) | |
tree | 503bdb7d2884c9f111638e634b89f820c337db9d | |
parent | 99019ed62db7d63dd1c78a775b920b05386365e0 (diff) |
meson: Add ws2_32 library for Windows plarform
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
-rw-r--r-- | meson.build | 7 |
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', |