meson.build: Link with crypt32 on Windows for httplib

This commit is contained in:
Matt Borgerson 2024-12-29 14:27:30 -07:00 committed by mborgerson
parent 2c722c8661
commit 8749cb70ca
2 changed files with 2 additions and 1 deletions

View File

@ -414,6 +414,7 @@ if targetos == 'windows'
pathcch = cc.find_library('pathcch')
socket = cc.find_library('ws2_32')
winmm = cc.find_library('winmm')
crypt32 = cc.find_library('crypt32')
win = import('windows')
version_res = win.compile_resources('version.rc',

View File

@ -61,7 +61,7 @@ libfpng = static_library('fpng', sources: 'fpng/fpng.cpp', cpp_args: libfpng_cpp
fpng = declare_dependency(include_directories: 'fpng', link_with: libfpng)
json = declare_dependency(include_directories: 'json')
httplib = declare_dependency(include_directories: 'httplib')
httplib = declare_dependency(include_directories: 'httplib', dependencies: targetos == 'windows' ? [crypt32] : [])
libfatx = static_library('fatx', sources: 'fatx/fatx.c')
fatx = declare_dependency(include_directories: 'fatx', link_with: libfatx)