Beispiel #1
0
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' ) )

release.addPlugin( cmakeRelease )
release.addPlugin( CTest() )
release.addPlugin( CPack() )

# add external contributor
Beispiel #2
0
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'))

release.addPlugin(cmakeRelease)
release.addPlugin(CTest())
release.addPlugin(CPack())
Beispiel #3
0
from core.helpers.BoilerPlate import BuildProject
from core.Configuration import Configuration
from core.plugins.Preprocessor import Preprocessor
from core.helpers.PathResolver import PathResolver
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.environments.Environments import Environments
from core.plugins.DoxygenGenerator import DoxygenGenerator

build, project = BuildProject(name="Charm", version="1.6.0-master", url="git://github.com/KDAB/Charm.git")

sharedDebug = Environments(["Qt-4.[67].?-Shared-Debug"], "Qt 4 Shared Debug", project)
sharedDebug.setOptional(True)
debug = Configuration("Debug", sharedDebug)
cmakeDebug = CMakeBuilder()
cmakeDebug.addCMakeVariable(CMakeVariable("CHARM_TIMESHEET_TOOLS", "TRUE", "BOOL"))
cmakeDebug.addCMakeVariable(CMakeVariable("CMAKE_BUILD_TYPE", "debug", "STRING"))
debug.addPlugin(CTest())
debug.addPlugin(cmakeDebug)

sharedRelease = Environments(["Qt-4.[67].?"], "Qt 4 Shared Release", project)
release = Configuration("Release", sharedRelease)
cmakeRelease = CMakeBuilder()
cmakeRelease.addCMakeVariable(CMakeVariable("CMAKE_BUILD_TYPE", "release", "STRING"))
release.addPlugin(cmakeRelease)
release.addPlugin(CTest())
release.addPlugin(CPack(licenseFile="License.txt"))

# publish doxygen documentation:
prep = Preprocessor(
Beispiel #4
0
from core.Configuration import Configuration
from core.helpers.PathResolver import PathResolver
from core.plugins.publishers.RSyncPublisher import RSyncPublisher
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.environments.Environments import Environments

build, project = BuildProject( 'Charm', 'git://github.com/KDAB/Charm.git', '1.4.0', build = 'Charm Build' )

# helper variable to set a CMake parameter
enableCharmTools = CMakeVariable( 'CHARM_ENABLE_TOOLS_BUILD', 'TRUE', 'BOOL' )

sharedDebug = Environments( [ 'Qt-4.[67].?-Shared-Debug' ], 'Qt 4 Shared Debug', project )
debug = Configuration( 'Debug', sharedDebug, )
cmakeDebug = CMakeBuilder()
cmakeDebug.addCMakeVariable( enableCharmTools )
debug.addPlugin( cmakeDebug )

sharedRelease = Environments( [ 'Qt-4.[67].?-Shared-Release' ], 'Qt 4 Shared Release', project )
release = Configuration( 'Release', sharedRelease )
cmakeRelease = CMakeBuilder()
cmakeRelease.addCMakeVariable( enableCharmTools )
release.addPlugin( cmakeRelease )
release.addPlugin( CTest() )
release.addPlugin( CPack( licenseFile = 'License.txt' ) )

# add a RSync publisher (remember to set the default upload location in the configuration file!):
project.addPlugin( RSyncPublisher( localDir = PathResolver( project.getPackagesDir ) ) )

build.build()