forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dbus: Make it possible to build as shared_library.
BUG=158887 R=satorux@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11364033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165893 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
tfarina@chromium.org
committed
Nov 5, 2012
1 parent
aaf2a32
commit e302446
Showing
11 changed files
with
83 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
#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_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters