123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #!/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 \
- -DSKIP_SPIRV_TOOLS_INSTALL=OFF \
- -DCMAKE_INSTALL_BINDIR=bin32")
- 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")
|