|
|
|
@ -219,7 +219,6 @@ macro(add_android_project target path) |
|
|
|
|
|
|
|
|
|
# get project sources |
|
|
|
|
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 |
|
|
|
|
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) |
|
|
|
|
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() |
|
|
|
|
|
|
|
|
|