build: Clean up print backends Meson rules

This commit is contained in:
Emmanuele Bassi 2017-04-26 17:02:26 +01:00
parent 6dd35248d5
commit 1afd415583
6 changed files with 53 additions and 26 deletions

View File

@ -1,7 +1,10 @@
shared_module('printbackend-cloudprint', shared_module('printbackend-cloudprint',
'gtkprintbackendcloudprint.c', 'gtkprintbackendcloudprint.c',
'gtkprintercloudprint.c', 'gtkprintercloudprint.c',
'gtkcloudprintaccount.c', 'gtkcloudprintaccount.c',
c_args : ['-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED'], c_args: [
dependencies : [libgtk_dep, rest_dep, json_glib_dep], '-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED',
install_dir : printbackends_install_dir) '-DGTK_DISABLE_DEPRECATION_WARNINGS',
],
dependencies: [ libgtk_dep, rest_dep, json_glib_dep ],
install_dir: printbackends_install_dir)

View File

@ -8,10 +8,14 @@ else
endif endif
shared_module('printbackend-cups', shared_module('printbackend-cups',
'gtkprintbackendcups.c', 'gtkprintbackendcups.c',
'gtkprintercups.c', 'gtkprintercups.c',
'gtkcupsutils.c', 'gtkcupsutils.c',
'gtkcupssecretsutils.c', 'gtkcupssecretsutils.c',
c_args : ['-DGTK_COMPILATION', '-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED'], c_args: [
dependencies : [libgtk_dep, libcups, colord_dep], '-DGTK_COMPILATION',
install_dir : printbackends_install_dir) '-DGTK_DISABLE_DEPRECATION_WARNINGS',
'-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED',
],
dependencies: [libgtk_dep, libcups, colord_dep],
install_dir: printbackends_install_dir)

View File

@ -1,5 +1,9 @@
shared_module('printbackend-file', shared_module('printbackend-file',
'gtkprintbackendfile.c', 'gtkprintbackendfile.c',
c_args : ['-DGTK_COMPILATION', '-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED'], c_args: [
dependencies : libgtk_dep, '-DGTK_COMPILATION',
install_dir : printbackends_install_dir) '-DGTK_DISABLE_DEPRECATION_WARNINGS',
'-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED',
],
dependencies: libgtk_dep,
install_dir: printbackends_install_dir)

View File

@ -1,5 +1,9 @@
shared_module('printbackend-lpr', shared_module('printbackend-lpr',
'gtkprintbackendlpr.c', 'gtkprintbackendlpr.c',
c_args : ['-DGTK_COMPILATION', '-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED'], c_args: [
dependencies : libgtk_dep, '-DGTK_COMPILATION',
install_dir : printbackends_install_dir) '-DGTK_DISABLE_DEPRECATION_WARNINGS',
'-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED',
],
dependencies: libgtk_dep,
install_dir: printbackends_install_dir)

View File

@ -1,6 +1,9 @@
shared_module('printbackend-papi', shared_module('printbackend-papi',
'gtkprinterpapi.c', 'gtkprinterpapi.c',
'gtkprintbackendpapi.c', 'gtkprintbackendpapi.c',
c_args : ['-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED'], c_args: [
dependencies : [libgtk_dep, libpapi], '-DGTK_DISABLE_DEPRECATION_WARNINGS',
install_dir : printbackends_install_dir) '-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED',
],
dependencies: [libgtk_dep, libpapi],
install_dir: printbackends_install_dir)

View File

@ -0,0 +1,9 @@
shared_module('printbackend-test',
'gtkprintbackendtest.c',
c_args: [
'-DGTK_COMPILATION',
'-DGTK_DISABLE_DEPRECATION_WARNINGS',
'-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED',
],
dependencies: libgtk_dep,
install_dir: printbackends_install_dir)