Exemplo n.º 1
0
 def preCheckDeps(self):
     BaseILC.preCheckDeps(self)
     if( self.mode == "install" ):
         if self.cmakeBoolOptionIsSet( "MARLIN_GUI" ):
             if( sys.platform != "mac" and sys.platform != "darwin" ):
                 self.addExternalDependency( ["QT"] )
             self.reqfiles.append(["bin/MarlinGUI"])
Exemplo n.º 2
0
    def preCheckDeps(self):
        BaseILC.preCheckDeps(self)

        if( self.mode == "install" ):

            if self.cmakeBoolOptionIsSet( "GEANT4_USE_SYSTEM_CLHEP" ):

                if not self.envcmake.has_key('CLHEP_ROOT_DIR'):

                    self.addExternalDependency( ["CLHEP"] )

                    clhepmod = self.parent.module("CLHEP")
                    if not clhepmod:
                        self.abort( "please set GEANT4_USE_SYSTEM_CLHEP=OFF or add CLHEP to your ilcinstall cfg file")

                    self.envcmake[ "CLHEP_ROOT_DIR"] = clhepmod.installPath

            if self.cmakeBoolOptionIsSet( "GEANT4_USE_QT" ):

                if not self.envcmake.has_key('QT_QMAKE_EXECUTABLE'):

                    self.addExternalDependency( ["QT"] )

                    qtmod = self.parent.module("QT")
                    if not qtmod:
                        self.abort( "please set QT_QMAKE_EXECUTABLE if using option GEANT4_USE_QT or add QT to your ilcinstall cfg file")
                    
                    self.envcmake[ "QT_QMAKE_EXECUTABLE"] = qtmod.installPath + "/bin/qmake"
                else:
                    self.envcmake["QT_QMAKE_EXECUTABLE"]=fixPath( self.envcmake["QT_QMAKE_EXECUTABLE"] )
                    if not os.path.exists( self.envcmake["QT_QMAKE_EXECUTABLE"] ):
                        self.abort( "QT_QMAKE_EXECUTABLE points to an invalid location: " + self.envcmake["QT_QMAKE_EXECUTABLE"] )



            #if self.cmakeBoolOptionIsSet( "GEANT4_USE_GDML" ):

            #    if not self.envcmake.has_key( "XERCESC_INCLUDE_DIR" ):
            #        self.abort( "XERCESC_INCLUDE_DIR not specified" )

            #    self.envcmake["XERCESC_INCLUDE_DIR"]=fixPath( self.envcmake["XERCESC_INCLUDE_DIR"] )

            #    if not os.path.exists( self.envcmake["XERCESC_INCLUDE_DIR"] ):
            #        self.abort( "XERCESC_INCLUDE_DIR points to an invalid location: " + self.envcmake["XERCESC_INCLUDE_DIR"] )

            #    if not self.envcmake.has_key( "XERCESC_LIBRARY" ):
            #        self.abort( "XERCESC_LIBRARY not specified" )

            #    self.envcmake["XERCESC_LIBRARY"]=fixPath( self.envcmake["XERCESC_LIBRARY"] )

            #    if not os.path.exists( self.envcmake["XERCESC_LIBRARY"] ):
            #        self.abort( "XERCESC_LIBRARY points to an invalid location: " + self.envcmake["XERCESC_LIBRARY"] )


            if self.envcmake.has_key( "XERCESC_ROOT_DIR" ):
                import platform
                if platform.architecture()[0] == '64bit':
                    self.envpath["LD_LIBRARY_PATH"].append( self.envcmake[ "XERCESC_ROOT_DIR" ] + "/lib64" )
                else:
                    self.envpath["LD_LIBRARY_PATH"].append( self.envcmake[ "XERCESC_ROOT_DIR" ] + "/lib" )
Exemplo n.º 3
0
 def preCheckDeps(self):
     BaseILC.preCheckDeps(self)
    
     if( self.mode == "install" ):
         # tests
         if( self.makeTests ):
             self.envcmake.setdefault("BUILD_LCIO_EXAMPLES","ON")
             self.envcmake.setdefault("BUILD_F77_TESTJOBS","ON")
           
     # check if java's required
     if ( self.cmakeBoolOptionIsSet( "LCIO_GENERATE_HEADERS" ) or self.cmakeBoolOptionIsSet( "INSTALL_JAR" ) ):
         self.addExternalDependency( ["Java"] )
