Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Unified Diff: printing/printing.gyp

Issue 6883221: Linux: clean up the usage of "use_cups" gyp switch: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing.gyp
===================================================================
--- printing/printing.gyp (revision 82994)
+++ printing/printing.gyp (working copy)
@@ -125,6 +125,16 @@
],
}],
['use_cups==1', {
+ 'dependencies': [
+ 'cups',
+ ],
+ 'conditions': [
+ ['OS!="mac"', {
+ 'dependencies': [
+ '../build/linux/system.gyp:libgcrypt',
+ ],
+ }],
+ ],
'defines': [
# PRINT_BACKEND_AVAILABLE disables the default dummy implementation
# of the print backend and enables a custom implementation instead.
@@ -135,22 +145,6 @@
'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',
- ],
- },
- }],
- ],
}],
],
},
@@ -201,6 +195,34 @@
}],
],
},
+ {
+ 'target_name': 'cups',
+ 'type': 'none',
+ 'conditions': [
+ ['use_cups==1', {
+ 'direct_dependent_settings': {
+ 'defines': [
+ 'USE_CUPS',
+ ],
+ 'conditions': [
+ ['OS=="mac"', {
+ 'link_settings': {
+ 'libraries': [
+ '$(SDKROOT)/usr/lib/libcups.dylib',
+ ]
+ },
+ }, {
+ 'link_settings': {
+ 'libraries': [
Mark Mentovai 2011/04/28 15:13:53 I really only wanted to get cups-config out of the
+ '<!@(cups-config --libs)',
+ ],
+ },
+ }],
+ ],
+ },
+ }],
+ ],
+ },
],
}
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698