summaryrefslogtreecommitdiffstats
path: root/cc/cc_export.h
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-02 21:06:20 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-02 21:06:20 +0000
commit52347c8482d3fad8534a69140fc67d6c8759562c (patch)
tree223f9e99f28a9934ad3f5d599926d005d25f3441 /cc/cc_export.h
parent220d60c8d3a980b0fb05414aea478a4d2688d00c (diff)
downloadchromium_src-52347c8482d3fad8534a69140fc67d6c8759562c.zip
chromium_src-52347c8482d3fad8534a69140fc67d6c8759562c.tar.gz
chromium_src-52347c8482d3fad8534a69140fc67d6c8759562c.tar.bz2
Make cc a component
BUG=154052 Review URL: https://codereview.chromium.org/11365025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165748 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/cc_export.h')
-rw-r--r--cc/cc_export.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/cc/cc_export.h b/cc/cc_export.h
new file mode 100644
index 0000000..87e3c9b
--- /dev/null
+++ b/cc/cc_export.h
@@ -0,0 +1,29 @@
+// 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.
+
+#ifndef CC_CC_EXPORT_H_
+#define CC_CC_EXPORT_H_
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(CC_IMPLEMENTATION)
+#define CC_EXPORT __declspec(dllexport)
+#else
+#define CC_EXPORT __declspec(dllimport)
+#endif // defined(CC_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#if defined(CC_IMPLEMENTATION)
+#define CC_EXPORT __attribute__((visibility("default")))
+#else
+#define CC_EXPORT
+#endif
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define CC_EXPORT
+#endif
+
+#endif // CC_CC_EXPORT_H_