about summary refs log blame commit diff
path: root/src/libstore/globals.hh
blob: 7f88d5c53b27cd3705b81a78d8bb32997e9bae99 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                   
                  


                    

                 


                                                                
 

                                       
                                                                  

                        


                                                         


                                                                
 




                                                             



                                                                    



                                                                     


                                       


                                                                
 
                         
#ifndef __GLOBALS_H
#define __GLOBALS_H

#include <string>
#include "util.hh"

using namespace std;

/* Path names. */

/* nixStore is the directory where we generally store atomic and
   derived files. */
extern string nixStore;

extern string nixDataDir; /* !!! fix */

/* nixLogDir is the directory where we log various operations. */ 
extern string nixLogDir;

/* nixStateDir is the directory where state is stored. */
extern string nixStateDir;

/* nixDBPath is the path name of our Berkeley DB environment. */
extern string nixDBPath;


/* Misc. global flags. */

/* Whether to keep temporary directories of failed builds. */
extern bool keepFailed;

/* Whether to keep building subgoals when a sibling (another subgoal
   of the same goal) fails. */
extern bool keepGoing;

/* Whether, if we cannot realise the known closure corresponding to a
   derivation, we should try to normalise the derivation instead. */
extern bool tryFallback;

/* Verbosity level for build output. */
extern Verbosity buildVerbosity;

/* Maximum number of parallel build jobs.  0 means unlimited. */
extern unsigned int maxBuildJobs;


#endif /* !__GLOBALS_H */