forked from mirror/libbpg
libbpg-0.9.6
This commit is contained in:
parent
3035b41edf
commit
35a8402710
248 changed files with 232891 additions and 100 deletions
3
x265/build/linux/make-Makefiles.bash
Executable file
3
x265/build/linux/make-Makefiles.bash
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
# Run this from within a bash shell
|
||||
cmake -G "Unix Makefiles" ../../source && ccmake ../../source
|
41
x265/build/linux/multilib.sh
Executable file
41
x265/build/linux/multilib.sh
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p 8bit 10bit 12bit
|
||||
|
||||
cd 12bit
|
||||
cmake ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON
|
||||
make ${MAKEFLAGS}
|
||||
|
||||
cd ../10bit
|
||||
cmake ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
|
||||
make ${MAKEFLAGS}
|
||||
|
||||
cd ../8bit
|
||||
ln -sf ../10bit/libx265.a libx265_main10.a
|
||||
ln -sf ../12bit/libx265.a libx265_main12.a
|
||||
cmake ../../../source -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON
|
||||
make ${MAKEFLAGS}
|
||||
|
||||
# rename the 8bit library, then combine all three into libx265.a
|
||||
mv libx265.a libx265_main.a
|
||||
|
||||
uname=`uname`
|
||||
if [ "$uname" = "Linux" ]
|
||||
then
|
||||
|
||||
# On Linux, we use GNU ar to combine the static libraries together
|
||||
ar -M <<EOF
|
||||
CREATE libx265.a
|
||||
ADDLIB libx265_main.a
|
||||
ADDLIB libx265_main10.a
|
||||
ADDLIB libx265_main12.a
|
||||
SAVE
|
||||
END
|
||||
EOF
|
||||
|
||||
else
|
||||
|
||||
# Mac/BSD libtool
|
||||
libtool -static -o libx265.a libx265_main.a libx265_main10.a libx265_main12.a 2>/dev/null
|
||||
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue