summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_message.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_message.h')
-rw-r--r--ipc/ipc_message.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ipc/ipc_message.h b/ipc/ipc_message.h
index b978cf2..b630432 100644
--- a/ipc/ipc_message.h
+++ b/ipc/ipc_message.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -12,7 +12,10 @@
#include "base/pickle.h"
#include "ipc/ipc_export.h"
-#ifndef NDEBUG
+// Ipc logging adds a dependency from the 'chrome' target on all ipc message
+// classes. In a component build, this would require exporting all message
+// classes, so don't support ipc logging in the components build.
+#if !defined(NDEBUG) && !defined(COMPONENT_BUILD)
#define IPC_MESSAGE_LOG_ENABLED
#endif