spirv-tools add to repo
This commit is contained in:
Executable
+41
@@ -0,0 +1,41 @@
|
||||
#!/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.1.corrected external/SPIRV-Headers")
|
||||
|
||||
if get.buildTYPE() == "emul32":
|
||||
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib32 \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DSPIRV_WERROR=Off \
|
||||
-DSKIP_SPIRV_TOOLS_INSTALL=OFF \
|
||||
-DCMAKE_INSTALL_BINDIR=bin32")
|
||||
else:
|
||||
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-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")
|
||||
Executable
+56
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>spirv-tools</Name>
|
||||
<Homepage>https://www.khronos.org/vulkan/</Homepage>
|
||||
<Packager>
|
||||
<Name>Idris Kalp</Name>
|
||||
<Email>idriskalp@gmail.com</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>API and commands for processing SPIR-V modules</Summary>
|
||||
<Description>API and commands for processing SPIR-V modules</Description>
|
||||
<Archive sha1sum="9c4b44c23ee35f38324774dfd019925b866852aa" type="targz">https://github.com/KhronosGroup/SPIRV-Tools/archive/v2019.4.tar.gz</Archive>
|
||||
<Archive sha1sum="e7911f27a13c61e9d8c13fe7b0df5f1a883e972e" type="targz" target="SPIRV-Tools-2019.4">https://github.com/KhronosGroup/SPIRV-Headers/archive/1.5.1.corrected.tar.gz</Archive>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>spirv-tools</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>spirv-tools-32bit</Name>
|
||||
<BuildType>emul32</BuildType>
|
||||
<PartOf>emul32</PartOf>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib32</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>spirv-tools-devel</Name>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="data">/usr/lib32/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>220-01-11</Date>
|
||||
<Version>2019.4</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Idris Kalp</Name>
|
||||
<Email>idriskalp@gmail.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user