Update build.sh
This commit is contained in:
parent
3d252ffad3
commit
a3209ea914
9
build.sh
9
build.sh
@ -49,7 +49,7 @@ function build_mfx {
|
||||
}
|
||||
|
||||
function build_aom {
|
||||
git clone -q https://aomedia.googlesource.com/aom $SRC/libaom
|
||||
git clone -q -b v3.1.2 https://aomedia.googlesource.com/aom $SRC/libaom
|
||||
cd $SRC/libaom
|
||||
rm -rf work
|
||||
mkdir work
|
||||
@ -58,11 +58,12 @@ function build_aom {
|
||||
MSBuild.exe /maxcpucount:$NUMBER_OF_PROCESSORS /property:Configuration="$MSBUILD_CONFIG" AOM.sln
|
||||
cp $MSBUILD_CONFIG/aom.lib $BUILD/lib/aom.lib
|
||||
cp -r ../aom $BUILD/include/aom
|
||||
printf "prefix=$BUILD\nexec_prefix=\${prefix}\nincludedir=\${prefix}/include\nlibdir=\${exec_prefix}/lib\nName: aom\nVersion: 3.1.2\nLibs: -L\${libdir} -laom\nCflags: -I\${includedir}\n" > $BUILD/lib/pkgconfig/aom.pc
|
||||
#cmake -DAOM_CONFIG_DIR=. -DAOM_ROOT=.. -DCMAKE_INSTALL_PREFIX=@prefix@ -DCMAKE_PROJECT_NAME=aom -DCONFIG_MULTITHREAD=true -DHAVE_PTHREAD_H=false -P "../build/cmake/pkg_config.cmake"
|
||||
sed -i "s#@prefix@#$BUILD#g" aom.pc
|
||||
sed -i '/^Libs\.private.*/d' aom.pc
|
||||
#sed -i "s#@prefix@#$BUILD#g" aom.pc
|
||||
#sed -i '/^Libs\.private.*/d' aom.pc
|
||||
#sed -i 's/-lm//' aom.pc
|
||||
cp aom.pc $BUILD/lib/pkgconfig/aom.pc
|
||||
#cp aom.pc $BUILD/lib/pkgconfig/aom.pc
|
||||
add_comp libaom
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user