Source

medit / moo.proj

Full commit
from project.cproject import *
from project.cconfig import *

class MooProj(CProject):
    def __init__(self, *args, **kwargs):
        CProject.__init__(self, *args, **kwargs)

        self.config.make_options = MakeOptions(n_jobs=3)

        runopt = RunOptions(exe='tests/medit', args='--g-fatal-warnings')
        confopt = ConfigureOptions(args='--enable-debug=full ' + \
                                        '--enable-all-gcc-warnings=fatal ' + \
                                        '--disable-moo-module',
                                   cflags='-O0 -g3 -pg')
        debug = BuildConfiguration('debug',
                                   build_dir='build/debug',
                                   configure_options=confopt,
                                   run_options=runopt)
        self.config.add_conf(debug)

        runopt = RunOptions(exe='tests/medit')
        confopt = ConfigureOptions(args='--enable-all-gcc-warnings=fatal ' + \
                                        '--enable-developer-mode ' + \
                                        '--without-mooterm --without-python',
                                   cflags='-O2 -g')
        optim = BuildConfiguration('optimized',
                                   build_dir='build/optimized',
                                   configure_options=confopt,
                                   run_options=runopt)
        self.config.add_conf(optim)


__project__ = MooProj
__version__ = "1.0"
__name__ = "moo"

__config__ = \
"""<cconfig version="1.0">
 <active-configuration>debug</active-configuration>
</cconfig>
"""

# kate: lang python; indent-width 4; space-indent on; strip on