mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
5c1905f549
Nix: combine xdph and the picker into one package
21 lines
415 B
Meson
21 lines
415 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',
|
|
])
|
|
|
|
executable('hyprland-share-picker',
|
|
sources,
|
|
ui_files,
|
|
moc,
|
|
dependencies: qtdep,
|
|
install: true
|
|
)
|