Chromium Code Reviews| Index: media/mojo/services/media_mojo_export.h |
| diff --git a/media/mojo/services/media_mojo_export.h b/media/mojo/services/media_mojo_export.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..23383936ea68bf2c961e6243d39a93e35a8c7314 |
| --- /dev/null |
| +++ b/media/mojo/services/media_mojo_export.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
|
ddorwin
2016/05/11 23:02:28
Was this copied or should this be updated?
xhwang
2016/05/16 05:41:20
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_MOJO_MEDIA_MOJO_EXPORT_H_ |
| +#define MEDIA_MOJO_MEDIA_MOJO_EXPORT_H_ |
| + |
| +// Define MEDIA_MOJO_EXPORT so that functionality implemented by the |
| +// media/mojo module can be exported to consumers. |
| + |
| +#if defined(COMPONENT_BUILD) |
| +#if defined(WIN32) |
| + |
| +#if defined(MEDIA_MOJO_IMPLEMENTATION) |
| +#define MEDIA_MOJO_EXPORT __declspec(dllexport) |
|
ddorwin
2016/05/11 23:02:28
Does the discussion, including naming, in https://
xhwang
2016/05/16 05:41:20
This is equivalent to MEDIA_EXPORT. I'd like to fo
|
| +#else |
| +#define MEDIA_MOJO_EXPORT __declspec(dllimport) |
| +#endif // defined(MEDIA_IMPLEMENTATION) |
| + |
| +#else // defined(WIN32) |
| +#if defined(MEDIA_MOJO_IMPLEMENTATION) |
| +#define MEDIA_MOJO_EXPORT __attribute__((visibility("default"))) |
| +#else |
| +#define MEDIA_MOJO_EXPORT |
| +#endif |
| +#endif |
| + |
| +#else // defined(COMPONENT_BUILD) |
| +#define MEDIA_MOJO_EXPORT |
| +#endif |
| + |
| +#endif // MEDIA_MOJO_MEDIA_MOJO_EXPORT_H_ |