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/msys/make-Makefiles.sh
Normal file
3
x265/build/msys/make-Makefiles.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
# Run this from within an MSYS bash shell
|
||||
cmake -G "MSYS Makefiles" ../../source && cmake-gui ../../source
|
8
x265/build/msys/make-x86_64-w64-mingw32-Makefiles.sh
Normal file
8
x265/build/msys/make-x86_64-w64-mingw32-Makefiles.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This will generate a cross-compile environment, compiling an x86_64
|
||||
# Win64 target from a 32bit MinGW32 host environment. If your MinGW
|
||||
# install is 64bit, you can use the native compiler batch file:
|
||||
# make-Makefiles.sh
|
||||
|
||||
cmake -G "MSYS Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain-x86_64-w64-mingw32.cmake ../../source && cmake-gui ../../source
|
29
x265/build/msys/multilib.sh
Executable file
29
x265/build/msys/multilib.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p 8bit 10bit 12bit
|
||||
|
||||
cd 12bit
|
||||
cmake -G "MSYS Makefiles" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON
|
||||
make ${MAKEFLAGS}
|
||||
cp libx265.a ../8bit/libx265_main12.a
|
||||
|
||||
cd ../10bit
|
||||
cmake -G "MSYS Makefiles" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
|
||||
make ${MAKEFLAGS}
|
||||
cp libx265.a ../8bit/libx265_main10.a
|
||||
|
||||
cd ../8bit
|
||||
cmake -G "MSYS Makefiles" ../../../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 using GNU ar
|
||||
mv libx265.a libx265_main.a
|
||||
|
||||
ar -M <<EOF
|
||||
CREATE libx265.a
|
||||
ADDLIB libx265_main.a
|
||||
ADDLIB libx265_main10.a
|
||||
ADDLIB libx265_main12.a
|
||||
SAVE
|
||||
END
|
||||
EOF
|
9
x265/build/msys/toolchain-mingw32.cmake
Normal file
9
x265/build/msys/toolchain-mingw32.cmake
Normal file
|
@ -0,0 +1,9 @@
|
|||
# cmake -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw32.cmake
|
||||
# this one is important
|
||||
SET(CMAKE_SYSTEM_NAME Windows)
|
||||
|
||||
# specify the cross compiler
|
||||
SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
|
||||
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
|
||||
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
|
||||
SET(CMAKE_ASM_YASM_COMPILER yasm)
|
6
x265/build/msys/toolchain-x86_64-w64-mingw32.cmake
Normal file
6
x265/build/msys/toolchain-x86_64-w64-mingw32.cmake
Normal file
|
@ -0,0 +1,6 @@
|
|||
SET(CMAKE_SYSTEM_NAME Windows)
|
||||
SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
|
||||
SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
|
||||
SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
|
||||
SET(CMAKE_RANLIB x86_64-w64-mingw32-ranlib)
|
||||
SET(CMAKE_ASM_YASM_COMPILER yasm)
|
Loading…
Add table
Add a link
Reference in a new issue