Buildsystem/Core: Adjust header locations in CMake for collisions and shared + clean up includes from re26dbe6981

This sorts out issues with non-PCH compiles on supported platforms.

--HG--
branch : trunk
This commit is contained in:
click
2010-08-18 07:17:04 +02:00
parent 774eb840e9
commit 7d8146f989
12 changed files with 33 additions and 23 deletions
+2
View File
@@ -46,10 +46,12 @@ include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src/server/shared
${CMAKE_SOURCE_DIR}/src/server/shared/Database
${CMAKE_SOURCE_DIR}/src/server/shared/Debugging
${CMAKE_SOURCE_DIR}/src/server/shared/Packets
${CMAKE_SOURCE_DIR}/src/server/shared/Cryptography
${CMAKE_SOURCE_DIR}/src/server/shared/Cryptography/Authentication
${CMAKE_SOURCE_DIR}/src/server/shared/Logging
${CMAKE_SOURCE_DIR}/src/server/shared/Threading
${CMAKE_SOURCE_DIR}/src/server/shared/Utilities
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/Authentication
+2
View File
@@ -37,8 +37,10 @@ include_directories(
${CMAKE_SOURCE_DIR}/src/server/shared
${CMAKE_SOURCE_DIR}/src/server/shared/Debugging
${CMAKE_SOURCE_DIR}/src/server/shared/Database
${CMAKE_SOURCE_DIR}/src/server/shared/Debugging
${CMAKE_SOURCE_DIR}/src/server/shared/Dynamic
${CMAKE_SOURCE_DIR}/src/server/shared/Logging
${CMAKE_SOURCE_DIR}/src/server/shared/Threading
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/Management
${CMAKE_CURRENT_SOURCE_DIR}/Maps
@@ -19,8 +19,8 @@
*/
#include "Database/DatabaseWorkerPool.h"
#include "Database/SQLOperation.h"
#include "DatabaseWorkerPool.h"
#include "SQLOperation.h"
/// Function body definitions for the template function members of the Database class
+6 -6
View File
@@ -22,14 +22,14 @@
#define DATABASEENV_H
#include "Common.h"
#include "Logging/Log.h"
#include "Debugging/Errors.h"
#include "Log.h"
#include "Errors.h"
#include "Database/Field.h"
#include "Database/QueryResult.h"
#include "Field.h"
#include "QueryResult.h"
#include "Database/DatabaseWorkerPool.h"
#include "Database/MySQLThreading.h"
#include "DatabaseWorkerPool.h"
#include "MySQLThreading.h"
typedef DatabaseWorkerPool DatabaseType;
#define _LIKE_ "LIKE"
+2 -1
View File
@@ -21,6 +21,7 @@
#include <ace/Task.h>
#include <ace/Activation_Queue.h>
#include "SQLOperation.h"
class MySQLConnection;
@@ -39,4 +40,4 @@ class DatabaseWorker : protected ACE_Task_Base
MySQLConnection* m_conn;
};
#endif
#endif
@@ -213,4 +213,4 @@ MySQLConnection* DatabaseWorkerPool::GetConnection()
conn = m_bundle_conn;
ASSERT (conn);
return conn;
}
}
@@ -20,9 +20,7 @@
#define _DATABASEWORKERPOOL_H
#include "Common.h"
#include "Logging/Log.h"
#include <ace/Activation_Queue.h>
#include <ace/Atomic_Op_T.h>
#include <ace/Thread_Mutex.h>
@@ -154,4 +152,4 @@ class DatabaseWorkerPool
QueryQueues m_queryQueues; //! Query queues from diff threads
};
#endif
#endif
@@ -16,10 +16,15 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <mysql.h>
#include "Common.h"
#include "QueryResult.h"
#include "SQLOperation.h"
#include "MySQLConnection.h"
#include "DatabaseWorker.h"
#include "Utilities/Util.h"
#include "Utilities/Timer.h"
#include "Log.h"
#include "Util.h"
#include "Timer.h"
MySQLConnection::MySQLConnection() :
m_Mysql(NULL)
@@ -241,4 +246,4 @@ void MySQLConnection::RollbackTransaction()
void MySQLConnection::CommitTransaction()
{
Execute("COMMIT");
}
}
+2 -1
View File
@@ -18,6 +18,7 @@
#include "SQLOperation.h"
#include "MySQLConnection.h"
#include "Log.h"
/*! Basic, ad-hoc queries. */
BasicStatementTask::BasicStatementTask(const char* sql)
@@ -209,4 +210,4 @@ bool SQLQueryTask::Execute()
/// add the callback to the sql result queue of the thread it originated from
m_queue->add(m_callback);
return true;
}
}
+3 -2
View File
@@ -20,9 +20,10 @@
#define _SQLOPERATION_H
#include <ace/Method_Request.h>
#include <ace/Activation_Queue.h>
#include "Common.h"
#include "Threading/Callback.h"
#include "Callback.h"
class MySQLConnection;
@@ -119,4 +120,4 @@ class SQLQueryTask : public SQLOperation
};
#endif
#endif
+1 -1
View File
@@ -22,7 +22,7 @@
#define SQLSTORAGE_H
#include "Common.h"
#include "Database/DatabaseEnv.h"
#include "DatabaseEnv.h"
class SQLStorage
{
+3 -3
View File
@@ -16,9 +16,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "Utilities/ProgressBar.h"
#include "Logging/Log.h"
#include "DataStores/DBCFileLoader.h"
#include "ProgressBar.h"
#include "Log.h"
#include "DBCFileLoader.h"
template<class T>
template<class S, class D>