Example #1
0
    def run(self):
        options = self.options
        assembly = self.assembly

        if options.all:
            assembly.selectAllLibraries()
        else:
            assembly.selectLibraries(options.components)

        # display help if no components selected
        if len(assembly.getSelectedLibraries()) == 0:
            PrintFormatter.printInfo("No libraries selected, exiting...")
            self.argumentParser.print_help()
            return

        # info + verification
        assembly.controlData.printSettings()
        libs = [
            lib for lib in assembly.libraries
            if lib.name() in assembly.selectedLibraryNames
        ]
        text = ['%45s     %s' % (lib.name(), lib.repository()) for lib in libs]
        print 'Use the following components:\n ', '\n  '.join(text)

        print ''
        print '*********************************************************************'
        print 'The superbuild will check out and build in [repo/../..], expanded to:'
        print ''
        print '    %s' % assembly.controlData.getRootDir()
        print ''
        print '*********************************************************************'
        print ''

        self._promptToContinue(options.silent_mode)

        assembly.process(checkout=options.full or options.checkout,
                         configure_clean=options.configure_clean,
                         configure=options.full or options.configure,
                         clean=options.clean,
                         build=options.full or options.make)

        #self.cxBuilder.finish()
        PrintFormatter.finish()
Example #2
0
    def run(self):
        options = self.options
        assembly = self.assembly

        if options.all:
            assembly.selectAllLibraries()
        else:
            assembly.selectLibraries(options.components)

        # display help if no components selected
        if len(assembly.getSelectedLibraries()) == 0:
            PrintFormatter.printInfo("No libraries selected, exiting...")
            self.argumentParser.print_help()
            return

        # info + verification
        assembly.controlData.printSettings()
        print "Use the following components:\n ", "\n  ".join(assembly.getSelectedLibraries())

        print ""
        print "*********************************************************************"
        print "The superbuild will check out and build in [repo/../..], expanded to:"
        print ""
        print "    %s" % assembly.controlData.getRootDir()
        print ""
        print "*********************************************************************"
        print ""

        self._promptToContinue(options.silent_mode)

        assembly.process(
            checkout=options.full or options.checkout,
            configure_clean=options.configure_clean,
            configure=options.full or options.configure,
            clean=options.clean,
            build=options.full or options.build,
        )

        # self.cxBuilder.finish()
        PrintFormatter.finish()
Example #3
0
    def run(self):
        options = self.options
        assembly = self.assembly
                
        if options.all:
            assembly.selectAllLibraries()
        else:
            assembly.selectLibraries(options.components)

        # display help if no components selected
        if len(assembly.getSelectedLibraries())==0:
            PrintFormatter.printInfo("No libraries selected, exiting...")
            self.argumentParser.print_help()
            return

        # info + verification
        assembly.controlData.printSettings()
        libs = [lib for lib in assembly.libraries if lib.name() in assembly.selectedLibraryNames]
        text = ['%45s     %s' % (lib.name(), lib.repository()) for lib in libs]
        print 'Use the following components:\n ', '\n  '.join(text)
        
        print ''
        print '*********************************************************************'
        print 'The superbuild will check out and build in [repo/../..], expanded to:'
        print ''
        print '    %s' % assembly.controlData.getRootDir()
        print ''
        print '*********************************************************************'
        print ''
        
        self._promptToContinue(options.silent_mode)
        
        assembly.process(checkout = options.full or options.checkout, 
                         configure_clean = options.configure_clean, 
                         configure = options.full or options.configure, 
                         clean = options.clean, 
                         build = options.full or options.make)        
        
        #self.cxBuilder.finish()
        PrintFormatter.finish()
Example #4
0
 def finish(self):
     PrintFormatter.finish()
Example #5
0
 def finish(self):
     PrintFormatter.finish()