]>
Commit | Line | Data |
---|---|---|
18e073a8 | 1 | // Automatically generated SETUP.C for @PARMODULE@ |
2 | ||
3 | Int_t SETUP() | |
4 | { | |
5 | TString buf; | |
6 | const char *wd = gSystem->WorkingDirectory(); | |
7 | ||
8 | // Set include path for CINT (PARfile is unpacked as a subfolder of current workdir) | |
0c9d4db8 | 9 | // TODO: prepend path instead of appending (not currently supported by ROOT!) |
18e073a8 | 10 | buf.Form(".include %s", wd); |
11 | gROOT->ProcessLine(buf.Data()); | |
12 | ||
0c9d4db8 | 13 | // Prepend include path for compiled code |
18e073a8 | 14 | buf.Form("-I%s %s", wd, gSystem->GetIncludePath()); |
15 | gSystem->SetIncludePath(buf.Data()); | |
16 | ||
17 | // Prepend library path | |
18 | buf.Form("%s:%s", wd, gSystem->GetDynamicPath()); | |
19 | gSystem->SetDynamicPath(buf.Data()); | |
20 | ||
0c9d4db8 | 21 | // Add our rootmap |
22 | // TODO: disabled because it triggers actual library loading wherever it finds nested classes! | |
23 | // buf.Form("%s/lib@PARMODULE@.rootmap", wd); | |
24 | // gInterpreter->UnloadLibraryMap("lib@PARMODULE@"); | |
25 | // gInterpreter->LoadLibraryMap(buf.Data()); | |
18e073a8 | 26 | |
0c9d4db8 | 27 | // Note: there is no need to actually load the library thanks to the rootmap |
18e073a8 | 28 | |
29 | return 0; | |
b24da1d3 | 30 | } |