mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-14 07:02:30 +02:00
fix: fmt
This commit is contained in:
18
meson.build
18
meson.build
@ -4,7 +4,8 @@ project(
|
||||
license: 'MIT',
|
||||
default_options : [
|
||||
'cpp_std=c++17',
|
||||
'buildtype=release'
|
||||
'buildtype=release',
|
||||
'default_library=static'
|
||||
],
|
||||
)
|
||||
|
||||
@ -17,16 +18,21 @@ if false # libc++
|
||||
|
||||
cpp_link_args += ['-lc++fs']
|
||||
else
|
||||
# TODO: For std::filesystem in libstdc++. Still unstable? Or why is it not in libstdc++ proper yet?
|
||||
cpp_link_args += ['-lstdc++fs']
|
||||
endif
|
||||
|
||||
compiler = meson.get_compiler('cpp')
|
||||
|
||||
if not compiler.has_header('filesystem')
|
||||
add_project_arguments('-DFILESYSTEM_EXPERIMENTAL', language: 'cpp')
|
||||
endif
|
||||
|
||||
add_global_arguments(cpp_args, language : 'cpp')
|
||||
add_global_link_arguments(cpp_link_args, language : 'cpp')
|
||||
|
||||
thread_dep = dependency('threads')
|
||||
libinput = dependency('libinput')
|
||||
fmt = dependency('fmt', fallback: ['fmtlib', 'fmt_dep'])
|
||||
fmt = dependency('fmt', version : ['>=5.2.1'], fallback : ['fmt', 'fmt_dep'])
|
||||
wayland_client = dependency('wayland-client')
|
||||
wayland_cursor = dependency('wayland-cursor')
|
||||
wayland_protos = dependency('wayland-protocols')
|
||||
@ -83,12 +89,6 @@ if dbusmenu_gtk.found()
|
||||
)
|
||||
endif
|
||||
|
||||
compiler = meson.get_compiler('cpp')
|
||||
|
||||
if not compiler.has_header('filesystem')
|
||||
add_project_arguments('-DFILESYSTEM_EXPERIMENTAL', language: 'cpp')
|
||||
endif
|
||||
|
||||
subdir('protocol')
|
||||
|
||||
executable(
|
||||
|
Reference in New Issue
Block a user