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.
5 // Copyright (C) 2018 Intel Corporation
8 #ifndef OPENCV_GAPI_OWN_TYPES_HPP
9 #define OPENCV_GAPI_OWN_TYPES_HPP
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
23 # define GAPI_EXPORTS_W_SIMPLE
24 # define GAPI_EXPORTS_W
26 #if 0 // Note: the following version currently is not needed for non-OpenCV build
28 # define GAPI_EXPORTS __declspec(dllexport)
29 # elif defined __GNUC__ && __GNUC__ >= 4
30 # define GAPI_EXPORTS __attribute__ ((visibility ("default")))
40 #endif // OPENCV_GAPI_OWN_TYPES_HPP