add build dir
This commit is contained in:
@@ -11,16 +11,23 @@ from pisi.actionsapi import libtools
|
|||||||
from pisi.actionsapi import get
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
|
shelltools.makedirs("build")
|
||||||
|
shelltools.cd("build")
|
||||||
|
|
||||||
cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
|
cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DALLOW_IN_SOURCE_BUILD=ON \
|
-DALLOW_IN_SOURCE_BUILD=ON \
|
||||||
-DCMAKE_SKIP_INSTALL_RPATH=YES")
|
-DCMAKE_SKIP_INSTALL_RPATH=YES", sourceDir=".." )
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
|
shelltools.cd("build")
|
||||||
|
|
||||||
cmaketools.make()
|
cmaketools.make()
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
|
shelltools.cd("build")
|
||||||
|
|
||||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
pisitools.dodoc("LICENSE", "README")
|
pisitools.dodoc("LICENSE", "README")
|
||||||
|
|||||||
Reference in New Issue
Block a user