Files
2025-04-14 13:23:38 +03:00

48 lines
1.3 KiB
Python
Executable File

#!/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():
#shelltools.system("mv SPIRV-Headers-1.5.4.raytracing.fixed external/SPIRV-Headers")
if get.buildTYPE() == "emul32":
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib32 \
-DBUILD_SHARED_LIBS=ON \
-DSPIRV_TOOLS_BUILD_STATIC=OFF \
-DSPIRV_WERROR=Off \
-DSPIRV-Headers_SOURCE_DIR=/usr \
-DCMAKE_INSTALL_BINDIR=bin32")
# -DSKIP_SPIRV_TOOLS_INSTALL=OFF \
else:
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DSPIRV_TOOLS_BUILD_STATIC=OFF \
-DSPIRV-Headers_SOURCE_DIR=/usr \
-DSPIRV_WERROR=OFF")
def build():
cmaketools.make()
def install():
autotools.rawInstall("DESTDIR=%s" %get.installDIR())
if get.buildTYPE() == "emul32":
pisitools.removeDir("/usr/bin32")
pisitools.dodoc("LICENSE", "README.md", "CONTRIBUTING.md")