From 91371bc17e4635d33f5b39b92fd717b339cb2ab7 Mon Sep 17 00:00:00 2001 From: Daniel Stankewitz Date: Sun, 5 Sep 2021 20:14:03 +0200 Subject: [PATCH] Update build.sh --- build.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index 8e1ecf6..64f28c8 100644 --- a/build.sh +++ b/build.sh @@ -37,14 +37,18 @@ function build_amf { } function build_mfx { - git clone -q https://github.com/lu-zero/mfx_dispatch.git $SRC/libmfx - cd $SRC/libmfx - #git checkout c200d833e25a91e3e49d69890dac1ffa3486cbe9 - if [[ ! -f "configure" ]]; then - autoreconf -fiv || exit 1 - fi - build libmfx - sed -i 's/-lstdc++/-ladvapi32/g' $BUILD/lib/pkgconfig/libmfx.pc + cp -r "C:\Program Files (x86)\IntelSWTools\Intel(R) Media SDK 2021 R1\Software Development Kit\include" $BUILD/include/mfx + cp "C:\Program Files (x86)\IntelSWTools\Intel(R) Media SDK 2021 R1\Software Development Kit\lib\x64\libmfx_vs2015.lib" $BUILD/lib/libmfx.lib + printf "prefix=$BUILD\nexec_prefix=\${prefix}\nincludedir=\${prefix}/include\nlibdir=\${exec_prefix}/lib\nName: libmfx\nDescription: Intel Media SDK Dispatched static library\nVersion: 1.34\nLibs: -L\${libdir} -llibmfx -ladvapi32 -lole32 -luuid\nCflags: -I\${includedir}\n" > $BUILD/lib/pkgconfig/libmfx.pc + + #git clone -q https://github.com/lu-zero/mfx_dispatch.git $SRC/libmfx + #cd $SRC/libmfx + #if [[ ! -f "configure" ]]; then + # autoreconf -fiv || exit 1 + #fi + #build libmfx + #sed -i 's/-lstdc++/-ladvapi32/g' $BUILD/lib/pkgconfig/libmfx.pc + add_comp libmfx }