remote_cocoa_app_shim_export.h 818 B

12345678910111213141516171819202122
  1. // Copyright 2018 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 COMPONENTS_REMOTE_COCOA_APP_SHIM_REMOTE_COCOA_APP_SHIM_EXPORT_H_
  5. #define COMPONENTS_REMOTE_COCOA_APP_SHIM_REMOTE_COCOA_APP_SHIM_EXPORT_H_
  6. // Defines REMOTE_COCOA_APP_SHIM_EXPORT so that functionality implemented by the
  7. // RemoteCocoa app shim module can be exported to consumers.
  8. #if defined(COMPONENT_BUILD)
  9. #if defined(REMOTE_COCOA_APP_SHIM_IMPLEMENTATION)
  10. #define REMOTE_COCOA_APP_SHIM_EXPORT __attribute__((visibility("default")))
  11. #else
  12. #define REMOTE_COCOA_APP_SHIM_EXPORT
  13. #endif
  14. #else // defined(COMPONENT_BUILD)
  15. #define REMOTE_COCOA_APP_SHIM_EXPORT
  16. #endif
  17. #endif // COMPONENTS_REMOTE_COCOA_APP_SHIM_REMOTE_COCOA_APP_SHIM_EXPORT_H_