didnt realize i could just do that
This commit is contained in:
parent
733d422aea
commit
ece34c270c
29
meson.build
29
meson.build
|
@ -88,17 +88,25 @@ deps = [
|
||||||
if host_machine.system() == 'darwin'
|
if host_machine.system() == 'darwin'
|
||||||
deps += dependency(
|
deps += dependency(
|
||||||
'appleframeworks',
|
'appleframeworks',
|
||||||
modules : ['foundation', 'mediaplayer', 'systemconfiguration'],
|
modules: ['foundation', 'mediaplayer', 'systemconfiguration'],
|
||||||
static: true,
|
static: true,
|
||||||
)
|
)
|
||||||
|
elif host_machine.system() == 'windows'
|
||||||
|
deps += [
|
||||||
|
cpp.find_library('dwmapi'),
|
||||||
|
cpp.find_library('windowsapp'),
|
||||||
|
]
|
||||||
elif host_machine.system() == 'linux' or host_machine.system() == 'freebsd'
|
elif host_machine.system() == 'linux' or host_machine.system() == 'freebsd'
|
||||||
deps += dependency('SQLiteCpp')
|
deps += [
|
||||||
deps += dependency('x11')
|
dependency('SQLiteCpp'),
|
||||||
deps += dependency('xcb')
|
dependency('sdbus-c++'),
|
||||||
deps += dependency('xau')
|
dependency('x11'),
|
||||||
deps += dependency('xdmcp')
|
dependency('xcb'),
|
||||||
deps += dependency('wayland-client')
|
dependency('xau'),
|
||||||
deps += dependency('dbus-1')
|
dependency('xdmcp'),
|
||||||
|
dependency('wayland-client'),
|
||||||
|
dependency('dbus-1'),
|
||||||
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
cmake = import('cmake')
|
cmake = import('cmake')
|
||||||
|
@ -131,9 +139,6 @@ if host_machine.system() == 'darwin'
|
||||||
objc_args += ['-fobjc-arc']
|
objc_args += ['-fobjc-arc']
|
||||||
elif host_machine.system() == 'linux'
|
elif host_machine.system() == 'linux'
|
||||||
link_args += ['-static-libgcc', '-static-libstdc++']
|
link_args += ['-static-libgcc', '-static-libstdc++']
|
||||||
elif host_machine.system() == 'windows'
|
|
||||||
windows_sdk_lib_dir = 'C:/Program Files (x86)/Windows Kits/10/Lib/10.0.22621.0/um/x64'
|
|
||||||
link_args += ['-L' + windows_sdk_lib_dir, '-lwindowsapp', '-ldwmapi', '-static']
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
|
@ -142,4 +147,4 @@ executable(
|
||||||
objc_args: objc_args,
|
objc_args: objc_args,
|
||||||
link_args: link_args,
|
link_args: link_args,
|
||||||
dependencies: deps,
|
dependencies: deps,
|
||||||
)
|
)
|
Loading…
Reference in a new issue