summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppapi_proxy_export.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-26 22:43:20 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-26 22:43:20 +0000
commitf0a04c42aaf23a3f3c36a231905052ae9f86790f (patch)
tree98c4d870e903f987069df03f69b5e5f31e45cb96 /ppapi/proxy/ppapi_proxy_export.h
parent6ed0388cbf008ea2c07ef81ef967f0639f982887 (diff)
downloadchromium_src-f0a04c42aaf23a3f3c36a231905052ae9f86790f.zip
chromium_src-f0a04c42aaf23a3f3c36a231905052ae9f86790f.tar.gz
chromium_src-f0a04c42aaf23a3f3c36a231905052ae9f86790f.tar.bz2
Create ppapi_proxy.dll and ppapi_shared.dll.
This involves introducing the following macros: PPAPI_PROXY_EXPORT - for symbols exported from ppapi/proxy PPAPI_SHARED_EXPORT - for symbols exported from ppapi/shared_impl PPAPI_THUNK_EXPORT - for symbols exported from ppapi/thunk NOTE: shared_impl and thunk are still linked together, but I thought it was cleaner to give thunk its own macro. R=brettw@chromium.org Review URL: http://codereview.chromium.org/7687005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppapi_proxy_export.h')
-rw-r--r--ppapi/proxy/ppapi_proxy_export.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/ppapi/proxy/ppapi_proxy_export.h b/ppapi/proxy/ppapi_proxy_export.h
new file mode 100644
index 0000000..6bd0421
--- /dev/null
+++ b/ppapi/proxy/ppapi_proxy_export.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 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 PPAPI_PROXY_PPAPI_PROXY_EXPORT_H_
+#define PPAPI_PROXY_PPAPI_PROXY_EXPORT_H_
+#pragma once
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(PPAPI_PROXY_IMPLEMENTATION)
+#define PPAPI_PROXY_EXPORT __declspec(dllexport)
+#else
+#define PPAPI_PROXY_EXPORT __declspec(dllimport)
+#endif // defined(PPAPI_PROXY_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#define PPAPI_PROXY_EXPORT __attribute__((visibility("default")))
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define PPAPI_PROXY_EXPORT
+#endif
+
+#endif // PPAPI_PROXY_PPAPI_PROXY_EXPORT_H_