exports.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. //
  5. // Copyright (C) 2018 Intel Corporation
  6. #ifndef OPENCV_GAPI_OWN_TYPES_HPP
  7. #define OPENCV_GAPI_OWN_TYPES_HPP
  8. # if defined(__OPENCV_BUILD)
  9. # include <opencv2/core/base.hpp>
  10. # define GAPI_EXPORTS CV_EXPORTS
  11. /* special informative macros for wrapper generators */
  12. # define GAPI_PROP CV_PROP
  13. # define GAPI_PROP_RW CV_PROP_RW
  14. # define GAPI_WRAP CV_WRAP
  15. # define GAPI_EXPORTS_W_SIMPLE CV_EXPORTS_W_SIMPLE
  16. # define GAPI_EXPORTS_W CV_EXPORTS_W
  17. # else
  18. # define GAPI_PROP
  19. # define GAPI_PROP_RW
  20. # define GAPI_WRAP
  21. # define GAPI_EXPORTS
  22. # define GAPI_EXPORTS_W_SIMPLE
  23. # define GAPI_EXPORTS_W
  24. #if 0 // Note: the following version currently is not needed for non-OpenCV build
  25. # if defined _WIN32
  26. # define GAPI_EXPORTS __declspec(dllexport)
  27. # elif defined __GNUC__ && __GNUC__ >= 4
  28. # define GAPI_EXPORTS __attribute__ ((visibility ("default")))
  29. # endif
  30. # ifndef GAPI_EXPORTS
  31. # define GAPI_EXPORTS
  32. # endif
  33. #endif
  34. # endif
  35. #endif // OPENCV_GAPI_OWN_TYPES_HPP