Bläddra i källkod

增加qt库检测

tanghai 14 år sedan
förälder
incheckning
8ce1633654
72 ändrade filer med 19 tillägg och 14 borttagningar
  1. 9 4
      Cpp/CMakeLists.txt
  2. 0 0
      Cpp/Cmake/FindGFlags.cmake
  3. 0 0
      Cpp/Cmake/FindGLog.cmake
  4. 0 0
      Cpp/Cmake/FindGMock.cmake
  5. 0 0
      Cpp/Cmake/FindGTest.cmake
  6. 0 0
      Cpp/Cmake/FindPerftools.cmake
  7. 0 0
      Cpp/Game/CMakeLists.txt
  8. 0 0
      Cpp/Game/Event/ActionIf.h
  9. 0 0
      Cpp/Game/Event/AndNode.cc
  10. 0 0
      Cpp/Game/Event/AndNode.h
  11. 0 0
      Cpp/Game/Event/BuffTypeCondition.cc
  12. 0 0
      Cpp/Game/Event/BuffTypeCondition.h
  13. 0 0
      Cpp/Game/Event/CMakeLists.txt
  14. 0 0
      Cpp/Game/Event/ConditionFactory.cc
  15. 0 0
      Cpp/Game/Event/ConditionFactory.h
  16. 0 0
      Cpp/Game/Event/DotFirstDamage.txt
  17. 0 0
      Cpp/Game/Event/Event.cc
  18. 0 0
      Cpp/Game/Event/Event.h
  19. 0 0
      Cpp/Game/Event/EventConf.proto
  20. 0 0
      Cpp/Game/Event/GameEvents.cc
  21. 0 0
      Cpp/Game/Event/GameEvents.h
  22. 0 0
      Cpp/Game/Event/NodeFactories.cc
  23. 0 0
      Cpp/Game/Event/NodeFactories.h
  24. 0 0
      Cpp/Game/Event/NodeIf.h
  25. 0 0
      Cpp/Game/Event/NotNode.cc
  26. 0 0
      Cpp/Game/Event/NotNode.h
  27. 0 0
      Cpp/Game/Event/OrNode.cc
  28. 0 0
      Cpp/Game/Event/OrNode.h
  29. 0 0
      Cpp/Platform/Base/Marcos.h
  30. 0 0
      Cpp/Platform/Base/Typedef.h
  31. 0 0
      Cpp/Platform/CMakeLists.txt
  32. 0 0
      Cpp/Platform/Python/CMakeLists.txt
  33. 0 0
      Cpp/Platform/Python/PythonInit.cc
  34. 0 0
      Cpp/Platform/Python/PythonInit.h
  35. 0 0
      Cpp/Platform/Python/PythonInitTest.cc
  36. 0 0
      Cpp/Platform/Python/PythonInterpreter.cc
  37. 0 0
      Cpp/Platform/Python/PythonInterpreter.h
  38. 1 1
      Cpp/Platform/Python/PythonInterpreterTest.cc
  39. 0 0
      Cpp/Platform/Python/PythonInterpreterTest.py
  40. 0 0
      Cpp/Platform/Rpc/CMakeLists.txt
  41. 0 0
      Cpp/Platform/Rpc/Echo.proto
  42. 0 0
      Cpp/Platform/Rpc/MethodInfo.h
  43. 0 0
      Cpp/Platform/Rpc/RequestHandler.cc
  44. 0 0
      Cpp/Platform/Rpc/RequestHandler.h
  45. 0 0
      Cpp/Platform/Rpc/ResponseHandler.cc
  46. 0 0
      Cpp/Platform/Rpc/ResponseHandler.h
  47. 0 0
      Cpp/Platform/Rpc/RpcChannel.cc
  48. 0 0
      Cpp/Platform/Rpc/RpcChannel.h
  49. 0 0
      Cpp/Platform/Rpc/RpcChannelTest.cc
  50. 0 0
      Cpp/Platform/Rpc/RpcCommunicator.cc
  51. 0 0
      Cpp/Platform/Rpc/RpcCommunicator.h
  52. 0 0
      Cpp/Platform/Rpc/RpcCommunicatorTest.cc
  53. 0 0
      Cpp/Platform/Rpc/RpcController.cc
  54. 0 0
      Cpp/Platform/Rpc/RpcController.h
  55. 0 0
      Cpp/Platform/Rpc/RpcServer.cc
  56. 0 0
      Cpp/Platform/Rpc/RpcServer.h
  57. 0 0
      Cpp/Platform/Rpc/RpcServerMock.h
  58. 0 0
      Cpp/Platform/Rpc/RpcServerTest.cc
  59. 0 0
      Cpp/Platform/Rpc/RpcSession.cc
  60. 0 0
      Cpp/Platform/Rpc/RpcSession.h
  61. 0 0
      Cpp/Platform/Rpc/RpcSessionTest.cc
  62. 0 0
      Cpp/Platform/Rpc/RpcTypedef.h
  63. 0 0
      Cpp/Platform/Thread/CMakeLists.txt
  64. 0 0
      Cpp/Platform/Thread/CountBarrier.cc
  65. 0 0
      Cpp/Platform/Thread/CountBarrier.h
  66. 0 0
      Cpp/Platform/Thread/CountBarrierTest.cc
  67. 0 0
      Cpp/Platform/Thread/ThreadPool.cc
  68. 0 0
      Cpp/Platform/Thread/ThreadPool.h
  69. 0 0
      Cpp/Platform/Thread/ThreadPoolMock.h
  70. 0 0
      Cpp/Platform/Thread/ThreadPoolTest.cc
  71. 0 0
      Cpp/Platform/Thread/ThreadTypedef.h
  72. 9 9
      Tools/dbg.py

