diff options
author | kenneth.r.christiansen@intel.com <kenneth.r.christiansen@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-19 14:56:57 +0000 |
---|---|---|
committer | kenneth.r.christiansen@intel.com <kenneth.r.christiansen@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-19 14:56:57 +0000 |
commit | 85f06a742934312ec3edd0e146e9963eb3b43e3e (patch) | |
tree | 776e3c696ee1480051151e2b3050ba8879b95448 /printing/printing.gyp | |
parent | 23a90f4e452cd1ba5abdd061ae845d5e2726ec19 (diff) | |
download | chromium_src-85f06a742934312ec3edd0e146e9963eb3b43e3e.zip chromium_src-85f06a742934312ec3edd0e146e9963eb3b43e3e.tar.gz chromium_src-85f06a742934312ec3edd0e146e9963eb3b43e3e.tar.bz2 |
Disable deprecation warnings for CUPS as the compile fails when using CUPS 1.6
This only affects the printing module.
Current Ubuntu versions ships with CUPS 1.6 which complains about
use of deprecated CUPS methods. As we need to continue supporting
platforms using older CUPS versions such as Linux and Mac OS, we
ignore the warning as an error for now.
BUG=226176
Review URL: https://chromiumcodereview.appspot.com/14262006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195195 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing.gyp')
-rw-r--r-- | printing/printing.gyp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/printing/printing.gyp b/printing/printing.gyp index 8490a03..be4d8835 100644 --- a/printing/printing.gyp +++ b/printing/printing.gyp @@ -162,12 +162,23 @@ 'dependencies': [ 'cups', ], + 'variables': { + 'cups_version': '<!(cups-config --api-version)', + }, 'conditions': [ ['OS!="mac"', { 'dependencies': [ '../build/linux/system.gyp:libgcrypt', ], }], + ['cups_version=="1.6"', { + 'cflags': [ + # CUPS 1.6 deprecated the PPD APIs, but we will stay with this + # API for now as supported Linux and Mac OS'es are still using + # older versions of CUPS. More info: crbug.com/226176 + '-Wno-deprecated-declarations', + ], + }], ], 'defines': [ # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |