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',
'gtkprintbackendcloudprint.c',
'gtkprintercloudprint.c',
'gtkcloudprintaccount.c',
c_args : ['-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED'],
dependencies : [libgtk_dep, rest_dep, json_glib_dep],
install_dir : printbackends_install_dir)
'gtkprintbackendcloudprint.c',
'gtkprintercloudprint.c',
'gtkcloudprintaccount.c',
c_args: [
'-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED',
'-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
shared_module('printbackend-cups',
'gtkprintbackendcups.c',
'gtkprintercups.c',
'gtkcupsutils.c',
'gtkcupssecretsutils.c',
c_args : ['-DGTK_COMPILATION', '-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED'],
dependencies : [libgtk_dep, libcups, colord_dep],
install_dir : printbackends_install_dir)
'gtkprintbackendcups.c',
'gtkprintercups.c',
'gtkcupsutils.c',
'gtkcupssecretsutils.c',
c_args: [
'-DGTK_COMPILATION',
'-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',
'gtkprintbackendfile.c',
c_args : ['-DGTK_COMPILATION', '-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED'],
dependencies : libgtk_dep,
install_dir : printbackends_install_dir)
'gtkprintbackendfile.c',
c_args: [
'-DGTK_COMPILATION',
'-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',
'gtkprintbackendlpr.c',
c_args : ['-DGTK_COMPILATION', '-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED'],
dependencies : libgtk_dep,
install_dir : printbackends_install_dir)
'gtkprintbackendlpr.c',
c_args: [
'-DGTK_COMPILATION',
'-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',
'gtkprinterpapi.c',
'gtkprintbackendpapi.c',
c_args : ['-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED'],
dependencies : [libgtk_dep, libpapi],
install_dir : printbackends_install_dir)
'gtkprinterpapi.c',
'gtkprintbackendpapi.c',
c_args: [
'-DGTK_DISABLE_DEPRECATION_WARNINGS',
'-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)