Changeset 2664 for code/branches/buildsystem3/src/network
- Timestamp:
- Feb 14, 2009, 10:53:45 PM (16 years ago)
- Location:
- code/branches/buildsystem3
- Files:
-
- 3 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3
- Property svn:ignore deleted
- Property svn:mergeinfo changed
-
code/branches/buildsystem3/src/network/CMakeLists.txt
r2662 r2664 1 SET( NETWORK_SRC_FILES 1 # 2 # ORXONOX - the hottest 3D action shooter ever to exist 3 # > www.orxonox.net < 4 # 5 # This program is free software; you can redistribute it and/or 6 # modify it under the terms of the GNU General Public License 7 # as published by the Free Software Foundation; either version 2 8 # of the License, or (at your option) any later version. 9 # 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License along 16 # with this program; if not, write to the Free Software Foundation, 17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 # 19 20 SET_SOURCE_FILES(NETWORK_SRC_FILES 2 21 ChatListener.cc 3 22 Client.cc … … 14 33 Host.cc 15 34 ) 35 ADD_SUBDIRECTORY(packet) 36 GET_ALL_HEADER_FILES(NETWORK_HDR_FILES) 37 SET(NETWORK_FILES ${NETWORK_SRC_FILES} ${NETWORK_HDR_FILES}) 16 38 17 ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES packet)39 GENERATE_SOURCE_GROUPS(${NETWORK_FILES}) 18 40 ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES synchronisable) 19 41 20 21 IF(WIN32) 22 ADD_LIBRARY( network ${NETWORK_SRC_FILES} ) 23 ELSE(WIN32) 24 ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES} ) 25 ENDIF(WIN32) 26 27 TARGET_LINK_LIBRARIES( network 42 ADD_LIBRARY(network SHARED ${NETWORK_FILES}) 43 SET_TARGET_PROPERTIES(network PROPERTIES DEFINE_SYMBOL "NETWORK_SHARED_BUILD") 44 TARGET_LINK_LIBRARIES(network 28 45 ${ZLIB_LIBRARY} 29 ${ENet_LIBRARY} 30 ${Boost_thread_LIBRARIES} 46 ${ENET_LIBRARY} 47 ${Boost_THREAD_LIBRARY} 48 util 31 49 core 32 50 ) 33 51 52 ORXONOX_INSTALL(network) 34 53 35 54 # build those parts only on request. 36 55 IF(NETWORK_TESTING_ENABLED) 37 56 ##### test for gamestate stuff ##### 38 SET( 57 SET(TEST_SRC_FILES 39 58 ${NETWORK_SRC_FILES} 40 59 ) 41 60 ADD_EXECUTABLE(networktest ${TEST_SRC_FILES}) 42 TARGET_LINK_LIBRARIES( 43 ${OGRE_LIBRAR IES}61 TARGET_LINK_LIBRARIES(networktest 62 ${OGRE_LIBRARY} 44 63 network 45 ${EN et_LIBRARY}64 ${ENET_LIBRARY} 46 65 ${ZLIB_LIBRARY} 47 ${WINDOWS_ENET_DEPENDENCIES}48 66 ) 49 67 ##### end test for gamestate stuff ##### -
code/branches/buildsystem3/src/network/NetworkPrereqs.h
r2662 r2664 35 35 #define _NetworkPrereqs_H__ 36 36 37 #include " util/OrxonoxPlatform.h"37 #include "OrxonoxConfig.h" 38 38 39 39 //----------------------------------------------------------------------- 40 40 // Shared library settings 41 41 //----------------------------------------------------------------------- 42 #if (ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32) && !defined( NETWORK_STATIC_BUILD )42 #if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( NETWORK_STATIC_BUILD ) 43 43 # ifdef NETWORK_SHARED_BUILD 44 44 # define _NetworkExport __declspec(dllexport) -
code/branches/buildsystem3/src/network/packet/CMakeLists.txt
r2131 r2664 1 SET(SRC_FILES1 ADD_SOURCE_FILES(NETWORK_SRC_FILES 2 2 Packet.cc 3 3 Chat.cc … … 8 8 DeleteObjects.cc 9 9 ) 10 11 ADD_SOURCE_FILES(SRC_FILES) -
code/branches/buildsystem3/src/network/packet/Packet.cc
r2662 r2664 167 167 assert(ClientInformation::findClient(&peer->address)->getID() != (unsigned int)-2 || !Host::isServer()); 168 168 unsigned int clientID = ClientInformation::findClient(&peer->address)->getID(); 169 Packet *p ;169 Packet *p = 0; 170 170 COUT(5) << "packet type: " << *(ENUM::Type *)&data[_PACKETID] << std::endl; 171 171 switch( *(ENUM::Type *)(data + _PACKETID) ) -
code/branches/buildsystem3/src/network/packet/Packet.h
r2171 r2664 34 34 #include <enet/enet.h> 35 35 #include <boost/thread/recursive_mutex.hpp> 36 37 #include "util/Integers.h"38 36 39 37 namespace orxonox {
Note: See TracChangeset
for help on using the changeset viewer.