meson: add support of Qt GTK theme module

This commit is contained in:
Pierre Lamot 2023-01-09 15:45:28 +01:00 committed by Steve Lhomme
parent 55bfaba3af
commit 6ea91fa51e
2 changed files with 30 additions and 0 deletions

View File

@ -88,6 +88,11 @@ option('qt',
value : 'auto',
description : 'Enable/disable Qt support')
option('qt_gtk',
type : 'feature',
value : 'auto',
description : 'Enable/disable Qt GTK support')
option('qt_qml_debug',
type: 'boolean',
value: false,

View File

@ -574,4 +574,29 @@ if qt5_dep.found()
'c_args' : qt_extra_flags,
'cpp_args' : qt_extra_flags
}
#Qt GTK theme module
gtk_dep = dependency(
'gtk+-3.0',
version: '>=3.20',
required: get_option('qt_gtk')
)
if gtk_dep.found()
vlc_modules += {
'name' : 'qt_gtktheme',
'sources' : files(
'style/gtkthemeprovider/gtk_compat.cpp',
'style/gtkthemeprovider/gtk_compat.h',
'style/gtkthemeprovider/gtkthemeprovider.cpp',
'style/gtkthemeprovider/gtk_util.cpp',
'style/gtkthemeprovider/gtk_util.h',
'style/gtkthemeprovider/nav_button_provider_gtk.cpp',
'style/gtkthemeprovider/nav_button_provider_gtk.h',
'style/gtkthemeprovider/scoped_gobject.h'
),
'dependencies' : [gtk_dep]
}
endif
endif