mirror of https://code.videolan.org/videolan/vlc
meson: add support of Qt GTK theme module
This commit is contained in:
parent
55bfaba3af
commit
6ea91fa51e
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue