12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #!/usr/bin/env 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 pisitools
- from pisi.actionsapi import shelltools
- from pisi.actionsapi import get
- def setup():
- shelltools.makedirs("Release")
- shelltools.cd("Release")
- cmaketools.configure("-DKICAD_STABLE_VERSION=ON \
- -DKICAD_REPO_NAME=stable \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DKICAD_SKIP_BOOST=ON \
- -DKICAD_SCRIPTING=ON \
- -DKICAD_SCRIPTING_MODULES=ON \
- -DKICAD_USE_OCE=ON \
- -DKICAD_USE_OCC=ON \
- -DKICAD_USE_EGL=1 \
- -DKICAD_SCRIPTING_WXPYTHON=OFF \
- -DKICAD_BUILD_QA_TESTS=OFF \
- -DKICAD_I18N_UNIX_STRICT_PATH=ON \
- -DBUILD_GITHUB_PLUGIN=ON", sourceDir="..")
-
- #shelltools.cd("..")
- #shelltools.cd("kicad-i18n-5.1.5")
- #shelltools.makedirs("Release")
- #shelltools.cd("Release")
- #cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
- #-DKICAD_I18N_UNIX_STRICT_PATH=ON", sourceDir="..")
- #shelltools.cd("..")
- def build():
- shelltools.cd("Release")
- cmaketools.make()
- def install():
- shelltools.cd("Release")
- cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
- #shelltools.cd("..")
- #pisitools.dodoc("AUTHORS*", "CHANGELOG*", "README*")
|