ui_android_export.h 744 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef UI_ANDROID_UI_ANDROID_EXPORT_H_
  5. #define UI_ANDROID_UI_ANDROID_EXPORT_H_
  6. // Defines UI_ANDROID_EXPORT so that functionality implemented by the UI module
  7. // can be exported to consumers.
  8. #if defined(COMPONENT_BUILD)
  9. #if defined(WIN32)
  10. #error Unsupported target architecture.
  11. #else // !defined(WIN32)
  12. #if defined(UI_ANDROID_IMPLEMENTATION)
  13. #define UI_ANDROID_EXPORT __attribute__((visibility("default")))
  14. #else
  15. #define UI_ANDROID_EXPORT
  16. #endif
  17. #endif
  18. #else // !defined(COMPONENT_BUILD)
  19. #define UI_ANDROID_EXPORT
  20. #endif
  21. #endif // UI_ANDROID_UI_ANDROID_EXPORT_H_