Chromium Code Reviews| 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_ |