SConstruct 943 B

12345678910111213141516171819202122232425262728
  1. # -*- mode: Python -*-
  2. # -*- coding: utf-8 -*-
  3. # (c) Daniel Llorens - 2016
  4. # This library is free software; you can redistribute it and/or modify it under
  5. # the terms of the GNU Lesser General Public License as published by the Free
  6. # Software Foundation; either version 3 of the License, or (at your option) any
  7. # later version.
  8. # Top SConstruct for ra-ra
  9. # todo Shared pieces with examples/SConstruct and test/SConstruct
  10. import os, atexit
  11. from colorama import Fore, Back, Style
  12. from os.path import join, abspath
  13. from SCons.Script import GetBuildFailures
  14. import imp
  15. ra = imp.load_source('ra', './ra.py')
  16. top = {'skip_summary': True}; Export('top');
  17. SConscript('test/SConstruct', 'top')
  18. SConscript('bench/SConstruct', 'top')
  19. SConscript('examples/SConstruct', 'top')
  20. # SConscript('doc/SConstruct', 'top') # TODO run from doc, otherwise makeinfo writes empty files (??)
  21. atexit.register(lambda: ra.print_summary(GetBuildFailures, 'ra-ra'))