+ 9 - 4
Egametang/CMakeLists.txt → Cpp/CMakeLists.txt

@@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
 SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Cmake)
 SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
 
-ADD_DEFINITIONS(-O2)
+ADD_DEFINITIONS(-g)
 
 PROJECT(Cpp)
 
@@ -29,18 +29,22 @@ FIND_PACKAGE(GMock REQUIRED)
 INCLUDE_DIRECTORIES(${GMOCK_INCLUDE_DIR})
 
 FIND_PACKAGE(Protobuf REQUIRED)
-INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
 
 FIND_PACKAGE(PythonLibs REQUIRED)
-INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR})
+
+FIND_PACKAGE(Qt4 REQUIRED)
+INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
 
 FIND_PACKAGE(Perftools REQUIRED)
+INCLUDE_DIRECTORIES(${PERFTOOLS_INCLUDE_DIR})
 
 FIND_PACKAGE(Boost REQUIRED python thread system)
 SET(Boost_USE_STATIC_LIBS    ON)
 SET(Boost_USE_MULTITHREADED  ON)
 SET(Boost_USE_STATIC_RUNTIME OFF)
-INCLUDE_DIRECTORIES(${BOOST_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES(${BOOST_INCLUDE_DIR})
 
 set(ThirdPartyLibs
 	${GLOG_LIBRARIES}
@@ -50,6 +54,7 @@ set(ThirdPartyLibs
 	${PROTOBUF_LIBRARIES}
 	${Boost_LIBRARIES}
 	${PYTHON_LIBRARIES}
+	${QT_LIBRARIES}
 	${PERFTOOLS_DEBUG_LIBRARIES}
 )
 

+ 0 - 0
Egametang/Cmake/FindGFlags.cmake → Cpp/Cmake/FindGFlags.cmake


+ 0 - 0
Egametang/Cmake/FindGLog.cmake → Cpp/Cmake/FindGLog.cmake


+ 0 - 0
Egametang/Cmake/FindGMock.cmake → Cpp/Cmake/FindGMock.cmake


+ 0 - 0
Egametang/Cmake/FindGTest.cmake → Cpp/Cmake/FindGTest.cmake


+ 0 - 0
Egametang/Cmake/FindPerftools.cmake → Cpp/Cmake/FindPerftools.cmake


+ 0 - 0
Egametang/Game/CMakeLists.txt → Cpp/Game/CMakeLists.txt


+ 0 - 0
Egametang/Game/Event/ActionIf.h → Cpp/Game/Event/ActionIf.h


+ 0 - 0
Egametang/Game/Event/AndNode.cc → Cpp/Game/Event/AndNode.cc


+ 0 - 0
Egametang/Game/Event/AndNode.h → Cpp/Game/Event/AndNode.h


+ 0 - 0
Egametang/Game/Event/BuffTypeCondition.cc → Cpp/Game/Event/BuffTypeCondition.cc


+ 0 - 0
Egametang/Game/Event/BuffTypeCondition.h → Cpp/Game/Event/BuffTypeCondition.h


+ 0 - 0
Egametang/Game/Event/CMakeLists.txt → Cpp/Game/Event/CMakeLists.txt


+ 0 - 0
Egametang/Game/Event/ConditionFactory.cc → Cpp/Game/Event/ConditionFactory.cc


+ 0 - 0
Egametang/Game/Event/ConditionFactory.h → Cpp/Game/Event/ConditionFactory.h


+ 0 - 0
Egametang/Game/Event/DotFirstDamage.txt → Cpp/Game/Event/DotFirstDamage.txt


+ 0 - 0
Egametang/Game/Event/Event.cc → Cpp/Game/Event/Event.cc


+ 0 - 0
Egametang/Game/Event/Event.h → Cpp/Game/Event/Event.h


+ 0 - 0
Egametang/Game/Event/EventConf.proto → Cpp/Game/Event/EventConf.proto


+ 0 - 0
Egametang/Game/Event/GameEvents.cc → Cpp/Game/Event/GameEvents.cc


+ 0 - 0
Egametang/Game/Event/GameEvents.h → Cpp/Game/Event/GameEvents.h


+ 0 - 0
Egametang/Game/Event/NodeFactories.cc → Cpp/Game/Event/NodeFactories.cc


+ 0 - 0
Egametang/Game/Event/NodeFactories.h → Cpp/Game/Event/NodeFactories.h


+ 0 - 0
Egametang/Game/Event/NodeIf.h → Cpp/Game/Event/NodeIf.h


+ 0 - 0
Egametang/Game/Event/NotNode.cc → Cpp/Game/Event/NotNode.cc


+ 0 - 0
Egametang/Game/Event/NotNode.h → Cpp/Game/Event/NotNode.h


+ 0 - 0
Egametang/Game/Event/OrNode.cc → Cpp/Game/Event/OrNode.cc


+ 0 - 0
Egametang/Game/Event/OrNode.h → Cpp/Game/Event/OrNode.h


+ 0 - 0
Egametang/Platform/Base/Marcos.h → Cpp/Platform/Base/Marcos.h


+ 0 - 0
Egametang/Platform/Base/Typedef.h → Cpp/Platform/Base/Typedef.h


+ 0 - 0
Egametang/Platform/CMakeLists.txt → Cpp/Platform/CMakeLists.txt


+ 0 - 0
Egametang/Platform/Python/CMakeLists.txt → Cpp/Platform/Python/CMakeLists.txt


+ 0 - 0
Egametang/Platform/Python/PythonInit.cc → Cpp/Platform/Python/PythonInit.cc


+ 0 - 0
Egametang/Platform/Python/PythonInit.h → Cpp/Platform/Python/PythonInit.h


+ 0 - 0
Egametang/Platform/Python/PythonInitTest.cc → Cpp/Platform/Python/PythonInitTest.cc


+ 0 - 0
Egametang/Platform/Python/PythonInterpreter.cc → Cpp/Platform/Python/PythonInterpreter.cc


+ 0 - 0
Egametang/Platform/Python/PythonInterpreter.h → Cpp/Platform/Python/PythonInterpreter.h


+ 1 - 1
Egametang/Platform/Python/PythonInterpreterTest.cc → Cpp/Platform/Python/PythonInterpreterTest.cc

@@ -68,7 +68,7 @@ BOOST_PYTHON_MODULE(PersonTest)
 TEST_F(PythonInterpreterTest, EnterPythonScript)
 {
 	initPersonTest();
-	interpreter.ImportPath("../../../Egametang/Platform/Python/");
+	interpreter.ImportPath("../../../Cpp/Platform/Python/");
 	interpreter.ImportModule("PythonInterpreterTest");
 
 	PersonTestPtr person(new PersonTest);

+ 0 - 0
Egametang/Platform/Python/PythonInterpreterTest.py → Cpp/Platform/Python/PythonInterpreterTest.py


+ 0 - 0
Egametang/Platform/Rpc/CMakeLists.txt → Cpp/Platform/Rpc/CMakeLists.txt


+ 0 - 0
Egametang/Platform/Rpc/Echo.proto → Cpp/Platform/Rpc/Echo.proto


+ 0 - 0
Egametang/Platform/Rpc/MethodInfo.h → Cpp/Platform/Rpc/MethodInfo.h


+ 0 - 0
Egametang/Platform/Rpc/RequestHandler.cc → Cpp/Platform/Rpc/RequestHandler.cc


+ 0 - 0
Egametang/Platform/Rpc/RequestHandler.h → Cpp/Platform/Rpc/RequestHandler.h


+ 0 - 0
Egametang/Platform/Rpc/ResponseHandler.cc → Cpp/Platform/Rpc/ResponseHandler.cc


+ 0 - 0
Egametang/Platform/Rpc/ResponseHandler.h → Cpp/Platform/Rpc/ResponseHandler.h


+ 0 - 0
Egametang/Platform/Rpc/RpcChannel.cc → Cpp/Platform/Rpc/RpcChannel.cc


+ 0 - 0
Egametang/Platform/Rpc/RpcChannel.h → Cpp/Platform/Rpc/RpcChannel.h


+ 0 - 0
Egametang/Platform/Rpc/RpcChannelTest.cc → Cpp/Platform/Rpc/RpcChannelTest.cc


+ 0 - 0
Egametang/Platform/Rpc/RpcCommunicator.cc → Cpp/Platform/Rpc/RpcCommunicator.cc


+ 0 - 0
Egametang/Platform/Rpc/RpcCommunicator.h → Cpp/Platform/Rpc/RpcCommunicator.h


+ 0 - 0
Egametang/Platform/Rpc/RpcCommunicatorTest.cc → Cpp/Platform/Rpc/RpcCommunicatorTest.cc


+ 0 - 0
Egametang/Platform/Rpc/RpcController.cc → Cpp/Platform/Rpc/RpcController.cc


+ 0 - 0
Egametang/Platform/Rpc/RpcController.h → Cpp/Platform/Rpc/RpcController.h


+ 0 - 0
Egametang/Platform/Rpc/RpcServer.cc → Cpp/Platform/Rpc/RpcServer.cc


+ 0 - 0
Egametang/Platform/Rpc/RpcServer.h → Cpp/Platform/Rpc/RpcServer.h


+ 0 - 0
Egametang/Platform/Rpc/RpcServerMock.h → Cpp/Platform/Rpc/RpcServerMock.h


+ 0 - 0
Egametang/Platform/Rpc/RpcServerTest.cc → Cpp/Platform/Rpc/RpcServerTest.cc


+ 0 - 0
Egametang/Platform/Rpc/RpcSession.cc → Cpp/Platform/Rpc/RpcSession.cc


+ 0 - 0
Egametang/Platform/Rpc/RpcSession.h → Cpp/Platform/Rpc/RpcSession.h


+ 0 - 0
Egametang/Platform/Rpc/RpcSessionTest.cc → Cpp/Platform/Rpc/RpcSessionTest.cc


+ 0 - 0
Egametang/Platform/Rpc/RpcTypedef.h → Cpp/Platform/Rpc/RpcTypedef.h


+ 0 - 0
Egametang/Platform/Thread/CMakeLists.txt → Cpp/Platform/Thread/CMakeLists.txt


+ 0 - 0
Egametang/Platform/Thread/CountBarrier.cc → Cpp/Platform/Thread/CountBarrier.cc


+ 0 - 0
Egametang/Platform/Thread/CountBarrier.h → Cpp/Platform/Thread/CountBarrier.h


+ 0 - 0
Egametang/Platform/Thread/CountBarrierTest.cc → Cpp/Platform/Thread/CountBarrierTest.cc


+ 0 - 0
Egametang/Platform/Thread/ThreadPool.cc → Cpp/Platform/Thread/ThreadPool.cc


+ 0 - 0
Egametang/Platform/Thread/ThreadPool.h → Cpp/Platform/Thread/ThreadPool.h


+ 0 - 0
Egametang/Platform/Thread/ThreadPoolMock.h → Cpp/Platform/Thread/ThreadPoolMock.h


+ 0 - 0
Egametang/Platform/Thread/ThreadPoolTest.cc → Cpp/Platform/Thread/ThreadPoolTest.cc


+ 0 - 0
Egametang/Platform/Thread/ThreadTypedef.h → Cpp/Platform/Thread/ThreadTypedef.h


+ 9 - 9
Tools/dbg.py

@@ -7,14 +7,14 @@ SAMBA_PATH = r"Z:/source/hainan"
 LINUX_PATH = "/home/tanghai/source/hainan"
 
 def main(argv):
-  os.chdir(LINUX_PATH)
-  cmd = "gdb " + ' '.join(argv[1:])
-  cmd = cmd.replace("\\", "/")
-  cmd = cmd.replace(SAMBA_PATH, ".")
-  cmd = cmd.replace("\r\n", "\n")
-  cmd = r'''sed -u -e 's/\\/\//g' | sed -u -e 's/%s/\./g' | ''' % \
-    SAMBA_PATH.replace("/", r"\/\/") + cmd
-  os.system(cmd)
+	os.chdir(LINUX_PATH)
+	cmd = "gdb " + ' '.join(argv[1:])
+	cmd = cmd.replace("\\", "/")
+	cmd = cmd.replace(SAMBA_PATH, ".")
+	cmd = cmd.replace("\r\n", "\n")
+	cmd = r'''sed -u -e 's/\\/\//g' | sed -u -e 's/%s/\./g' | ''' % \
+		SAMBA_PATH.replace("/", r"\/\/") + cmd
+	os.system(cmd)
 
 if __name__ == '__main__':
-  sys.exit(main(sys.argv))
+	sys.exit(main(sys.argv))