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