diff options
-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 |