mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-24 20:22:10 +00:00
ed32d70916
I think it looks really slick. Probably still many bugs
38 lines
878 B
Meson
38 lines
878 B
Meson
project('gBar',
|
|
['cpp'],
|
|
version: '0.0.1',
|
|
license: 'MIT',
|
|
meson_version: '>=0.45.1',
|
|
default_options: ['c_std=c++17', 'warning_level=3'])
|
|
|
|
gtk = dependency('gtk+-3.0')
|
|
gtk_layer_shell = dependency('gtk-layer-shell-0')
|
|
|
|
if get_option('HasHyprland')
|
|
add_global_arguments('-DHAS_HYPRLAND', language: 'cpp')
|
|
endif
|
|
if get_option('HasNvidia')
|
|
add_global_arguments('-DHAS_NVIDIA', language: 'cpp')
|
|
endif
|
|
if get_option('HasBlueZ')
|
|
add_global_arguments('-DHAS_BLUEZ', language: 'cpp')
|
|
endif
|
|
if get_option('HasSys')
|
|
add_global_arguments('-DHAS_SYS', language: 'cpp')
|
|
endif
|
|
|
|
pulse = dependency('libpulse')
|
|
|
|
executable(
|
|
'gBar',
|
|
['src/gBar.cpp',
|
|
'src/Window.cpp',
|
|
'src/Widget.cpp',
|
|
'src/System.cpp',
|
|
'src/Bar.cpp',
|
|
'src/AudioFlyin.cpp',
|
|
'src/BluetoothDevices.cpp',
|
|
],
|
|
dependencies: [gtk, gtk_layer_shell, pulse],
|
|
install: true
|
|
)
|