2003-06-16 15:33:38 +02:00
|
|
|
#ifndef __GLOBALS_H
|
|
|
|
#define __GLOBALS_H
|
|
|
|
|
|
|
|
#include <string>
|
2004-01-13 17:35:43 +01:00
|
|
|
#include "util.hh"
|
2003-06-16 15:33:38 +02:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
/* Path names. */
|
|
|
|
|
2003-06-27 15:55:12 +02:00
|
|
|
/* nixStore is the directory where we generally store atomic and
|
|
|
|
derived files. */
|
|
|
|
extern string nixStore;
|
2003-06-16 15:33:38 +02:00
|
|
|
|
2003-07-10 15:41:28 +02:00
|
|
|
extern string nixDataDir; /* !!! fix */
|
|
|
|
|
2003-06-27 15:55:12 +02:00
|
|
|
/* nixLogDir is the directory where we log various operations. */
|
2003-06-16 15:33:38 +02:00
|
|
|
extern string nixLogDir;
|
|
|
|
|
2003-11-19 18:27:16 +01:00
|
|
|
/* nixStateDir is the directory where state is stored. */
|
|
|
|
extern string nixStateDir;
|
|
|
|
|
2003-07-31 15:47:13 +02:00
|
|
|
/* nixDBPath is the path name of our Berkeley DB environment. */
|
|
|
|
extern string nixDBPath;
|
|
|
|
|
2003-06-16 15:33:38 +02:00
|
|
|
|
2003-08-19 11:04:47 +02:00
|
|
|
/* Misc. global flags. */
|
|
|
|
|
|
|
|
/* Whether to keep temporary directories of failed builds. */
|
|
|
|
extern bool keepFailed;
|
|
|
|
|
2004-01-13 17:35:43 +01:00
|
|
|
/* Verbosity level for build output. */
|
|
|
|
extern Verbosity buildVerbosity;
|
|
|
|
|
2004-05-12 16:20:32 +02:00
|
|
|
/* Maximum number of parallel build jobs. 0 means unlimited. */
|
|
|
|
extern unsigned int maxBuildJobs;
|
|
|
|
|
2003-08-19 11:04:47 +02:00
|
|
|
|
2003-06-16 15:33:38 +02:00
|
|
|
#endif /* !__GLOBALS_H */
|