meson: gtk: set GTK_PRINT_BACKENDS define properly

This commit is contained in:
Tim-Philipp Müller
2017-03-22 18:15:17 +00:00
committed by Emmanuele Bassi
parent 30c0be4a61
commit a2cef835df
3 changed files with 4 additions and 1 deletions

View File

@@ -315,3 +315,5 @@
#mesondefine GTK_DATADIR
#mesondefine GTK_LIBDIR
#mesondefine GTK_PRINT_BACKENDS

View File

@@ -768,7 +768,6 @@ gtk_cargs = [
'-DGTK_SYSCONFDIR="' + get_option('prefix') + '/etc"',
'-DGTK_DATADIR="' + get_option('datadir') + '"',
'-DGTK_DATA_PREFIX="'+ get_option('prefix') + '"',
'-DGTK_PRINT_BACKENDS="null"', # FIXME
]
gtk_sources += [

View File

@@ -111,6 +111,8 @@ printbackends_install_dir = join_paths(get_option('libdir'), printbackends_subdi
message('Print backends: ' + ' '.join(print_backends))
cdata.set_quoted('GTK_PRINT_BACKENDS', ','.join(print_backends))
foreach print_backend : print_backends
subdir(print_backend)
endforeach