ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
rootcling_stage1.cxx
Go to the documentation of this file.
1
// Authors: Axel Naumann, Philippe Canal, Danilo Piparo
2
3
/*************************************************************************
4
* Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
11
#include "
rootcling_impl.h
"
12
#include "RConfigure.h"
13
#include <
ROOT/RConfig.hxx
>
14
#include <cstdlib>
15
#include <string>
16
17
extern
"C"
{
18
R__DLLEXPORT
void
usedToIdentifyRootClingByDlSym
() {}
19
}
20
21
// force compiler to emit symbol for function above
22
static
void
(*
dlsymaddr
)() = &
usedToIdentifyRootClingByDlSym
;
23
24
static
const
char
*
GetIncludeDir
() {
25
static
std::string incdir = CMAKE_BINARY_DIR
"/include"
;
26
return
incdir.c_str();
27
}
28
29
static
const
char
*
GetEtcDir
() {
30
static
std::string etcdir = CMAKE_BINARY_DIR
"/etc"
;
31
return
etcdir.c_str();
32
}
33
34
int
main
(
int
argc,
char
**argv)
35
{
36
(
void
)
dlsymaddr
;
// avoid unused variable warning
37
38
ROOT::Internal::RootCling::DriverConfig
config
{};
39
40
config
.fBuildingROOTStage1 =
true
;
41
config
.fTROOT__GetIncludeDir = &
GetIncludeDir
;
42
config
.fTROOT__GetEtcDir = &
GetEtcDir
;
43
44
return
ROOT_rootcling_Driver
(argc, argv,
config
);
45
}
RConfig.hxx
void
#define void
Definition
Tailor.h:179
main
int main()
Definition
functioncalls_main.cxx:68
rootcling_impl.h
ROOT_rootcling_Driver
int ROOT_rootcling_Driver(int argc, char **argv, const ROOT::Internal::RootCling::DriverConfig &config)
Definition
rootcling_impl.cxx:6079
R__DLLEXPORT
#define R__DLLEXPORT
Definition
rootcling_impl.h:41
GetIncludeDir
static const char * GetIncludeDir()
Definition
rootcling_stage1.cxx:24
GetEtcDir
static const char * GetEtcDir()
Definition
rootcling_stage1.cxx:29
usedToIdentifyRootClingByDlSym
R__DLLEXPORT void usedToIdentifyRootClingByDlSym()
Definition
rootcling_stage1.cxx:18
dlsymaddr
static void(* dlsymaddr)()
Definition
rootcling_stage1.cxx:22
ROOT::Internal::RootCling::DriverConfig
Definition
rootcling_impl.h:18
config
Definition
ZDeflate.c:138
core
rootcling_stage1
src
rootcling_stage1.cxx
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1