glslang add to repo

This commit is contained in:
idriskalp
2020-01-11 17:10:36 +03:00
parent 5606e6457b
commit 9710c1a361
2 changed files with 93 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
pisitools.cxxflags.add("-std=gnu++11")
def setup():
if get.buildTYPE() == "emul32":
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib32 \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_GLSLANG_BINARIES=OFF")
else:
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON")
def build():
cmaketools.make()
def install():
autotools.rawInstall("DESTDIR=%s" %get.installDIR())
#for tool in ["glslangValidator", "spirv-remap"]:
#pisitools.domove("/usr/bin32/%s" %tool, "/usr/bin", "%s-32" %tool)
#pisitools.dodoc("README.md", "COPYRIGHT.txt", "LICENSE.txt")