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

Unified Diff: dbus/dbus_export.h

Issue 11364033: dbus: Make it possible to build as shared_library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make dbus_unittests link Created 8 years, 1 month 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
« dbus/dbus.gyp ('K') | « dbus/dbus.gyp ('k') | dbus/file_descriptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/dbus_export.h
diff --git a/dbus/dbus_export.h b/dbus/dbus_export.h
new file mode 100644
index 0000000000000000000000000000000000000000..070c07b4ee5068dd6ff1cff23d96108ddeaee60d
--- /dev/null
+++ b/dbus/dbus_export.h
@@ -0,0 +1,36 @@
+// Copyright 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.
+
+#ifndef DBUS_BUS_EXPORT_H_
+#define DBUS_BUS_EXPORT_H_
+
+// Defines BUS_EXPORT so that functionality implemented by the DBUS
+// module can be exported to consumers.
satorux1 2012/11/02 01:02:49 Please also comment that we cannot use DBUS_EXPORT
tfarina 2012/11/02 01:20:38 Done.
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(DBUS_IMPLEMENTATION)
+#define BUS_EXPORT __declspec(dllexport)
satorux1 2012/11/02 01:02:49 BUS_EXPORT sounds awkward. What about CHROME_DBUS_
tfarina 2012/11/02 01:20:38 Done.
+#else
+#define BUS_EXPORT __declspec(dllimport)
+#endif // defined(DBUS_IMPLEMENTATION)
+
+#else // !defined(WIN32)
+
+#if defined(DBUS_IMPLEMENTATION)
+#define BUS_EXPORT __attribute__((visibility("default")))
+#else
+#define BUS_EXPORT
+#endif
+
+#endif // defined(WIN32)
+
+#else // !defined(COMPONENT_BUILD)
+
+#define BUS_EXPORT
+
+#endif // defined(COMPONENT_BUILD)
+
+#endif // DBUS_BUS_EXPORT_H_
« dbus/dbus.gyp ('K') | « dbus/dbus.gyp ('k') | dbus/file_descriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698