From d194e0fcb15b2919f6dc694b846175c572d659f2 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 1 Sep 2011 19:24:18 +0000 Subject: Add more precompiled headers --- project2/cgi/Jamfile.jam | 10 +++++++++ project2/cgi/cgiAppEngine.cpp | 1 + project2/cgi/cgiCommon.cpp | 1 + project2/cgi/cgiEnvironment.cpp | 1 + project2/cgi/cgiHttpHeader.cpp | 1 + project2/cgi/cgiStageCustomError.cpp | 1 + project2/cgi/cgiStageCustomNotFound.cpp | 1 + project2/cgi/cgiStageDefaultError.cpp | 1 + project2/cgi/cgiStageDefaultNotFound.cpp | 1 + project2/cgi/cgiStageInitial.cpp | 1 + project2/cgi/cgiStagePresent.cpp | 1 + project2/cgi/cgiStageRequest.cpp | 1 + project2/cgi/pch.hpp | 28 +++++++++++++++++++++++++ project2/console/Jamfile.jam | 6 ++++++ project2/console/consoleAppEngine.cpp | 1 + project2/console/consoleEnvironment.cpp | 1 + project2/console/consolePresenter.cpp | 1 + project2/console/p2consoleMain.cpp | 1 + project2/console/pch.hpp | 20 ++++++++++++++++++ project2/sql/Jamfile.jam | 7 +++++++ project2/sql/connectionLoader.h | 5 +++++ project2/sql/pch.hpp | 35 ++++++++++++++++++++++++++++++++ project2/sql/rdbmsDataSource.cpp | 1 + project2/sql/sqlCache.cpp | 1 + project2/sql/sqlCheck.cpp | 1 + project2/sql/sqlHandleAsVariableType.cpp | 1 + project2/sql/sqlMergeTask.cpp | 1 + project2/sql/sqlRows.cpp | 1 + project2/sql/sqlTask.cpp | 1 + project2/sql/sqlVariableBinder.cpp | 1 + project2/sql/sqlWriter.cpp | 1 + project2/sql/tablepatch.cpp | 1 + project2/xml/Jamfile.jam | 6 ++++++ project2/xml/pch.hpp | 27 ++++++++++++++++++++++++ project2/xml/rawView.cpp | 1 + project2/xml/sessionXml.cpp | 1 + project2/xml/transformHtml.cpp | 1 + project2/xml/transformText.cpp | 1 + project2/xml/xmlCache.cpp | 1 + project2/xml/xmlMemCache.cpp | 1 + project2/xml/xmlPresenter.cpp | 1 + project2/xml/xmlRawRows.cpp | 1 + project2/xml/xmlRows.cpp | 1 + project2/xml/xslPreFetch.cpp | 1 + project2/xml/xslRows.cpp | 1 + project2/xml/xslRowsCache.cpp | 1 + 46 files changed, 181 insertions(+) create mode 100644 project2/cgi/pch.hpp create mode 100644 project2/console/pch.hpp create mode 100644 project2/sql/pch.hpp create mode 100644 project2/xml/pch.hpp diff --git a/project2/cgi/Jamfile.jam b/project2/cgi/Jamfile.jam index fe5a3d2..261e992 100644 --- a/project2/cgi/Jamfile.jam +++ b/project2/cgi/Jamfile.jam @@ -7,7 +7,17 @@ lib cgicc : : cgicc ; lib fcgi : : fcgi ; lib fcgi++ : : fcgi++ ; +cpp-pch pch : pch.hpp : + ../../libmisc + cgicc + libxmlpp + ../common//p2common + boost_program_options + boost_filesystem + ../xml//p2xml + ; lib p2web : + pch [ glob cgi*.cpp ] : ../libmisc diff --git a/project2/cgi/cgiAppEngine.cpp b/project2/cgi/cgiAppEngine.cpp index c01e4ac..4978c0c 100644 --- a/project2/cgi/cgiAppEngine.cpp +++ b/project2/cgi/cgiAppEngine.cpp @@ -1,3 +1,4 @@ +#include #include "cgiAppEngine.h" #include #include diff --git a/project2/cgi/cgiCommon.cpp b/project2/cgi/cgiCommon.cpp index 89808e1..3703c07 100644 --- a/project2/cgi/cgiCommon.cpp +++ b/project2/cgi/cgiCommon.cpp @@ -1,3 +1,4 @@ +#include #include "cgiCommon.h" #include "logger.h" #include diff --git a/project2/cgi/cgiEnvironment.cpp b/project2/cgi/cgiEnvironment.cpp index 039ff98..541e7ae 100644 --- a/project2/cgi/cgiEnvironment.cpp +++ b/project2/cgi/cgiEnvironment.cpp @@ -1,3 +1,4 @@ +#include #include "cgiEnvironment.h" #include "appEngine.h" #include "exceptions.h" diff --git a/project2/cgi/cgiHttpHeader.cpp b/project2/cgi/cgiHttpHeader.cpp index 37a48c9..e82a882 100644 --- a/project2/cgi/cgiHttpHeader.cpp +++ b/project2/cgi/cgiHttpHeader.cpp @@ -1,3 +1,4 @@ +#include #include "cgiHttpHeader.h" #include diff --git a/project2/cgi/cgiStageCustomError.cpp b/project2/cgi/cgiStageCustomError.cpp index b223323..8b4b347 100644 --- a/project2/cgi/cgiStageCustomError.cpp +++ b/project2/cgi/cgiStageCustomError.cpp @@ -1,3 +1,4 @@ +#include #include "cgiAppEngine.h" #include "cgiEnvironment.h" #include "cgiHttpHeader.h" diff --git a/project2/cgi/cgiStageCustomNotFound.cpp b/project2/cgi/cgiStageCustomNotFound.cpp index 9575e94..fc49804 100644 --- a/project2/cgi/cgiStageCustomNotFound.cpp +++ b/project2/cgi/cgiStageCustomNotFound.cpp @@ -1,3 +1,4 @@ +#include #include "cgiAppEngine.h" #include "cgiEnvironment.h" #include "cgiHttpHeader.h" diff --git a/project2/cgi/cgiStageDefaultError.cpp b/project2/cgi/cgiStageDefaultError.cpp index 5828831..5ba371f 100644 --- a/project2/cgi/cgiStageDefaultError.cpp +++ b/project2/cgi/cgiStageDefaultError.cpp @@ -1,3 +1,4 @@ +#include #include "cgiAppEngine.h" #include "cgiHttpHeader.h" #include "logger.h" diff --git a/project2/cgi/cgiStageDefaultNotFound.cpp b/project2/cgi/cgiStageDefaultNotFound.cpp index 3407d0e..d67d892 100644 --- a/project2/cgi/cgiStageDefaultNotFound.cpp +++ b/project2/cgi/cgiStageDefaultNotFound.cpp @@ -1,3 +1,4 @@ +#include #include "cgiAppEngine.h" #include "cgiEnvironment.h" #include "cgiHttpHeader.h" diff --git a/project2/cgi/cgiStageInitial.cpp b/project2/cgi/cgiStageInitial.cpp index 92595ef..b263110 100644 --- a/project2/cgi/cgiStageInitial.cpp +++ b/project2/cgi/cgiStageInitial.cpp @@ -1,3 +1,4 @@ +#include #include "cgiAppEngine.h" #include "cgiEnvironment.h" #include "exceptions.h" diff --git a/project2/cgi/cgiStagePresent.cpp b/project2/cgi/cgiStagePresent.cpp index 44a344b..fffcaa7 100644 --- a/project2/cgi/cgiStagePresent.cpp +++ b/project2/cgi/cgiStagePresent.cpp @@ -1,3 +1,4 @@ +#include #include "cgiAppEngine.h" #include "cgiEnvironment.h" #include "cgiHttpHeader.h" diff --git a/project2/cgi/cgiStageRequest.cpp b/project2/cgi/cgiStageRequest.cpp index c17efac..4831a71 100644 --- a/project2/cgi/cgiStageRequest.cpp +++ b/project2/cgi/cgiStageRequest.cpp @@ -1,3 +1,4 @@ +#include #include "cgiAppEngine.h" #include "cgiEnvironment.h" #include "cgiHttpHeader.h" diff --git a/project2/cgi/pch.hpp b/project2/cgi/pch.hpp new file mode 100644 index 0000000..b3c7108 --- /dev/null +++ b/project2/cgi/pch.hpp @@ -0,0 +1,28 @@ +#ifdef BOOST_BUILD_PCH_ENABLED +#ifndef CGI_PCH +#define CGI_PCH + +#include "appEngine.h" +#include "cgiAppEngine.h" +#include "cgiCommon.h" +#include "cgiEnvironment.h" +#include "cgiHttpHeader.h" +#include "exceptions.h" +#include "iterate.h" +#include "logger.h" +#include "xmlObjectLoader.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#endif +#endif + diff --git a/project2/console/Jamfile.jam b/project2/console/Jamfile.jam index 72d2c1f..3a95bd6 100644 --- a/project2/console/Jamfile.jam +++ b/project2/console/Jamfile.jam @@ -2,7 +2,13 @@ alias libxmlpp : : : : "`pkg-config --cflags libxml++-2.6`" "`pkg-config --libs libxml++-2.6`" ; +cpp-pch pch : pch.hpp : + ../../libmisc + libxmlpp + ..//p2parts + ; exe p2console : + pch [ glob *.cpp ] : ..//p2parts diff --git a/project2/console/consoleAppEngine.cpp b/project2/console/consoleAppEngine.cpp index ce1cd0a..c5b9e3f 100644 --- a/project2/console/consoleAppEngine.cpp +++ b/project2/console/consoleAppEngine.cpp @@ -1,3 +1,4 @@ +#include #include "consoleAppEngine.h" #include "consoleEnvironment.h" #include "iterate.h" diff --git a/project2/console/consoleEnvironment.cpp b/project2/console/consoleEnvironment.cpp index 128ecac..fa2748e 100644 --- a/project2/console/consoleEnvironment.cpp +++ b/project2/console/consoleEnvironment.cpp @@ -1,3 +1,4 @@ +#include #include "consoleEnvironment.h" #include #include diff --git a/project2/console/consolePresenter.cpp b/project2/console/consolePresenter.cpp index d122771..d1aeeb7 100644 --- a/project2/console/consolePresenter.cpp +++ b/project2/console/consolePresenter.cpp @@ -1,3 +1,4 @@ +#include #include "consolePresenter.h" DECLARE_COMPONENT_LOADER("console", ConsolePresenter, PresenterLoader) diff --git a/project2/console/p2consoleMain.cpp b/project2/console/p2consoleMain.cpp index bad803f..6201e72 100644 --- a/project2/console/p2consoleMain.cpp +++ b/project2/console/p2consoleMain.cpp @@ -1,3 +1,4 @@ +#include #include #include "consoleEnvironment.h" #include "consoleAppEngine.h" diff --git a/project2/console/pch.hpp b/project2/console/pch.hpp new file mode 100644 index 0000000..39cc465 --- /dev/null +++ b/project2/console/pch.hpp @@ -0,0 +1,20 @@ +#ifdef BOOST_BUILD_PCH_ENABLED +#ifndef CONSOLE_PCH +#define CONSOLE_PCH + +#include "consoleAppEngine.h" +#include "consoleEnvironment.h" +#include "consolePresenter.h" +#include "exceptions.h" +#include "iterate.h" +#include "logger.h" +#include "xmlObjectLoader.h" +#include +#include +#include +#include +#include + +#endif +#endif + diff --git a/project2/sql/Jamfile.jam b/project2/sql/Jamfile.jam index b05fd34..779aba3 100644 --- a/project2/sql/Jamfile.jam +++ b/project2/sql/Jamfile.jam @@ -24,7 +24,14 @@ obj sql-modPQ : ../../libpqpp//pqpp ; +cpp-pch pch : pch.hpp : + ../../libmisc + ../../libdbpp + libxmlpp + ../common//p2common + ; lib p2sql : + pch sqlCheck.cpp sqlWriter.cpp sqlTask.cpp sqlMergeTask.cpp sqlRows.cpp sqlCache.cpp sqlVariableBinder.cpp tablepatch.cpp rdbmsDataSource.cpp sqlHandleAsVariableType.cpp ../../libdbpp//dbpp diff --git a/project2/sql/connectionLoader.h b/project2/sql/connectionLoader.h index 841b425..eabf28b 100644 --- a/project2/sql/connectionLoader.h +++ b/project2/sql/connectionLoader.h @@ -1,3 +1,6 @@ +#ifndef CONNECTIONLOADER_H +#define CONNECTIONLOADER_H + #include "xmlObjectLoader.h" #include "../libdbpp/connection.h" @@ -17,3 +20,5 @@ class ConnectionLoaderImpl : public ConnectionLoader { } }; +#endif + diff --git a/project2/sql/pch.hpp b/project2/sql/pch.hpp new file mode 100644 index 0000000..f009f1c --- /dev/null +++ b/project2/sql/pch.hpp @@ -0,0 +1,35 @@ +#ifdef BOOST_BUILD_PCH_ENABLED +#ifndef SQL_PCH +#define SQL_PCH + +#include "cache.h" +#include "column.h" +#include "columns.h" +#include "command.h" +#include "commonObjects.h" +#include "connectionLoader.h" +#include "exceptions.h" +#include "iHaveParameters.h" +#include "logger.h" +#include "modifycommand.h" +#include "rdbmsDataSource.h" +#include "rowProcessor.h" +#include "rowSet.h" +#include "selectcommand.h" +#include "sqlHandleAsVariableType.h" +#include "sqlVariableBinder.h" +#include "sqlWriter.h" +#include "variables.h" +#include "xmlObjectLoader.h" +#include +#include +#include +#include +#include +#include +#include +#include + +#endif +#endif + diff --git a/project2/sql/rdbmsDataSource.cpp b/project2/sql/rdbmsDataSource.cpp index dac6cb1..77d6fbf 100644 --- a/project2/sql/rdbmsDataSource.cpp +++ b/project2/sql/rdbmsDataSource.cpp @@ -1,3 +1,4 @@ +#include #include "rdbmsDataSource.h" #include "connectionLoader.h" #include diff --git a/project2/sql/sqlCache.cpp b/project2/sql/sqlCache.cpp index 13bc23d..44b4399 100644 --- a/project2/sql/sqlCache.cpp +++ b/project2/sql/sqlCache.cpp @@ -1,3 +1,4 @@ +#include #include "cache.h" #include "sqlVariableBinder.h" #include "sqlHandleAsVariableType.h" diff --git a/project2/sql/sqlCheck.cpp b/project2/sql/sqlCheck.cpp index d86eb3b..d6e0651 100644 --- a/project2/sql/sqlCheck.cpp +++ b/project2/sql/sqlCheck.cpp @@ -1,3 +1,4 @@ +#include #include "sqlCheck.h" #include "xmlObjectLoader.h" #include "selectcommand.h" diff --git a/project2/sql/sqlHandleAsVariableType.cpp b/project2/sql/sqlHandleAsVariableType.cpp index f084a14..e628c29 100644 --- a/project2/sql/sqlHandleAsVariableType.cpp +++ b/project2/sql/sqlHandleAsVariableType.cpp @@ -1,3 +1,4 @@ +#include #include "sqlHandleAsVariableType.h" #include diff --git a/project2/sql/sqlMergeTask.cpp b/project2/sql/sqlMergeTask.cpp index 09657f8..fd9ae96 100644 --- a/project2/sql/sqlMergeTask.cpp +++ b/project2/sql/sqlMergeTask.cpp @@ -1,3 +1,4 @@ +#include #include "sqlMergeTask.h" #include "columns.h" #include "commonObjects.h" diff --git a/project2/sql/sqlRows.cpp b/project2/sql/sqlRows.cpp index 6e506d7..ed2d71b 100644 --- a/project2/sql/sqlRows.cpp +++ b/project2/sql/sqlRows.cpp @@ -1,3 +1,4 @@ +#include #include "sqlRows.h" #include "sqlHandleAsVariableType.h" #include "rowProcessor.h" diff --git a/project2/sql/sqlTask.cpp b/project2/sql/sqlTask.cpp index 3a1d334..63f73a9 100644 --- a/project2/sql/sqlTask.cpp +++ b/project2/sql/sqlTask.cpp @@ -1,3 +1,4 @@ +#include #include "sqlTask.h" #include #include "xmlObjectLoader.h" diff --git a/project2/sql/sqlVariableBinder.cpp b/project2/sql/sqlVariableBinder.cpp index 23c24f2..169fe2c 100644 --- a/project2/sql/sqlVariableBinder.cpp +++ b/project2/sql/sqlVariableBinder.cpp @@ -1,3 +1,4 @@ +#include #include "sqlVariableBinder.h" #include "command.h" #include "variables.h" diff --git a/project2/sql/sqlWriter.cpp b/project2/sql/sqlWriter.cpp index 88d9801..90de82f 100644 --- a/project2/sql/sqlWriter.cpp +++ b/project2/sql/sqlWriter.cpp @@ -1,3 +1,4 @@ +#include #include "sqlWriter.h" #include #include "sqlVariableBinder.h" diff --git a/project2/sql/tablepatch.cpp b/project2/sql/tablepatch.cpp index f87f60e..8443c7b 100644 --- a/project2/sql/tablepatch.cpp +++ b/project2/sql/tablepatch.cpp @@ -1,3 +1,4 @@ +#include #include "tablepatch.h" #include #include diff --git a/project2/xml/Jamfile.jam b/project2/xml/Jamfile.jam index 0cd4e1e..b6e29ef 100644 --- a/project2/xml/Jamfile.jam +++ b/project2/xml/Jamfile.jam @@ -6,7 +6,13 @@ alias libxslt : : : : "`pkg-config --libs libexslt`" ; lib boost_filesystem : : boost_filesystem ; +cpp-pch pch : pch.hpp : + ../../libmisc + libxmlpp + ../common//p2common + ; lib p2xml : + pch rawView.cpp xmlPresenter.cpp transformHtml.cpp transformText.cpp xmlRows.cpp xmlRawRows.cpp xslRows.cpp xslRowsCache.cpp xslPreFetch.cpp xmlMemCache.cpp xmlCache.cpp sessionXml.cpp : diff --git a/project2/xml/pch.hpp b/project2/xml/pch.hpp new file mode 100644 index 0000000..911d45c --- /dev/null +++ b/project2/xml/pch.hpp @@ -0,0 +1,27 @@ +#ifdef BOOST_BUILD_PCH_ENABLED +#ifndef XML_PCH +#define XML_PCH + +#include "appEngine.h" +#include "cache.h" +#include "environment.h" +#include "exceptions.h" +#include "iHaveParameters.h" +#include "logger.h" +#include "presenter.h" +#include "rawView.h" +#include "rowProcessor.h" +#include "safeMapFind.h" +#include "variables.h" +#include +#include +#include +#include +#include +#include +#include +#include + +#endif +#endif + diff --git a/project2/xml/rawView.cpp b/project2/xml/rawView.cpp index 73c319d..f033542 100644 --- a/project2/xml/rawView.cpp +++ b/project2/xml/rawView.cpp @@ -1,3 +1,4 @@ +#include #include "exceptions.h" #include "rawView.h" #include "xml.h" diff --git a/project2/xml/sessionXml.cpp b/project2/xml/sessionXml.cpp index c1e2158..dd4e01c 100644 --- a/project2/xml/sessionXml.cpp +++ b/project2/xml/sessionXml.cpp @@ -1,3 +1,4 @@ +#include #include "sessionXml.h" #include "uuid.h" #include diff --git a/project2/xml/transformHtml.cpp b/project2/xml/transformHtml.cpp index eae1c27..6efb7e5 100644 --- a/project2/xml/transformHtml.cpp +++ b/project2/xml/transformHtml.cpp @@ -1,3 +1,4 @@ +#include #include "transformHtml.h" #include "logger.h" #include diff --git a/project2/xml/transformText.cpp b/project2/xml/transformText.cpp index 5ba03cc..bec1a95 100644 --- a/project2/xml/transformText.cpp +++ b/project2/xml/transformText.cpp @@ -1,3 +1,4 @@ +#include #include "transformText.h" #include #include "transformHtml.h" diff --git a/project2/xml/xmlCache.cpp b/project2/xml/xmlCache.cpp index 86b098a..020ad04 100644 --- a/project2/xml/xmlCache.cpp +++ b/project2/xml/xmlCache.cpp @@ -1,3 +1,4 @@ +#include #include "cache.h" #include "logger.h" #include "xmlObjectLoader.h" diff --git a/project2/xml/xmlMemCache.cpp b/project2/xml/xmlMemCache.cpp index af54eb5..9fe0a6f 100644 --- a/project2/xml/xmlMemCache.cpp +++ b/project2/xml/xmlMemCache.cpp @@ -1,3 +1,4 @@ +#include #include "cache.h" #include "logger.h" #include "xmlObjectLoader.h" diff --git a/project2/xml/xmlPresenter.cpp b/project2/xml/xmlPresenter.cpp index adaed38..6d4ddeb 100644 --- a/project2/xml/xmlPresenter.cpp +++ b/project2/xml/xmlPresenter.cpp @@ -1,3 +1,4 @@ +#include #include "xmlPresenter.h" #include "xmlObjectLoader.h" #include "variables.h" diff --git a/project2/xml/xmlRawRows.cpp b/project2/xml/xmlRawRows.cpp index 68a4e8c..c227b2c 100644 --- a/project2/xml/xmlRawRows.cpp +++ b/project2/xml/xmlRawRows.cpp @@ -1,3 +1,4 @@ +#include #include "xmlRawRows.h" #include #include diff --git a/project2/xml/xmlRows.cpp b/project2/xml/xmlRows.cpp index 8982945..182da6a 100644 --- a/project2/xml/xmlRows.cpp +++ b/project2/xml/xmlRows.cpp @@ -1,3 +1,4 @@ +#include #include "xmlRows.h" #include "rowProcessor.h" #include "xml.h" diff --git a/project2/xml/xslPreFetch.cpp b/project2/xml/xslPreFetch.cpp index b70d83c..136e20f 100644 --- a/project2/xml/xslPreFetch.cpp +++ b/project2/xml/xslPreFetch.cpp @@ -1,3 +1,4 @@ +#include #include "xslPreFetch.h" #include "xmlObjectLoader.h" diff --git a/project2/xml/xslRows.cpp b/project2/xml/xslRows.cpp index 07d57b6..666b607 100644 --- a/project2/xml/xslRows.cpp +++ b/project2/xml/xslRows.cpp @@ -1,3 +1,4 @@ +#include #include "xslRows.h" #include "safeMapFind.h" #include "rowProcessor.h" diff --git a/project2/xml/xslRowsCache.cpp b/project2/xml/xslRowsCache.cpp index 5cbc44c..51fd6c0 100644 --- a/project2/xml/xslRowsCache.cpp +++ b/project2/xml/xslRowsCache.cpp @@ -1,3 +1,4 @@ +#include #include "xslRowsCache.h" #include #include -- cgit v1.2.3