Skip to content
Snippets Groups Projects
Commit fd44d929 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Nicolas Pomepuy
Browse files

buildsystem: libvlc: refactor pkg-config calls

Refactor pkg-config calls with a bash function, so as to ensure the
correct environment everywhere.
parent 22d2b379
No related branches found
No related tags found
1 merge request!768buildsystem: liblc: rework lua link flag
......@@ -226,6 +226,13 @@ Libs: -l$1
Cflags:" > contrib/${TARGET_TUPLE}/lib/pkgconfig/$(echo $1|tr 'A-Z' 'a-z').pc
}
avlc_pkgconfig()
{
# Enforce pkg-config files coming from VLC contribs
PKG_CONFIG_PATH="$VLC_CONTRIB/lib/pkgconfig/" \
pkg-config "$@"
}
avlc_build()
{
###########################
......@@ -636,7 +643,7 @@ rm ${REDEFINED_VLC_MODULES_DIR}/syms
###########################
VLC_MODULES=$(avlc_find_modules ${REDEFINED_VLC_MODULES_DIR})
VLC_CONTRIB_LDFLAGS=$(for i in $(/bin/ls $VLC_CONTRIB/lib/pkgconfig/*.pc); do PKG_CONFIG_PATH="$VLC_CONTRIB/lib/pkgconfig/" pkg-config --libs $i; done |xargs)
VLC_CONTRIB_LDFLAGS=$(for i in $(/bin/ls $VLC_CONTRIB/lib/pkgconfig/*.pc); do avlc_pkgconfig --libs $i; done |xargs)
echo -e "ndk-build vlc"
touch $VLC_OUT_PATH/dummy.cpp
......
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