aom-3.5.0
This commit is contained in:
Executable → Regular
+14
-24
@@ -2,37 +2,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/copyleft/gpl.txt
|
||||
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import cmaketools, mesontools, pisitools, get
|
||||
|
||||
WorkDir="libaom-%s" % get.srcVERSION()
|
||||
|
||||
j = ''.join([
|
||||
' -DCMAKE_BUILD_TYPE=Release',
|
||||
' -DBUILD_SHARED_LIBS=1',
|
||||
' -DENABLE_TESTS=0',
|
||||
' -S . -B build -G Ninja -L '
|
||||
])
|
||||
|
||||
def setup():
|
||||
#shelltools.cd("%s" % get.workDIR())
|
||||
#shelltools.move("libaom-*", "aom-%s" % get.srcVERSION())
|
||||
#shelltools.cd("aom-%s" % get.srcVERSION())
|
||||
cmaketools.configure("-S . -B build -G Ninja \
|
||||
-DBUILD_SHARED_LIBS=1 \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DENABLE_TESTS=0")
|
||||
cmaketools.configure(j)
|
||||
|
||||
def build():
|
||||
shelltools.cd("build")
|
||||
shelltools.system("ninja")
|
||||
mesontools.build("-C build")
|
||||
|
||||
def install():
|
||||
shelltools.cd("build")
|
||||
shelltools.system("DESTDIR=%s ninja install" % get.installDIR())
|
||||
|
||||
#pisitools.dosym("/usr/lib/libaom.so.3.4.0", "/usr/lib/libaom.so.0")
|
||||
|
||||
pisitools.insinto("/usr/share/pixmaps", "aomedia_logo_200.png", "aom.png")
|
||||
|
||||
shelltools.cd("..")
|
||||
pisitools.dodoc("AUTHORS", "CHANGELOG", "README.md")
|
||||
mesontools.install("-C build")
|
||||
|
||||
pisitools.insinto("/usr/share/pixmaps", "aomedia_logo_200.png", "aom.png")
|
||||
pisitools.dodoc("AUTHORS", "CHANGELOG", "README.md")
|
||||
|
||||
Reference in New Issue
Block a user