# This file is part of Make-O-Matic.
#
# Copyright (C) 2010 Klaralvdalens Datakonsult AB, a KDAB Group company, [email protected]
# Author: Mirko Boehm <*****@*****.**>
#
# Make-O-Matic is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Make-O-Matic is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from core.configurations.PythonConfiguration import PythonConfiguration
from core.helpers.BoilerPlate import BuildProject

build, project = BuildProject( 'Make-O-Matic', 'git://github.com/KDAB/Make-O-Matic.git', '0.5.0', versionName = 'French Fries' )

# set up configurations:
python = PythonConfiguration( 'Python', parent = project )
# Hint: do not enable running the test suite here, because this script is part of the test suite :-)
# python.addPlugin( PyUnitTester( testprogram = PathResolver( project.getSourceDir, os.path.join( 'tests', 'testsuite.py' ) ) ) )

# run:
build.build()
Example #2
0
#!/usr/bin/env python

from core.Configuration import Configuration
from core.environments.Environments import Environments
from core.helpers.BoilerPlate import BuildProject
from core.helpers.PathResolver import PathResolver
from core.plugins.Preprocessor import Preprocessor
from core.plugins.builders.generators.CMakeBuilder import CMakeBuilder, CMakeVariable
from core.plugins.packagers.CPack import CPack
from core.plugins.testers.CTest import CTest
from core.plugins.reporters.EmailReporter import EmailReporter
from core.helpers.GlobalMApp import mApp
from core.plugins.platforms.BlackLister import BlackLister

build, project = BuildProject( name = 'GammaRay', version = '0.1.0', url = '[email protected]:gammaray.git' )
build.addPlugin( BlackLister( variable = 'QMAKESPEC', pattern = 'win32-g\+\+' ) )

sharedDebug = Environments( [ 'Qt-4.7.?-Shared-Debug' ], 'Qt 4 Shared Debug', project )
#sharedDebug = Environments( [], 'Qt 4 Shared Debug', project )
sharedDebug.setOptional( True )
debug = Configuration( 'Debug', sharedDebug, )
cmakeDebug = CMakeBuilder()
cmakeDebug.addCMakeVariable( CMakeVariable( 'CMAKE_BUILD_TYPE', 'debug', 'STRING' ) )
debug.addPlugin( cmakeDebug )
debug.addPlugin( CTest() )

sharedRelease = Environments( [ 'Qt-4.7.?' ], 'Qt 4 Shared Release', project )
#sharedRelease = Environments( [], 'Qt 4 Shared Release', project )
release = Configuration( 'Release', sharedRelease )
cmakeRelease = CMakeBuilder()
cmakeRelease.addCMakeVariable( CMakeVariable( 'CMAKE_BUILD_TYPE', 'release', 'STRING' ) )
Example #3
0
#!/usr/bin/env python

from core.Configuration import Configuration
from core.environments.Environments import Environments
from core.helpers.BoilerPlate import BuildProject
from core.helpers.PathResolver import PathResolver
from core.plugins.Preprocessor import Preprocessor
from core.plugins.builders.generators.CMakeBuilder import CMakeBuilder, CMakeVariable
from core.plugins.packagers.CPack import CPack
from core.plugins.testers.CTest import CTest
from core.plugins.reporters.EmailReporter import EmailReporter
from core.helpers.GlobalMApp import mApp
from core.plugins.platforms.BlackLister import BlackLister

build, project = BuildProject(name='GammaRay',
                              version='0.1.0',
                              url='[email protected]:gammaray.git')
build.addPlugin(BlackLister(variable='QMAKESPEC', pattern='win32-g\+\+'))

sharedDebug = Environments(['Qt-4.7.?-Shared-Debug'], 'Qt 4 Shared Debug',
                           project)
#sharedDebug = Environments( [], 'Qt 4 Shared Debug', project )
sharedDebug.setOptional(True)
debug = Configuration(
    'Debug',
    sharedDebug,
)
cmakeDebug = CMakeBuilder()
cmakeDebug.addCMakeVariable(
    CMakeVariable('CMAKE_BUILD_TYPE', 'debug', 'STRING'))
debug.addPlugin(cmakeDebug)