static mingw builds

This commit is contained in:
2024-11-04 13:01:09 -06:00
parent b98d423f79
commit 0e8d5a9551

View File

@@ -31,11 +31,13 @@ if host_machine.system() == 'linux'
deps += [dependency('x11'), dependency('xi'), dependency('xcursor'), dependency('egl'), dependency('gl')]
endif
link = []
if host_machine.system() == 'windows'
deps += cc.find_library('d3d11')
link += '-static'
endif
link = []
if host_machine.system() == 'emscripten'
link += '-sUSE_WEBGPU'
add_global_arguments('-Dlinux', language:'c') # Required because enet does not check for emscripten
@@ -47,6 +49,8 @@ deps += dependency('qjs-nota',static:true)
deps += dependency('qjs-miniz',static:true)
deps += dependency('qjs-soloud',static:true)
deps += dependency('threads')
if get_option('chipmunk')
deps += dependency('qjs-chipmunk',static:true)
endif