diff options
Diffstat (limited to 'printing/printing.gyp')
-rw-r--r-- | printing/printing.gyp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/printing/printing.gyp b/printing/printing.gyp index ac87ab3..7acb6d7 100644 --- a/printing/printing.gyp +++ b/printing/printing.gyp @@ -112,12 +112,6 @@ ], }], ['use_cups==1', { - 'link_settings': { - 'libraries': [ - '-lcups', - '-lgcrypt', - ], - }, 'defines': [ # PRINT_BACKEND_AVAILABLE disables the default dummy implementation # of the print backend and enables a custom implementation instead. @@ -128,6 +122,22 @@ 'backend/cups_helper.h', 'backend/print_backend_cups.cc', ], + 'conditions': [ + ['OS=="mac"', { + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/usr/lib/libcups.dylib', + ] + }, + }, { + 'link_settings': { + 'libraries': [ + '-lcups', + '-lgcrypt', + ], + }, + }], + ], }], ], }, |