Skip to content
Snippets Groups Projects
Commit 38a00d4e authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

PKG: don't forget to package lonely libraries

parent fcffcc4f
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,6 @@ prepare_search_dirs(PKG_SEARCHDIRS)
set(PKG_PEFILES)
prepare_file_list(PKG_PEFILES)
foreach(pfile ${PKG_PEFILES})
get_filename_component(pfile_name ${pfile} NAME)
process_file_recurse(${pfile_name})
endforeach()
......
......@@ -29,22 +29,23 @@ function(prepare_file_list file_list_result)
return()
endif()
set(file_list "${otbapp_launcher}")
if(HAVE_QT4)
list(APPEND file_list "otbApplicationLauncherQt${EXE_EXT}")
endif()
# find OTB targets
set(_otb_targets_path
"${SUPERBUILD_INSTALL_DIR}/lib/cmake/OTB-${PKG_OTB_VERSION_MAJOR}.${PKG_OTB_VERSION_MINOR}")
file(GLOB _targets_config_files "${_otb_targets_path}/OTBTargets-*.cmake")
set(_IMPORT_PREFIX ${SUPERBUILD_INSTALL_DIR})
foreach(f ${_targets_config_files})
file(STRINGS ${f} _f_content REGEX " IMPORTED_LOCATION_[A-Z]+ ")
string(REGEX REPLACE " +IMPORTED_LOCATION_[A-Z]+ (\"[^\"]+\")" "\\1;" _filtered ${_f_content})
string(CONFIGURE "${_filtered}" _configured)
list(APPEND file_list "${_configured}")
endforeach()
if(HAVE_MVD)
list(APPEND file_list "monteverdi${EXE_EXT}")
list(APPEND file_list "mapla${EXE_EXT}")
endif()
if(HAVE_PYTHON)
list(APPEND file_list "_otbApplication${PYMODULE_EXT}")
endif()
foreach(exe_file "iceViewer" "otbTestDriver" "SharkVersion")
foreach(exe_file "SharkVersion")
if(EXISTS "${SUPERBUILD_INSTALL_DIR}/bin/${exe_file}${EXE_EXT}")
list(APPEND file_list "${exe_file}${EXE_EXT}")
else()
......@@ -88,12 +89,7 @@ function(prepare_file_list file_list_result)
if(MSVC)
list(APPEND file_list "ucrtbase.dll")
list(APPEND file_list "proj.dll")
endif()
set(otb_applications_dir "${SUPERBUILD_INSTALL_DIR}/lib/otb/applications")
file(GLOB OTB_APPS_LIST "${otb_applications_dir}/otbapp_*${LIB_EXT}") # /lib/otb
list(APPEND file_list ${OTB_APPS_LIST})
endif()
set(${file_list_result} ${file_list} PARENT_SCOPE)
endfunction()
......@@ -19,7 +19,14 @@
#
function(process_file_recurse input_file)
set(input_file_full_path)
search_library(${input_file} PKG_SEARCHDIRS input_file_full_path)
if(IS_ABSOLUTE "${input_file}" AND EXISTS "${input_file}")
set(input_file_full_path ${input_file})
if(PKG_DEBUG)
message("Found '${input_file}' (return)")
endif()
else()
search_library(${input_file} PKG_SEARCHDIRS input_file_full_path)
endif()
if(NOT input_file_full_path)
if(LINUX)
setif_value_in_list(is_gtk_lib "${input_file}" ALLOWED_SYSTEM_DLLS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment