Commit 4c41b145 authored by Guillaume Pasero's avatar Guillaume Pasero

PKG: analyse dependencies of Qt plugins

parent dfc4e77e
......@@ -29,6 +29,9 @@ function(install_rule src_file)
get_filename_component(src_file_NAME_WE ${src_file} NAME_WE)
get_filename_component(src_file_PATH ${src_file} PATH)
get_filename_component(src_file_GPATH ${src_file_PATH} PATH)
get_filename_component(src_file_GNAME ${src_file_GPATH} NAME)
file(GLOB src_file_star "${src_file_PATH}/${src_file_NAME_WE}*")
foreach(sfile ${src_file_star})
get_filename_component(sfile_NAME ${sfile} NAME)
......@@ -51,6 +54,9 @@ function(install_rule src_file)
message("SKIP INSTALL for ${sfile_NAME_LOWER}")
endif()
continue()
elseif(("${sfile_ABS_LOWER}" MATCHES "(\\${LIB_EXT})$") AND (src_file_GNAME STREQUAL "plugins"))
# special case: Qt plugins are installed by install_qtdev_files
continue()
elseif("${sfile_ABS_LOWER}" MATCHES "(\\.exe)$")
set(install_type PROGRAMS)
set(install_dir bin)
......
......@@ -95,5 +95,14 @@ function(prepare_file_list file_list_result)
list(APPEND file_list "libEGL.dll")
endif()
# Qt plugins
if(HAVE_QT)
file(GLOB _qt_plugins "${SUPERBUILD_INSTALL_DIR}/plugins/*/${LIB_PREFIX}*${LIB_EXT}")
foreach(_qt_plugin ${_qt_plugins})
get_filename_component(_qt_plugin_name ${_qt_plugin} NAME)
list(APPEND file_list ${_qt_plugin_name})
endforeach()
endif()
set(${file_list_result} ${file_list} PARENT_SCOPE)
endfunction()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment