From f0a04c42aaf23a3f3c36a231905052ae9f86790f Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Fri, 26 Aug 2011 22:43:20 +0000 Subject: 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 --- ppapi/shared_impl/ppapi_shared_export.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ppapi/shared_impl/ppapi_shared_export.h (limited to 'ppapi/shared_impl/ppapi_shared_export.h') diff --git a/ppapi/shared_impl/ppapi_shared_export.h b/ppapi/shared_impl/ppapi_shared_export.h new file mode 100644 index 0000000..fb3c036 --- /dev/null +++ b/ppapi/shared_impl/ppapi_shared_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_SHARED_IMPL_PPAPI_SHARED_EXPORT_H_ +#define PPAPI_SHARED_IMPL_PPAPI_SHARED_EXPORT_H_ +#pragma once + +#if defined(COMPONENT_BUILD) +#if defined(WIN32) + +#if defined(PPAPI_SHARED_IMPLEMENTATION) +#define PPAPI_SHARED_EXPORT __declspec(dllexport) +#else +#define PPAPI_SHARED_EXPORT __declspec(dllimport) +#endif // defined(PPAPI_SHARED_IMPLEMENTATION) + +#else // defined(WIN32) +#define PPAPI_SHARED_EXPORT __attribute__((visibility("default"))) +#endif + +#else // defined(COMPONENT_BUILD) +#define PPAPI_SHARED_EXPORT +#endif + +#endif // PPAPI_SHARED_IMPL_PPAPI_SHARED_EXPORT_H_ -- cgit v1.1