clean up.
This commit is contained in:
@@ -6,26 +6,31 @@
|
||||
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import mesontools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
j = ''.join([
|
||||
' -DCMAKE_INSTALL_PREFIX=/usr',
|
||||
' -DCMAKE_BUILD_TYPE=Release',
|
||||
' -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON',
|
||||
' -DBUILD_TESTING=OFF',
|
||||
' -Bbuild -G Ninja -L '
|
||||
])
|
||||
j = "-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_THREAD_LIBS_INIT='-lpthread' \
|
||||
-DCMAKE_HAVE_THREADS_LIBRARY=ON \
|
||||
-DCMAKE_USE_PTHREADS_INIT=ON \
|
||||
-DBUILD_TESTING=OFF -LA \
|
||||
"
|
||||
|
||||
def setup():
|
||||
shelltools.export("CC", "clang")
|
||||
shelltools.export("CXX", "clang++")
|
||||
cmaketools.configure(j)
|
||||
shelltools.export("CC", "clang")
|
||||
shelltools.export("CXX", "clang++")
|
||||
shelltools.makedirs("build")
|
||||
shelltools.cd("build")
|
||||
cmaketools.configure(j, sourceDir = '..')
|
||||
|
||||
def build():
|
||||
mesontools.build()
|
||||
shelltools.cd("build")
|
||||
cmaketools.make()
|
||||
|
||||
def install():
|
||||
mesontools.install()
|
||||
shelltools.cd("build")
|
||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("../CONTRIBUTING.md", "../INSTALL.md", "../README.md", "../TESTING.md")
|
||||
|
||||
pisitools.dodoc("LICENSE")
|
||||
|
||||
Reference in New Issue
Block a user