diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-09-30 19:01:58 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-09-30 19:01:58 +0300 |
commit | eedc83800a867d34156b5c313510707a17016c6b (patch) | |
tree | e2f5a0fc92887ff915f37815d0f8cfe902032c2e /debian/patches/build-static-libs | |
download | opencv-debian.tar.gz |
Imported opencv 2.4.9.1+dfsg1-2debian/2.4.9.1+dfsg1-2debian
Diffstat (limited to 'debian/patches/build-static-libs')
-rw-r--r-- | debian/patches/build-static-libs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/build-static-libs b/debian/patches/build-static-libs new file mode 100644 index 0000000..01c1eb0 --- /dev/null +++ b/debian/patches/build-static-libs @@ -0,0 +1,28 @@ +Description: Support build static libraries +Author: Nobuhiro Iwamatsu <iwamatsu@debian.org> +Forwarded: no +Last-Update: <2013-11-23> + +diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake +index c923aba..acef84c 100644 +--- a/cmake/OpenCVModule.cmake ++++ b/cmake/OpenCVModule.cmake +@@ -107,6 +107,7 @@ macro(ocv_add_module _name) + string(TOLOWER "${_name}" name) + string(REGEX REPLACE "^opencv_" "" ${name} "${name}") + set(the_module opencv_${name}) ++ set(the_module_s opencv_${name}_s) + + # the first pass - collect modules info, the second pass - create targets + if(OPENCV_INITIAL_PASS) +@@ -533,6 +534,10 @@ macro(ocv_create_module) + "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/opencv2/opencv_modules.hpp" + ${${the_module}_pch}) + ++ add_library(${the_module_s} STATIC ${OPENCV_MODULE_TYPE} ${OPENCV_MODULE_${the_module}_HEADERS} ${OPENCV_MODULE_${the_module}_SOURCES} ++ "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/opencv2/opencv_modules.hpp" ++ ${${the_module}_pch}) ++ + if(NOT "${ARGN}" STREQUAL "SKIP_LINK") + target_link_libraries(${the_module} ${OPENCV_MODULE_${the_module}_DEPS}) + target_link_libraries(${the_module} LINK_INTERFACE_LIBRARIES ${OPENCV_MODULE_${the_module}_DEPS}) |