Beispiel #1
0
// The darwin linker processes input files in two phases.  The first phase
// links in all object (.o) files in command line order. The second phase
// links in libraries in command line order.
// In this function we reorder the input files so that all the object files
// comes before any library file. We also make a group for the library files
// so that the Resolver will reiterate over the libraries as long as we find
// new undefines from libraries.
void MachOLinkingContext::finalizeInputFiles() {
    std::vector<std::unique_ptr<Node>> &elements = getNodes();
    std::stable_sort(elements.begin(), elements.end(),
                     [](const std::unique_ptr<Node> &a,
    const std::unique_ptr<Node> &b) {
        return !isLibrary(a) && isLibrary(b);
    });
    size_t numLibs = std::count_if(elements.begin(), elements.end(), isLibrary);
    elements.push_back(llvm::make_unique<GroupEnd>(numLibs));
}
Beispiel #2
0
//==============================================================================
void Project::valueTreePropertyChanged (ValueTree& tree, const Identifier& property)
{
    if (isLibrary())
        getJuceLinkageModeValue() = notLinkedToJuce;

    changed();
}
Beispiel #3
0
QCString NamespaceDef::compoundTypeString() const
{
  SrcLangExt lang = getLanguage();
  if (lang==SrcLangExt_Java || lang==SrcLangExt_CSharp)
  {
    return "package";
  }
  else if (lang==SrcLangExt_Fortran)
  {
    return "module";
  }
  else if (lang==SrcLangExt_IDL)
  {
    if (isModule())
    {
      return "module";
    }
    else if (isConstantGroup())
    {
      return "constants";
    }
    else if (isLibrary())
    {
      return "library";
    }
    else
    {
      err("Internal inconsistency: namespace in IDL not module, library or constant group\n");
    }
  }
  return "";
}
Beispiel #4
0
void g3libs()
{
  cout << "Loading Geant3 libraries ..." << endl;

  if (isLibrary("libdummies.so"))
     gSystem->Load("libdummies.so");
                   // libdummies.so needed from geant3_+vmc version 0.5

  gSystem->Load("libgeant321.so");

  cout << "Loading Geant3 libraries ... finished" << endl;
}
Beispiel #5
0
void loadg4libs() 
{
/// The function to unload Geant4 libraries

  // CLHEP
  gSystem->Load("libCLHEP");
  
  // xerces-c library if GDML is activated
  if ( isSet("G4LIB_BUILD_GDML") ) {
    gSystem->Load("libxerces-c");
  }  

  // Get the string with the list of libraries
  string all_lines;
  GetLinkLine(all_lines);
  
  // Load Geant4 libraries
  cout << "Loading Geant4 libraries (using liblist) ..." << endl;
  HandleLinkLine(all_lines.c_str(),"l");

  // VGM librares
  vgmlibs();
  
  // G4Root library (if available)
  if ( isLibrary("libg4root") ) {
    cout << "Loading g4root library ..." << endl;
    gSystem->Load("libg4root");
  }
    
  // Geant4 VMC library
  cout << "Loading geant4vmc library ..." << endl;
  gSystem->Load("libgeant4vmc");

  // Geant4 VMC GUI library 
  // (if available and Root is not running in batch mode)
  if ( isLibrary("libgeant4vmc_gui") && ! isBatch() ) {
    cout << "Loading geant4vmc_gui library ... " << endl;
    gSystem->Load("libgeant4vmc_gui");
  }  
}
IConstWorkUnit *WsEclWuInfo::ensureWorkUnit()
{
    if (!wuid.length())
        ensureWuid();
    if (wu)
        return wu;
    Owned<IWorkUnitFactory> wf = getWorkUnitFactory();
    wu.setown(wf->openWorkUnit(wuid.sget(), false));
    if (!wu)
        throw MakeStringException(-1, "Could not open workunit: %s", wuid.sget());
    if (isLibrary(wu))
        throw MakeStringException(-1, "%s/%s %s is a library", qsetname.sget(), queryname.sget(), wuid.sget());
    return wu;
}
Beispiel #7
0
void g3libs()
{
/// Macro function for loading Geant3 libraries

  // Load libraries required by Geant3
  gSystem->Load("libEG");
  gSystem->Load("libEGPythia6");
  gSystem->Load("libPythia6");  

  if (isLibrary("libdummies"))
     gSystem->Load("libdummies");
                   // libdummies.so needed from geant3_+vmc version 0.5

  // Load  geant3 library
  gSystem->Load("libgeant321");

  cout << "Loading Geant3 libraries ... finished" << endl;
}
Beispiel #8
0
rootlogon()
{
  gROOT->LoadMacro("$VMCWORKDIR/gconfig/basiclibs.C");
  basiclibs();
  
  // Load Panda libraries
  if(isLibrary("libDpmEvtGen"))gSystem->Load("libDpmEvtGen");
  if(isLibrary("libpythia8"))gSystem->Load("libpythia8");
  if(isLibrary("libFlukaResults"))gSystem->Load("libFlukaResults");
  if(isLibrary("libFairTools"))gSystem->Load("libFairTools");
  if(isLibrary("libGeoBase"))gSystem->Load("libGeoBase");
  if(isLibrary("libParBase"))gSystem->Load("libParBase");
  if(isLibrary("libBase"))gSystem->Load("libBase");
  if(isLibrary("libPhotos")){// these three depend on each other
    gSystem->Load("libPhotos");
    if(isLibrary("libEvtGen")){
      gSystem->Load("libEvtGen");
      if(isLibrary("libEvtGenDirect"))gSystem->Load("libEvtGenDirect");
    }
  }
  if(isLibrary("libPndBase"))gSystem->Load("libPndBase");
  if(isLibrary("libGlobalTasks"))gSystem->Load("libGlobalTasks");
  if(isLibrary("libTrkBase"))gSystem->Load("libTrkBase");
  if(isLibrary("libPndData"))gSystem->Load("libPndData");
  if(isLibrary("libgeneralTools"))gSystem->Load("libgeneralTools");
  if(isLibrary("libbuffers"))gSystem->Load("libbuffers");
  if(isLibrary("libField"))gSystem->Load("libField");
  if(isLibrary("libPassive"))gSystem->Load("libPassive");
  if(isLibrary("libGen"))gSystem->Load("libGen");
  if(isLibrary("libPGen"))gSystem->Load("libPGen");
  if(isLibrary("libEmc"))gSystem->Load("libEmc"); 
  if(isLibrary("libgenfit"))gSystem->Load("libgenfit");
  if(isLibrary("libtrackrep"))gSystem->Load("libtrackrep");
  if(isLibrary("libgenfitAdapters"))gSystem->Load("libgenfitAdapters");
  if(isLibrary("libriemann"))gSystem->Load("libriemann");
  if(isLibrary("libTpcBase"))gSystem->Load("libTpcBase"); 
  if(isLibrary("libTpc"))gSystem->Load("libTpc"); 
  if(isLibrary("libTpcReco"))gSystem->Load("libTpcReco");
  if(isLibrary("libStt"))gSystem->Load("libStt");
  if(isLibrary("libSttReco"))gSystem->Load("libSttReco");
  if(isLibrary("libSds"))gSystem->Load("libSds");
  if(isLibrary("libSdsReco"))gSystem->Load("libSdsReco");
  if(isLibrary("libMvd"))gSystem->Load("libMvd");
  if(isLibrary("libMvdReco"))gSystem->Load("libMvdReco");
  if(isLibrary("libMvdTrk"))gSystem->Load("libMvdTrk");
  if(isLibrary("libSttMvdTracking"))gSystem->Load("libSttMvdTracking");
  if(isLibrary("libGem"))gSystem->Load("libGem");
  if(isLibrary("libFts"))gSystem->Load("libFts");
  if(isLibrary("libTof"))gSystem->Load("libTof");
  if(isLibrary("libDrcProp"))gSystem->Load("libDrcProp");
  if(isLibrary("libDrc"))gSystem->Load("libDrc");
  if(isLibrary("libMdt"))gSystem->Load("libMdt");
  if(isLibrary("libDch"))gSystem->Load("libDch");
  if(isLibrary("libLheTrack"))gSystem->Load("libLheTrack");
  if(isLibrary("libGeane"))gSystem->Load("libGeane");
  if(isLibrary("libRpc"))gSystem->Load("libRpc");
  if(isLibrary("libLumi"))gSystem->Load("libLumi");
  if(isLibrary("libRho"))gSystem->Load("libRho");
  if(isLibrary("libTMVA"))gSystem->Load("libTMVA.so");
  if(isLibrary("libAnalysisTools"))gSystem->Load("libAnalysisTools"); 
  if(isLibrary("libPid"))gSystem->Load("libPid");
  if(isLibrary("librecotasks"))gSystem->Load("librecotasks");
  if(isLibrary("libRecoHits"))gSystem->Load("libRecoHits");
  if(isLibrary("libRecoTasks"))gSystem->Load("libRecoTasks");
  if(isLibrary("libEnDrc"))gSystem->Load("libEnDrc");
  if(isLibrary("libDsk"))gSystem->Load("libDsk");
  if(isLibrary("libGlobal"))gSystem->Load("libGlobal");
  if(isLibrary("libMCMatch"))gSystem->Load("libMCMatch");
  if(isLibrary("libMva"))gSystem->Load("libMva");

  //gSystem->Load("libMemStat");
}