Exemplo n.º 4
0
    def preCheckDeps(self):
        BaseILC.preCheckDeps(self)
       
        if( self.mode == "install" ):

            # tests
            if( self.makeTests ):
                self.envcmake.setdefault("BUILD_LCIO_EXAMPLES","ON")
                self.envcmake.setdefault("BUILD_F77_TESTJOBS","ON")
                
        # check if java's required
        if ( self.cmakeBoolOptionIsSet( "LCIO_GENERATE_HEADERS" ) or self.cmakeBoolOptionIsSet( "INSTALL_JAR" ) ):
            self.addExternalDependency( ["Java"] )
Exemplo n.º 5
0
 def preCheckDeps(self):
     BaseILC.preCheckDeps(self)
Exemplo n.º 6
0
 def preCheckDeps(self):
     BaseILC.preCheckDeps(self)                    
Exemplo n.º 7
0
    def preCheckDeps(self):
        BaseILC.preCheckDeps(self)

        if Version(self.version) < '0.14':
            self.addExternalDependency(["Java"])
Exemplo n.º 8
0
    def preCheckDeps(self):
        BaseILC.preCheckDeps(self)

        if Version( self.version ) < '0.14':
            self.addExternalDependency( ["Java"] )
Exemplo n.º 9
0
    def preCheckDeps(self):
        BaseILC.preCheckDeps(self)

        if (self.mode == "install"):

            if self.cmakeBoolOptionIsSet("GEANT4_USE_SYSTEM_CLHEP"):

                if not self.envcmake.has_key('CLHEP_ROOT_DIR'):

                    self.addExternalDependency(["CLHEP"])

                    clhepmod = self.parent.module("CLHEP")
                    if not clhepmod:
                        self.abort(
                            "please set GEANT4_USE_SYSTEM_CLHEP=OFF or add CLHEP to your ilcinstall cfg file"
                        )

                    self.envcmake["CLHEP_ROOT_DIR"] = clhepmod.installPath

            if self.cmakeBoolOptionIsSet("GEANT4_USE_QT"):

                if not self.envcmake.has_key('QT_QMAKE_EXECUTABLE'):

                    self.addExternalDependency(["Qt5"])

                    qtmod = self.parent.module("Qt5")
                    if not qtmod:
                        self.abort(
                            "please set QT_QMAKE_EXECUTABLE if using option GEANT4_USE_QT or add QT to your ilcinstall cfg file"
                        )

                    self.envcmake[
                        "QT_QMAKE_EXECUTABLE"] = qtmod.installPath + "/bin/qmake"
                else:
                    self.envcmake["QT_QMAKE_EXECUTABLE"] = fixPath(
                        self.envcmake["QT_QMAKE_EXECUTABLE"])
                    if not os.path.exists(
                            self.envcmake["QT_QMAKE_EXECUTABLE"]):
                        self.abort(
                            "QT_QMAKE_EXECUTABLE points to an invalid location: "
                            + self.envcmake["QT_QMAKE_EXECUTABLE"])

            #if self.cmakeBoolOptionIsSet( "GEANT4_USE_GDML" ):

            #    if not self.envcmake.has_key( "XERCESC_INCLUDE_DIR" ):
            #        self.abort( "XERCESC_INCLUDE_DIR not specified" )

            #    self.envcmake["XERCESC_INCLUDE_DIR"]=fixPath( self.envcmake["XERCESC_INCLUDE_DIR"] )

            #    if not os.path.exists( self.envcmake["XERCESC_INCLUDE_DIR"] ):
            #        self.abort( "XERCESC_INCLUDE_DIR points to an invalid location: " + self.envcmake["XERCESC_INCLUDE_DIR"] )

            #    if not self.envcmake.has_key( "XERCESC_LIBRARY" ):
            #        self.abort( "XERCESC_LIBRARY not specified" )

            #    self.envcmake["XERCESC_LIBRARY"]=fixPath( self.envcmake["XERCESC_LIBRARY"] )

            #    if not os.path.exists( self.envcmake["XERCESC_LIBRARY"] ):
            #        self.abort( "XERCESC_LIBRARY points to an invalid location: " + self.envcmake["XERCESC_LIBRARY"] )

            if self.envcmake.has_key("XERCESC_ROOT_DIR"):
                import platform
                if platform.architecture()[0] == '64bit':
                    self.envpath["LD_LIBRARY_PATH"].append(
                        self.envcmake["XERCESC_ROOT_DIR"] + "/lib64")
                else:
                    self.envpath["LD_LIBRARY_PATH"].append(
                        self.envcmake["XERCESC_ROOT_DIR"] + "/lib")