actions.py 1.1 KB

123456789101112131415161718192021222324252627
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import pythonmodules
  10. def build():
  11. # suppress compiler warnings
  12. pisitools.cflags.add("-Wno-stringop-truncation -Wno-deprecated-declarations -Wno-incompatible-pointer-types -Wno-discarded-qualifiers -Wno-sign-conversion -Wno-sign-compare -Wno-unused-function")
  13. # fix unused direct dependency analysis
  14. shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread -Wl,-O1 -Wl,-z,relro -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common")
  15. pythonmodules.compile()
  16. # build documentation
  17. #shelltools.cd("docs")
  18. #autotools.make("html")
  19. def install():
  20. pythonmodules.install()
  21. #pisitools.dohtml("docs/_build/html/*")
  22. #for dirs in ["vectors"]:
  23. # pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), dirs)