Logo ROOT  
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
17extern "C" {
19}
20
21// force compiler to emit symbol for function above
23
24static const char *GetIncludeDir() {
25 static std::string incdir = CMAKE_BINARY_DIR "/include";
26 return incdir.c_str();
27}
28
29static const char *GetEtcDir() {
30 static std::string etcdir = CMAKE_BINARY_DIR "/etc";
31 return etcdir.c_str();
32}
33
34int main(int argc, char **argv)
35{
36 (void) dlsymaddr; // avoid unused variable warning
37
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}
#define void
Definition Tailor.h:179
int main()
int ROOT_rootcling_Driver(int argc, char **argv, const ROOT::Internal::RootCling::DriverConfig &config)
#define R__DLLEXPORT
static const char * GetIncludeDir()
static const char * GetEtcDir()
R__DLLEXPORT void usedToIdentifyRootClingByDlSym()
static void(* dlsymaddr)()