summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-09-14 13:51:04 +0000
committerrandomdan <randomdan@localhost>2011-09-14 13:51:04 +0000
commit43bba354fcb25d6adfc460138ae7b8e8b376d5ca (patch)
tree28e7116b438b91ad36d65fb6a721b1eb614783c4
parentUse lchown, not chown (diff)
downloadnetfs-43bba354fcb25d6adfc460138ae7b8e8b376d5ca.tar.bz2
netfs-43bba354fcb25d6adfc460138ae7b8e8b376d5ca.tar.xz
netfs-43bba354fcb25d6adfc460138ae7b8e8b376d5ca.zip
Add precompiled headers
-rw-r--r--netfs/Jamfile.jam35
-rw-r--r--netfs/daemon.cpp1
-rw-r--r--netfs/daemonConfig.cpp1
-rw-r--r--netfs/daemonDirs.cpp1
-rw-r--r--netfs/daemonFileSystem.cpp1
-rw-r--r--netfs/daemonFiles.cpp1
-rw-r--r--netfs/daemonMisc.cpp1
-rw-r--r--netfs/daemonModule.cpp1
-rw-r--r--netfs/daemonService.cpp1
-rw-r--r--netfs/daemonSystem.cpp1
-rw-r--r--netfs/entCache.cpp1
-rw-r--r--netfs/fuse.cpp1
-rw-r--r--netfs/fuseConfig.cpp1
-rw-r--r--netfs/fuseDirs.cpp1
-rw-r--r--netfs/fuseFiles.cpp1
-rw-r--r--netfs/fuseMisc.cpp1
-rw-r--r--netfs/fuseSystem.cpp1
-rw-r--r--netfs/fuseapp.cpp1
-rw-r--r--netfs/pchCommon.hpp25
-rw-r--r--netfs/pchDaemon.hpp13
-rw-r--r--netfs/pchFuse.hpp14
21 files changed, 104 insertions, 0 deletions
diff --git a/netfs/Jamfile.jam b/netfs/Jamfile.jam
index 83a86cb..1c6b938 100644
--- a/netfs/Jamfile.jam
+++ b/netfs/Jamfile.jam
@@ -16,6 +16,7 @@ lib netfsComms :
;
lib netfsCommon :
+ pchCommon
entCache.cpp ../libmisc/xml.cpp :
<define>_FILE_OFFSET_BITS=64
<include>../libmisc
@@ -23,7 +24,40 @@ lib netfsCommon :
<implicit-dependency>netfsComms
;
+cpp-pch pchFuse : pchCommon pchFuse.hpp :
+ <define>_FILE_OFFSET_BITS=64
+ <include>../libmisc
+ <implicit-dependency>netfsComms
+ <library>netfsComms
+ <library>boost_thread
+ <library>fuse
+ <library>Ice
+ <library>libxml2
+ ;
+
+cpp-pch pchDaemon : pchCommon pchDaemon.hpp :
+ <define>_FILE_OFFSET_BITS=64
+ <include>../libmisc
+ <implicit-dependency>netfsComms
+ <library>netfsComms
+ <library>boost_thread
+ <library>Ice
+ <library>libxml2
+ ;
+
+cpp-pch pchCommon : pchCommon.hpp :
+ <define>_FILE_OFFSET_BITS=64
+ <include>../libmisc
+ <implicit-dependency>netfsComms
+ <library>netfsComms
+ <library>boost_thread
+ <library>fuse
+ <library>Ice
+ <library>libxml2
+ ;
+
exe netfs :
+ pchFuse
[ glob fuse*.cpp ]
:
<define>_FILE_OFFSET_BITS=64
@@ -38,6 +72,7 @@ exe netfs :
;
lib netfsd :
+ pchDaemon
[ glob daemon*.cpp ]
:
<define>_FILE_OFFSET_BITS=64
diff --git a/netfs/daemon.cpp b/netfs/daemon.cpp
index cd30b18..65b9d4e 100644
--- a/netfs/daemon.cpp
+++ b/netfs/daemon.cpp
@@ -1,3 +1,4 @@
+#include "pchDaemon.hpp"
#include <Ice/Ice.h>
#include <boost/foreach.hpp>
#include <boost/crc.hpp>
diff --git a/netfs/daemonConfig.cpp b/netfs/daemonConfig.cpp
index f0810f7..0d05c44 100644
--- a/netfs/daemonConfig.cpp
+++ b/netfs/daemonConfig.cpp
@@ -1,3 +1,4 @@
+#include "pchDaemon.hpp"
#include "daemonConfig.h"
#include <string.h>
diff --git a/netfs/daemonDirs.cpp b/netfs/daemonDirs.cpp
index 3d2cd3f..1fb3965 100644
--- a/netfs/daemonDirs.cpp
+++ b/netfs/daemonDirs.cpp
@@ -1,3 +1,4 @@
+#include "pchDaemon.hpp"
#include <dirent.h>
#include <errno.h>
#include <map>
diff --git a/netfs/daemonFileSystem.cpp b/netfs/daemonFileSystem.cpp
index 2853268..f0d3546 100644
--- a/netfs/daemonFileSystem.cpp
+++ b/netfs/daemonFileSystem.cpp
@@ -1,3 +1,4 @@
+#include "pchDaemon.hpp"
#include "daemonFileSystem.h"
FileSystemServer::FileSystemServer(DaemonGlobalStatePtr dgs) :
diff --git a/netfs/daemonFiles.cpp b/netfs/daemonFiles.cpp
index c78be9b..75d9058 100644
--- a/netfs/daemonFiles.cpp
+++ b/netfs/daemonFiles.cpp
@@ -1,3 +1,4 @@
+#include "pchDaemon.hpp"
#include <errno.h>
#include <map>
#include <fcntl.h>
diff --git a/netfs/daemonMisc.cpp b/netfs/daemonMisc.cpp
index d6197a3..e548606 100644
--- a/netfs/daemonMisc.cpp
+++ b/netfs/daemonMisc.cpp
@@ -1,3 +1,4 @@
+#include "pchDaemon.hpp"
#include <errno.h>
#include <map>
#include <unistd.h>
diff --git a/netfs/daemonModule.cpp b/netfs/daemonModule.cpp
index bb9f1f0..8be108c 100644
--- a/netfs/daemonModule.cpp
+++ b/netfs/daemonModule.cpp
@@ -1,3 +1,4 @@
+#include "pchDaemon.hpp"
#include "daemonModule.h"
DaemonModule::DaemonModule(DaemonGlobalStatePtr d) :
diff --git a/netfs/daemonService.cpp b/netfs/daemonService.cpp
index 0daf992..bb13fbc 100644
--- a/netfs/daemonService.cpp
+++ b/netfs/daemonService.cpp
@@ -1,3 +1,4 @@
+#include "pchDaemon.hpp"
#include "daemonService.h"
ServiceServer::ServiceServer(int16_t hs, DaemonGlobalStatePtr dgs) :
diff --git a/netfs/daemonSystem.cpp b/netfs/daemonSystem.cpp
index 0e89e51..1f683d6 100644
--- a/netfs/daemonSystem.cpp
+++ b/netfs/daemonSystem.cpp
@@ -1,3 +1,4 @@
+#include "pchDaemon.hpp"
#include <errno.h>
#include <sys/statvfs.h>
#include <sys/vfs.h>
diff --git a/netfs/entCache.cpp b/netfs/entCache.cpp
index f79146f..d79de29 100644
--- a/netfs/entCache.cpp
+++ b/netfs/entCache.cpp
@@ -1,3 +1,4 @@
+#include "pchCommon.hpp"
#include "entCache.h"
#include <netfsComms.h>
diff --git a/netfs/fuse.cpp b/netfs/fuse.cpp
index 7a1e141..1b8493a 100644
--- a/netfs/fuse.cpp
+++ b/netfs/fuse.cpp
@@ -1,3 +1,4 @@
+#include "pchFuse.hpp"
#include <string.h>
#include <boost/foreach.hpp>
#include "fuse.h"
diff --git a/netfs/fuseConfig.cpp b/netfs/fuseConfig.cpp
index ec364cf..4030738 100644
--- a/netfs/fuseConfig.cpp
+++ b/netfs/fuseConfig.cpp
@@ -1,3 +1,4 @@
+#include "pchFuse.hpp"
#include "fuseConfig.h"
#include <string.h>
diff --git a/netfs/fuseDirs.cpp b/netfs/fuseDirs.cpp
index 3f80331..28b8363 100644
--- a/netfs/fuseDirs.cpp
+++ b/netfs/fuseDirs.cpp
@@ -1,3 +1,4 @@
+#include "pchFuse.hpp"
#include "fuse.h"
#include "misc.h"
diff --git a/netfs/fuseFiles.cpp b/netfs/fuseFiles.cpp
index d8aa55f..40709bd 100644
--- a/netfs/fuseFiles.cpp
+++ b/netfs/fuseFiles.cpp
@@ -1,3 +1,4 @@
+#include "pchFuse.hpp"
#include <string.h>
#include "fuse.h"
diff --git a/netfs/fuseMisc.cpp b/netfs/fuseMisc.cpp
index 1745240..2cb79c0 100644
--- a/netfs/fuseMisc.cpp
+++ b/netfs/fuseMisc.cpp
@@ -1,3 +1,4 @@
+#include "pchFuse.hpp"
#include "fuse.h"
#include <string.h>
diff --git a/netfs/fuseSystem.cpp b/netfs/fuseSystem.cpp
index 392203a..bcb9c79 100644
--- a/netfs/fuseSystem.cpp
+++ b/netfs/fuseSystem.cpp
@@ -1,3 +1,4 @@
+#include "pchFuse.hpp"
#include "fuse.h"
int
diff --git a/netfs/fuseapp.cpp b/netfs/fuseapp.cpp
index 39718d1..628f4c2 100644
--- a/netfs/fuseapp.cpp
+++ b/netfs/fuseapp.cpp
@@ -1,3 +1,4 @@
+#include "pchFuse.hpp"
#include "fuseapp.h"
#include <errno.h>
#include <assert.h>
diff --git a/netfs/pchCommon.hpp b/netfs/pchCommon.hpp
new file mode 100644
index 0000000..5d4270b
--- /dev/null
+++ b/netfs/pchCommon.hpp
@@ -0,0 +1,25 @@
+#ifdef BOOST_BUILD_PCH_ENABLED
+#ifndef NETFS_PCH
+#define NETFS_PCH
+
+#include <boost/foreach.hpp>
+#include <boost/intrusive_ptr.hpp>
+#include <boost/thread/locks.hpp>
+#include <boost/thread/mutex.hpp>
+#include <boost/thread/shared_mutex.hpp>
+#include <boost/tuple/tuple.hpp>
+#include "entCache.h"
+#include <exception>
+#include "guidmap.h"
+#include <Ice/Ice.h>
+#include <intrusivePtrBase.h>
+#include <map>
+#include "netfsComms.h"
+#include <set>
+#include <string>
+#include <typeinfo>
+#include "xml.h"
+
+#endif
+#endif
+
diff --git a/netfs/pchDaemon.hpp b/netfs/pchDaemon.hpp
new file mode 100644
index 0000000..cece5cb
--- /dev/null
+++ b/netfs/pchDaemon.hpp
@@ -0,0 +1,13 @@
+#ifdef BOOST_BUILD_PCH_ENABLED
+#ifndef NETFS_DAEMON_PCH
+#define NETFS_DAEMON_PCH
+
+#include "pchCommon.hpp"
+#include <boost/filesystem/path.hpp>
+#include "daemon.h"
+#include <IceBox/IceBox.h>
+
+#endif
+#endif
+
+
diff --git a/netfs/pchFuse.hpp b/netfs/pchFuse.hpp
new file mode 100644
index 0000000..d563b57
--- /dev/null
+++ b/netfs/pchFuse.hpp
@@ -0,0 +1,14 @@
+#ifdef BOOST_BUILD_PCH_ENABLED
+#ifndef NETFS_FUSE_PCH
+#define NETFS_FUSE_PCH
+
+#include "pchCommon.hpp"
+#include "fuseapp.h"
+#include "fuseConfig.h"
+#include <fuse.h>
+
+#endif
+#endif
+
+
+