Skip to content
Snippets Groups Projects
Commit 0a838224 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

dependencies: run pkg-static.sh

Change-Id: I5b0deff45592389c661a5816783c3d91bfc3b2a3
parent 65a6ea8c
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ def build_and_install_opendht():
subprocess.run(["cmake", ".",
"-DCMAKE_INSTALL_PREFIX=" + install_dir,
"-DCMAKE_BUILD_TYPE=Release",
"-DBUILD_SHARED_LIBS=OFF",
"-DBUILD_TESTING=OFF",
"-DOPENDHT_PYTHON=OFF",
"-DOPENDHT_TOOLS=OFF",
......@@ -125,6 +126,8 @@ def main():
# Build and install pjproject
build_and_install_pjproject()
subprocess.run([f"for p in {install_dir}/lib/pkgconfig/*.pc; do ./pkg-static.sh $p; done"], shell=True, check=True)
if __name__ == "__main__":
main()
#! /bin/sh
# Copyright (C) 2012 Rémi Denis-Courmont
# This file is distributed under the same license as the vlc package.
if test -z "$1" || test -n "$2"; then
echo "Usage: $0 <file.pc>" >&2
echo "Merges the pkg-config {Requires/Libs}.private stanza into {Requires/Libs} stanzas." >&2
exit 1
fi
exec <"$1" >"$1.tmp" || exit $?
LIBS_PUBLIC=""
LIBS_PRIVATE=""
REQUIRES_PUBLIC=""
REQUIRES_PRIVATE=""
while read LINE; do
lpub="${LINE#Libs:}"
lpriv="${LINE#Libs.private:}"
rpub="${LINE#Requires:}"
rpriv="${LINE#Requires.private:}"
if test "$lpub" != "$LINE"; then
LIBS_PUBLIC="$lpub"
elif test "$lpriv" != "$LINE"; then
LIBS_PRIVATE="$lpriv"
elif test "$rpub" != "$LINE"; then
REQUIRES_PUBLIC="$rpub"
elif test "$rpriv" != "$LINE"; then
REQUIRES_PRIVATE="$rpriv"
else
echo "$LINE"
fi
done
echo "Libs: $LIBS_PUBLIC $LIBS_PRIVATE"
echo "Requires: $REQUIRES_PUBLIC $REQUIRES_PRIVATE"
mv -f -- "$1.tmp" "$1"
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