summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-04-26 17:02:26 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-05-03 15:10:57 +0100
commit1afd41558340053b7649aa01a1eb1fc5937a79b2 (patch)
tree88cf8044444b55acaf7357809b28641955a8109a /modules
parent6dd35248d52078a95fa8525c3cbbd597b49090a2 (diff)
downloadgtk+-1afd41558340053b7649aa01a1eb1fc5937a79b2.tar.gz
build: Clean up print backends Meson rules
Diffstat (limited to 'modules')
-rw-r--r--modules/printbackends/cloudprint/meson.build15
-rw-r--r--modules/printbackends/cups/meson.build18
-rw-r--r--modules/printbackends/file/meson.build12
-rw-r--r--modules/printbackends/lpr/meson.build12
-rw-r--r--modules/printbackends/papi/meson.build13
-rw-r--r--modules/printbackends/test/meson.build9
6 files changed, 53 insertions, 26 deletions
diff --git a/modules/printbackends/cloudprint/meson.build b/modules/printbackends/cloudprint/meson.build
index 0a575f0407..c6193f4c03 100644
--- a/modules/printbackends/cloudprint/meson.build
+++ b/modules/printbackends/cloudprint/meson.build
@@ -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)
diff --git a/modules/printbackends/cups/meson.build b/modules/printbackends/cups/meson.build
index 08c115424d..e69788d9f3 100644
--- a/modules/printbackends/cups/meson.build
+++ b/modules/printbackends/cups/meson.build
@@ -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)
diff --git a/modules/printbackends/file/meson.build b/modules/printbackends/file/meson.build
index df29254042..52ab3a3422 100644
--- a/modules/printbackends/file/meson.build
+++ b/modules/printbackends/file/meson.build
@@ -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)
diff --git a/modules/printbackends/lpr/meson.build b/modules/printbackends/lpr/meson.build
index 3401997073..95a982df8d 100644
--- a/modules/printbackends/lpr/meson.build
+++ b/modules/printbackends/lpr/meson.build
@@ -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)
diff --git a/modules/printbackends/papi/meson.build b/modules/printbackends/papi/meson.build
index d64dc66fdb..feef64068c 100644
--- a/modules/printbackends/papi/meson.build
+++ b/modules/printbackends/papi/meson.build
@@ -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)
diff --git a/modules/printbackends/test/meson.build b/modules/printbackends/test/meson.build
new file mode 100644
index 0000000000..a8df4fe342
--- /dev/null
+++ b/modules/printbackends/test/meson.build
@@ -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)