xdg-desktop-portal-hyprland/hyprland-share-picker/meson.build
Vaxry eb3f3d9854
core: Move to hyprwayland-scanner (#260)
* move to hw-s
* hyprland-share-picker: add missing sources to meson, format CMake
* CMake: bump hw-s version
* CMake: fix protocolnew external protos
* CMake: get wayland.xml from wayland-scanner
* Nix: add missing deps
* Meson: use hw-s for protocols, add hyprutils

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-09-20 18:01:12 +01:00

23 lines
457 B
Meson

# select either qt6 or qt5
qtdep = dependency('qt6', 'qt5', modules: ['Widgets'])
qtver = qtdep.version()
qt = import('qt' + qtver[0])
ui_files = qt.compile_ui(sources: 'mainpicker.ui')
moc = qt.compile_moc(headers: 'mainpicker.h')
sources = files([
'main.cpp',
'mainpicker.cpp',
'mainpicker.h',
'elidedbutton.h',
'elidedbutton.cpp',
])
executable('hyprland-share-picker',
sources,
ui_files,
moc,
dependencies: qtdep,
install: true
)