x265 3.2.1

This commit is contained in:
idriskalp
2020-01-17 16:40:54 +03:00
parent 147fab48a2
commit e370266e34
2 changed files with 61 additions and 7 deletions
+53 -6
View File
@@ -9,17 +9,64 @@ from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import shelltools
WorkDir="x265_3.2.1"
def setup():
shelltools.cd("source")
cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_STATIC=OFF")
shelltools.system("mkdir build8 build10 build12")
#shelltools.cd("source")
#cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
#-DENABLE_STATIC=OFF")
def build():
shelltools.cd("source")
cmaketools.make()
#shelltools.cd("source")
shelltools.cd("build12")
shelltools.system("cmake ../source -G 'Unix Makefiles' \
-DCMAKE_INSTALL_PREFIX='/usr'\
-DHIGH_BIT_DEPTH='TRUE' \
-DMAIN12='TRUE' \
-DEXPORT_C_API='FALSE' \
-DENABLE_CLI='FALSE'\
-DENABLE_SHARED='FALSE' \
")
cmaketools.make()
shelltools.cd("../build10")
shelltools.system("cmake ../source -G 'Unix Makefiles' \
-DCMAKE_INSTALL_PREFIX='/usr'\
-DHIGH_BIT_DEPTH='TRUE' \
-DEXPORT_C_API='FALSE' \
-DENABLE_CLI='FALSE'\
-DENABLE_SHARED='FALSE' \
")
cmaketools.make()
shelltools.cd("../build8")
shelltools.system("ln -s ../build10/libx265.a libx265_main10.a")
shelltools.system("ln -s ../build12/libx265.a libx265_main12.a")
shelltools.system("cmake ../source -G 'Unix Makefiles' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DENABLE_SHARED='TRUE' \
-DENABLE_HDR10_PLUS='TRUE' \
-DEXTRA_LIB='x265_main10.a;x265_main12.a' \
-DEXTRA_LINK_FLAGS='-L.' \
-DLINKED_10BIT='TRUE' \
-DLINKED_12BIT='TRUE' \
")
cmaketools.make()
def install():
shelltools.cd("source")
shelltools.cd("build8")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.remove("/usr/lib/libx265.a")