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..0eda41a26fb61e58ea4007088ef589be7c2ef2ae |
| --- /dev/null |
| +++ b/dbus/dbus_export.h |
| @@ -0,0 +1,38 @@ |
| +// 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_DBUS_EXPORT_H_ |
| +#define DBUS_DBUS_EXPORT_H_ |
| + |
| +// Defines CHROME_DBUS_EXPORT so that functionality implemented by the dbus |
| +// library can be exported to consumers. |
| +// NOTE: We haven't used DBUS_EXPORT because it would conflict with the version |
| +// from /usr/include/dbus-1.0/dbus/dbus-macros.h. |
| + |
| +#if defined(COMPONENT_BUILD) |
| +#if defined(WIN32) |
| + |
| +#if defined(DBUS_IMPLEMENTATION) |
|
satorux1
2012/11/02 01:21:56
Why do we need to check this? What happens if we d
tfarina
2012/11/02 01:31:05
within src/dbus/ library we do DBUS_IMPLEMENTATION
satorux1
2012/11/02 01:43:58
Thanks. I found the same thing in sql/sql.gyp,
|
| +#define CHROME_DBUS_EXPORT __declspec(dllexport) |
| +#else |
| +#define CHROME_DBUS_EXPORT __declspec(dllimport) |
| +#endif // defined(DBUS_IMPLEMENTATION) |
| + |
| +#else // !defined(WIN32) |
| + |
| +#if defined(DBUS_IMPLEMENTATION) |
| +#define CHROME_DBUS_EXPORT __attribute__((visibility("default"))) |
| +#else |
| +#define CHROME_DBUS_EXPORT |
| +#endif |
| + |
| +#endif // defined(WIN32) |
| + |
| +#else // !defined(COMPONENT_BUILD) |
| + |
| +#define CHROME_DBUS_EXPORT |
| + |
| +#endif // defined(COMPONENT_BUILD) |
| + |
| +#endif // DBUS_DBUS_EXPORT_H_ |