Merge branch 'master' of code.opencv.org:opencv
This commit is contained in:
commit
2b53d2e6a4
@ -219,7 +219,6 @@ macro(add_android_project target path)
|
|||||||
|
|
||||||
# get project sources
|
# get project sources
|
||||||
file(GLOB_RECURSE android_proj_files RELATIVE "${path}" "${path}/res/*" "${path}/src/*")
|
file(GLOB_RECURSE android_proj_files RELATIVE "${path}" "${path}/res/*" "${path}/src/*")
|
||||||
ocv_list_filterout(android_proj_files "\\\\.svn")
|
|
||||||
|
|
||||||
# copy sources out from the build tree
|
# copy sources out from the build tree
|
||||||
set(android_proj_file_deps "")
|
set(android_proj_file_deps "")
|
||||||
@ -277,7 +276,9 @@ macro(add_android_project target path)
|
|||||||
)
|
)
|
||||||
|
|
||||||
get_target_property(android_proj_jni_location "${JNI_LIB_NAME}" LOCATION)
|
get_target_property(android_proj_jni_location "${JNI_LIB_NAME}" LOCATION)
|
||||||
add_custom_command(TARGET ${JNI_LIB_NAME} POST_BUILD COMMAND ${CMAKE_STRIP} --strip-unneeded "${android_proj_jni_location}")
|
if (NOT (CMAKE_BUILD_TYPE MATCHES "debug"))
|
||||||
|
add_custom_command(TARGET ${JNI_LIB_NAME} POST_BUILD COMMAND ${CMAKE_STRIP} --strip-unneeded "${android_proj_jni_location}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -57,8 +57,9 @@ SET_TARGET_PROPERTIES(${the_target} PROPERTIES
|
|||||||
RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}
|
RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}
|
||||||
)
|
)
|
||||||
|
|
||||||
# force strip library after the build command
|
if (NOT (CMAKE_BUILD_TYPE MATCHES "debug"))
|
||||||
ADD_CUSTOM_COMMAND( TARGET ${the_target} POST_BUILD COMMAND ${CMAKE_STRIP} "${LIBRARY_OUTPUT_PATH}/lib${the_target}.so" )
|
ADD_CUSTOM_COMMAND( TARGET ${the_target} POST_BUILD COMMAND ${CMAKE_STRIP} "${LIBRARY_OUTPUT_PATH}/lib${the_target}.so" )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
install(TARGETS ${the_target} LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT main)
|
install(TARGETS ${the_target} LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT main)
|
||||||
|
@ -181,7 +181,10 @@ if(ANDROID)
|
|||||||
# force strip library after the build command
|
# force strip library after the build command
|
||||||
# because samples and tests will make a copy of the library before install
|
# because samples and tests will make a copy of the library before install
|
||||||
get_target_property(__opencv_java_location ${the_module} LOCATION)
|
get_target_property(__opencv_java_location ${the_module} LOCATION)
|
||||||
add_custom_command(TARGET ${the_module} POST_BUILD COMMAND ${CMAKE_STRIP} --strip-unneeded "${__opencv_java_location}")
|
# Turn off stripping in debug build
|
||||||
|
if ( NOT (CMAKE_BUILD_TYPE MATCHES "debug"))
|
||||||
|
add_custom_command(TARGET ${the_module} POST_BUILD COMMAND ${CMAKE_STRIP} --strip-unneeded "${__opencv_java_location}")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(lib_proj_files "")
|
set(lib_proj_files "")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user