Commit 65f81ec4 authored by thestig@chromium.org's avatar thestig@chromium.org

Printing: Don't build service code when full printing is not enabled.

Review URL: https://codereview.chromium.org/320673002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275657 0039d316-1c4b-4281-b951-d872f2087c98
parent 0dbea5fe
......@@ -3145,12 +3145,14 @@
['enable_printing==2', {
'sources/': [
['exclude', '^browser/printing/background_printing_manager.*'],
['exclude', '^browser/printing/cloud_print/'],
['exclude', '^browser/printing/print_view_manager.cc'],
['exclude', '^browser/printing/print_error_dialog.*'],
['exclude', '^browser/printing/print_preview.*'],
['exclude', '^browser/printing/print_view_manager.cc'],
['exclude', '^browser/printing/print_view_manager.h'],
['exclude', '^browser/printing/printer_manager_dialog.*'],
['exclude', '^browser/service_process/'],
['exclude', '^browser/task_manager/printing_information.cc'],
],
}],
......
......@@ -392,7 +392,6 @@
['exclude', '^common/nacl_'],
['exclude', '^common/pepper_flash\\.'],
['exclude', '^common/profiling\\.'],
['exclude', '^common/service_process_util_'],
['exclude', '^common/spellcheck_'],
['exclude', '^common/validation_message_'],
['exclude', '^common/web_apps\\.'],
......@@ -410,11 +409,24 @@
'<(DEPTH)/breakpad/src',
],
}],
['enable_printing!=0', {
['enable_printing==0', {
'sources!': [
'common/print_messages.cc',
'common/print_messages.h',
]
}, {
'dependencies': [
'<(DEPTH)/printing/printing.gyp:printing',
],
}],
['enable_printing!=1', {
'sources!' : [
'common/service_messages.h',
],
'sources/': [
['exclude', '^common/service_process_util_'],
],
}],
['enable_service_discovery==1', {
'sources' : [
'common/local_discovery/service_discovery_client.cc',
......@@ -492,12 +504,6 @@
'common/media/webrtc_logging_messages.h',
]
}],
['enable_printing==0', {
'sources!': [
'common/print_messages.cc',
'common/print_messages.h',
]
}],
['configuration_policy==1', {
'dependencies': [
'<(DEPTH)/components/components.gyp:policy',
......
......@@ -2279,6 +2279,7 @@
'sources/': [
['exclude', '^browser/printing/'],
['exclude', '^browser/ui/webui/print_preview/'],
['exclude', '^service/'],
],
}],
['enable_captive_portal_detection!=1', {
......
......@@ -12,7 +12,6 @@
#include "chrome/common/prerender_messages.h"
#include "chrome/common/render_messages.h"
#include "chrome/common/safe_browsing/safebrowsing_messages.h"
#include "chrome/common/service_messages.h"
#include "chrome/common/spellcheck_messages.h"
#include "chrome/common/tts_messages.h"
......@@ -24,6 +23,10 @@
#include "chrome/common/print_messages.h"
#endif
#if defined(ENABLE_FULL_PRINTING)
#include "chrome/common/service_messages.h"
#endif
#if defined(ENABLE_WEBRTC)
#include "chrome/common/media/webrtc_logging_messages.h"
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment