opencl-icd update and rebuild with hpp headers.
This commit is contained in:
Executable → Regular
+24
-14
@@ -1,31 +1,41 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright 2009 TUBITAK/UEKAE
|
||||
# Licensed under the GNU General Public License, version 2.
|
||||
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
pisitools.insinto("/usr/include/CL", "OpenCL-Headers-2020.12.18/CL/*")
|
||||
shelltools.export("CFLAGS", "-I%s/usr/include -O2")
|
||||
shelltools.export("CXXFLAGS", "-I%s/usr/include -O2")
|
||||
pisitools.cflags.add("-fcommon")
|
||||
autotools.autoreconf("-vfi")
|
||||
shelltools.export("CFLAGS", "-I%s/usr/include -O2")
|
||||
shelltools.export("CXXFLAGS", "-I%s/usr/include -O2")
|
||||
pisitools.cflags.add("-fcommon")
|
||||
shelltools.system("./bootstrap")
|
||||
|
||||
autotools.configure()
|
||||
autotools.configure()
|
||||
|
||||
shelltools.cd("OpenCL-Headers-2021.06.30")
|
||||
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release")
|
||||
|
||||
shelltools.cd("../OpenCL-CLHPP-2.0.15")
|
||||
cmaketools.configure("-DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
autotools.make()
|
||||
|
||||
def check():
|
||||
autotools.make("check")
|
||||
autotools.make("check")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
pisitools.dodoc("NEWS")
|
||||
|
||||
pisitools.dodoc("COPYING","NEWS", "README")
|
||||
shelltools.cd("OpenCL-Headers-2021.06.30")
|
||||
cmaketools.install()
|
||||
|
||||
shelltools.cd("../OpenCL-CLHPP-2.0.15")
|
||||
cmaketools.install()
|
||||
|
||||
Reference in New Issue
Block a user