File tree Expand file tree Collapse file tree 4 files changed +6
-15
lines changed
core/include/opencv2/core/opencl/runtime Expand file tree Collapse file tree 4 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 44
44
45
45
#ifdef HAVE_CLAMDBLAS
46
46
47
- #ifndef CL_RUNTIME_EXPORT
48
- #if (defined(BUILD_SHARED_LIBS) || defined(OPENCV_CORE_SHARED)) && (defined _WIN32 || defined WINCE)
49
- #define CL_RUNTIME_EXPORT __declspec (dllimport)
50
- #else
51
- #define CL_RUNTIME_EXPORT
52
- #endif
53
- #endif
47
+ #include " opencl_core.hpp"
54
48
55
49
#include " autogenerated/opencl_clamdblas.hpp"
56
50
Original file line number Diff line number Diff line change 44
44
45
45
#ifdef HAVE_CLAMDFFT
46
46
47
- #ifndef CL_RUNTIME_EXPORT
48
- #if (defined(BUILD_SHARED_LIBS) || defined(OPENCV_CORE_SHARED)) && (defined _WIN32 || defined WINCE)
49
- #define CL_RUNTIME_EXPORT __declspec (dllimport)
50
- #else
51
- #define CL_RUNTIME_EXPORT
52
- #endif
53
- #endif
47
+ #include " opencl_core.hpp"
54
48
55
49
#include " autogenerated/opencl_clamdfft.hpp"
56
50
Original file line number Diff line number Diff line change 45
45
#ifdef HAVE_OPENCL
46
46
47
47
#ifndef CL_RUNTIME_EXPORT
48
- #if (defined(BUILD_SHARED_LIBS) || defined(OPENCV_CORE_SHARED)) && (defined _WIN32 || defined WINCE)
48
+ #if (defined(BUILD_SHARED_LIBS) || defined(OPENCV_CORE_SHARED)) && (defined _WIN32 || defined WINCE) && \
49
+ !(defined(__OPENCV_BUILD) && defined(OPENCV_MODULE_IS_PART_OF_WORLD))
49
50
#define CL_RUNTIME_EXPORT __declspec (dllimport)
50
51
#else
51
52
#define CL_RUNTIME_EXPORT
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ ocv_module_include_directories()
59
59
#message(STATUS "${OPENCV_MODULE_${the_module}_SOURCES}")
60
60
ocv_create_module (${link_deps} )
61
61
62
+ ocv_target_compile_definitions (${the_module} PRIVATE OPENCV_MODULE_IS_PART_OF_WORLD=1 )
63
+
62
64
if (BUILD_opencv_imgcodecs AND OPENCV_MODULE_opencv_imgcodecs_IS_PART_OF_WORLD )
63
65
ocv_imgcodecs_configure_target ()
64
66
endif ()
You can’t perform that action at this time.
0 commit comments