remove curl dep

This commit is contained in:
2025-12-06 14:54:00 -06:00
parent 7c0f4dcd5f
commit abf1332bf5
9 changed files with 350 additions and 146 deletions

View File

@@ -41,6 +41,8 @@ deps = []
if host_machine.system() == 'darwin'
add_project_arguments('-x', 'objective-c', language: 'c')
fworks = [
'CoreFoundation',
'CFNetwork',
]
foreach fkit : fworks
deps += dependency('appleframeworks', modules: fkit)
@@ -57,27 +59,12 @@ if host_machine.system() == 'linux'
endif
if host_machine.system() == 'windows'
deps += cc.find_library('d3d11')
deps += cc.find_library('ws2_32', required:true)
deps += cc.find_library('dbghelp')
deps += cc.find_library('winmm')
deps += cc.find_library('setupapi')
deps += cc.find_library('imm32')
deps += cc.find_library('version')
deps += cc.find_library('cfgmgr32')
deps += cc.find_library('bcrypt')
deps += cc.find_library('winhttp')
link += ['-static', '-static-libgcc', '-static-libstdc++']
add_project_link_arguments('-static-libgcc', '-static-libstdc++', language: ['c', 'cpp'])
endif
# Try to find system-installed curl first
curl_dep = dependency('libcurl', static: true, required: false)
if not curl_dep.found()
message('⚙ System curl not found, building subproject...')
deps += dependency('libcurl', static:true)
else
deps += curl_dep
endif
if host_machine.system() != 'emscripten'
# Try to find system-installed enet first
@@ -117,7 +104,7 @@ if host_machine.system() != 'emscripten'
endif
endif
link += '-rdynamic'
#link += '-rdynamic'
link_args = link
sources = []