1978991b75189c3223607691ea44fe336a020990
[platform/upstream/opencv.git] / modules / gapi / include / opencv2 / gapi / own / exports.hpp
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
7
8 #ifndef OPENCV_GAPI_OWN_TYPES_HPP
9 #define OPENCV_GAPI_OWN_TYPES_HPP
10
11 #   if defined(__OPENCV_BUILD)
12 #       include <opencv2/core/base.hpp>
13 #       define GAPI_EXPORTS CV_EXPORTS
14         /* special informative macros for wrapper generators */
15 #       define GAPI_PROP CV_PROP
16 #       define GAPI_WRAP CV_WRAP
17 #       define GAPI_EXPORTS_W_SIMPLE CV_EXPORTS_W_SIMPLE
18 #       define GAPI_EXPORTS_W CV_EXPORTS_W
19 #   else
20 #       define GAPI_PROP
21 #       define GAPI_WRAP
22 #       define GAPI_EXPORTS
23 #       define GAPI_EXPORTS_W_SIMPLE
24 #       define GAPI_EXPORTS_W
25
26 #if 0  // Note: the following version currently is not needed for non-OpenCV build
27 #       if defined _WIN32
28 #           define GAPI_EXPORTS __declspec(dllexport)
29 #       elif defined __GNUC__ && __GNUC__ >= 4
30 #           define GAPI_EXPORTS __attribute__ ((visibility ("default")))
31 #       endif
32
33 #       ifndef GAPI_EXPORTS
34 #           define GAPI_EXPORTS
35 #       endif
36 #endif
37
38 #   endif
39
40 #endif // OPENCV_GAPI_OWN_TYPES_HPP