gpu_util_export.h 757 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2017 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 GPU_GPU_UTIL_EXPORT_H_
  5. #define GPU_GPU_UTIL_EXPORT_H_
  6. #if defined(COMPONENT_BUILD) && !defined(NACL_WIN64)
  7. #if defined(WIN32)
  8. #if defined(GPU_UTIL_IMPLEMENTATION)
  9. #define GPU_UTIL_EXPORT __declspec(dllexport)
  10. #else
  11. #define GPU_UTIL_EXPORT __declspec(dllimport)
  12. #endif // defined(GPU_UTIL_IMPLEMENTATION)
  13. #else // defined(WIN32)
  14. #if defined(GPU_UTIL_IMPLEMENTATION)
  15. #define GPU_UTIL_EXPORT __attribute__((visibility("default")))
  16. #else
  17. #define GPU_UTIL_EXPORT
  18. #endif
  19. #endif
  20. #else // defined(COMPONENT_BUILD)
  21. #define GPU_UTIL_EXPORT
  22. #endif
  23. #endif // GPU_GPU_UTIL_EXPORT_H_