Commit ecb01c27 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack common.sh: implement ignore_library_path

parent 65ab4623
...@@ -425,12 +425,20 @@ add_electron_deps() ...@@ -425,12 +425,20 @@ add_electron_deps()
__get_binary_requires() __get_binary_requires()
{ {
local fdir="$1" local fdir="$1"
local d
local findex
# prepare case for ignored path
for d in $EEPM_IGNORE_LIB_PATH ; do
info " Skipping $d ..."
findex="$findex -type d -path $BUILDROOT$d -prune -o"
done
info " Getting executable requires ..." info " Getting executable requires ..."
epm req --short $(find "$fdir" -type f -executable) </dev/null 2>/dev/null epm req --short $(find "$fdir" $findex -type f -executable) </dev/null 2>/dev/null
info " Getting libs requires ..." info " Getting libs requires ..."
epm req --short $(find "$fdir" -type f -name "lib*.so*") </dev/null 2>/dev/null epm req --short $(find "$fdir" $findex -type f -name "lib*.so*") </dev/null 2>/dev/null
} }
__get_library_provides() __get_library_provides()
...@@ -525,6 +533,11 @@ ignore_lib_requires() ...@@ -525,6 +533,11 @@ ignore_lib_requires()
EEPM_IGNORE_LIB_REQUIRES="$EEPM_IGNORE_LIB_REQUIRES $@" EEPM_IGNORE_LIB_REQUIRES="$EEPM_IGNORE_LIB_REQUIRES $@"
} }
ignore_library_path()
{
EEPM_IGNORE_LIB_PATH="$EEPM_IGNORE_LIB_PATH $@"
}
add_findreq_skiplist() add_findreq_skiplist()
{ {
......
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