mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Various fixes for mingw
This commit is contained in:
@@ -24,9 +24,11 @@ common_sources = [
|
||||
'util.c'
|
||||
]
|
||||
|
||||
common_sysinfo_deps = []
|
||||
|
||||
common_deps = [
|
||||
libgio_dep,
|
||||
]
|
||||
] + global_deps
|
||||
|
||||
common_includes = [
|
||||
config_h_include,
|
||||
@@ -41,7 +43,10 @@ if host_machine.system() == 'windows'
|
||||
common_deps += [
|
||||
cc.find_library('ws2_32'), # winsock
|
||||
cc.find_library('winmm'), # playsound
|
||||
]
|
||||
common_sysinfo_deps += [
|
||||
cc.find_library('wbemuuid'), # sysinfo
|
||||
cc.find_library('wbemcore'),
|
||||
]
|
||||
|
||||
common_sources += 'sysinfo/win32/backend.c'
|
||||
@@ -98,7 +103,7 @@ endif
|
||||
hexchat_common = static_library('hexchatcommon',
|
||||
sources: [textevents] + marshal + common_sources,
|
||||
include_directories: config_h_include,
|
||||
dependencies: common_deps,
|
||||
dependencies: common_deps + common_sysinfo_deps,
|
||||
c_args: common_cflags,
|
||||
pic: true
|
||||
)
|
||||
@@ -113,4 +118,5 @@ hexchat_common_dep = declare_dependency(
|
||||
hexchat_plugin_dep = declare_dependency(
|
||||
include_directories: common_includes,
|
||||
compile_args: common_cflags,
|
||||
dependencies: global_deps,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user