OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_WM_CORE_WM_CORE_EXPORT_H_ |
| 6 #define UI_WM_CORE_WM_CORE_EXPORT_H_ |
| 7 |
| 8 #include "ui/views/views_export.h" |
| 9 |
| 10 #if 1 |
| 11 #define WM_CORE_EXPORT VIEWS_EXPORT |
| 12 #else |
| 13 |
| 14 // Defines WM_CORE_EXPORT so that functionality implemented by the Views module |
| 15 // can be exported to consumers. |
| 16 |
| 17 #if defined(COMPONENT_BUILD) |
| 18 #if defined(WIN32) |
| 19 |
| 20 #if defined(WM_CORE_IMPLEMENTATION) |
| 21 #define WM_CORE_EXPORT __declspec(dllexport) |
| 22 #else |
| 23 #define WM_CORE_EXPORT __declspec(dllimport) |
| 24 #endif // defined(WM_CORE_IMPLEMENTATION) |
| 25 |
| 26 #else // defined(WIN32) |
| 27 #if defined(WM_CORE_IMPLEMENTATION) |
| 28 #define WM_CORE_EXPORT __attribute__((visibility("default"))) |
| 29 #else |
| 30 #define WM_CORE_EXPORT |
| 31 #endif |
| 32 #endif |
| 33 |
| 34 #else // defined(COMPONENT_BUILD) |
| 35 #define WM_CORE_EXPORT |
| 36 #endif |
| 37 |
| 38 #endif |
| 39 |
| 40 #endif // UI_WM_CORE_WM_CORE_EXPORT_H_ |
OLD | NEW |