Files
main/programming/tool/cppcheck/actions.py
T
4fury-c3440d8 e204a1a266 cppcheck.
2021-03-24 05:24:26 +03:00

43 lines
1020 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# 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 shelltools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
j = "-DUSE_Z3=ON \
-DHAVE_RULES=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DBUILD_GUI=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_BUNDLED_TINYXML2=OFF \
-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON \
-DENABLE_CHECK_INTERNAL=ON \
-DWITH_QCHART=ON -L \
"
def setup():
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure(j, sourceDir = '..')
def build():
shelltools.cd("build")
cmaketools.make()
def check():
pass
def install():
shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("../AUTHORS", "../COPYING", "../philosophy.md", "../readme.md")