diff options
author | spang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-07 09:02:36 +0000 |
---|---|---|
committer | spang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-07 09:02:36 +0000 |
commit | f757c1ae7b770f3d7ba95e791f6e69e6f6eb98e1 (patch) | |
tree | b1ca75753695d444f2bf05e15d6492854f1b2314 /cloud_print | |
parent | 070bb456483ca81ab4149729714530d0217047d0 (diff) | |
download | chromium_src-f757c1ae7b770f3d7ba95e791f6e69e6f6eb98e1.zip chromium_src-f757c1ae7b770f3d7ba95e791f6e69e6f6eb98e1.tar.gz chromium_src-f757c1ae7b770f3d7ba95e791f6e69e6f6eb98e1.tar.bz2 |
Allow printing component to be removed completely
Using enable_printing=0 removes all of the source files of the printing
component, but has no effect on its dependencies. It is wrong to empty out the
target inside the target. If printing is disabled, then the dependency on
printing.gyp is not needed and can be removed.
This target was causing libgcrypt to be linked even when printing was disabled.
That problem goes away with this change.
Review URL: https://codereview.chromium.org/62793002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233563 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print')
-rw-r--r-- | cloud_print/service/service.gyp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cloud_print/service/service.gyp b/cloud_print/service/service.gyp index 1bdc552..2e07037 100644 --- a/cloud_print/service/service.gyp +++ b/cloud_print/service/service.gyp @@ -57,7 +57,6 @@ '<(DEPTH)/google_apis/google_apis.gyp:google_apis', '<(DEPTH)/ipc/ipc.gyp:ipc', '<(DEPTH)/net/net.gyp:net', - '<(DEPTH)/printing/printing.gyp:printing', '<(DEPTH)/url/url.gyp:url_lib', 'service_resources', ], @@ -69,6 +68,11 @@ '<(DEPTH)/chrome/common_constants.gyp:common_constants', ], }], + ['enable_printing!=0', { + 'dependencies': [ + '<(DEPTH)/printing/printing.gyp:printing', + ], + }], ], 'sources': [ '<(DEPTH)/content/public/common/content_switches.h', |