1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

- compile fixes

- build system update
This commit is contained in:
Ivan Savenko 2012-08-10 15:16:42 +00:00
parent 289b7b68d9
commit aa326491a3
5 changed files with 29 additions and 13 deletions

View File

@ -29,6 +29,7 @@ set(lib_SRCS
CHeroHandler.cpp CHeroHandler.cpp
CLogger.cpp CLogger.cpp
CMapInfo.cpp CMapInfo.cpp
CModHandler.cpp
CObjectHandler.cpp CObjectHandler.cpp
CObstacleInstance.cpp CObstacleInstance.cpp
Connection.cpp Connection.cpp

View File

@ -1,4 +1,6 @@
#include "Filesystem\CResourceLoader.h" #pragma once
#include "Filesystem/CResourceLoader.h"
#include "VCMI_Lib.h" #include "VCMI_Lib.h"
#include "CCreatureHandler.h" #include "CCreatureHandler.h"
@ -83,4 +85,4 @@ public:
h & creatures & artifacts; h & creatures & artifacts;
h & allMods & activeMods; h & allMods & activeMods;
} }
}; };

View File

@ -45,6 +45,8 @@ libvcmi_la_SOURCES = \
CLogger.h \ CLogger.h \
CMapInfo.cpp \ CMapInfo.cpp \
CMapInfo.h \ CMapInfo.h \
CModHandler.cpp \
CModHandler.h \
CObjectHandler.cpp \ CObjectHandler.cpp \
CObjectHandler.h \ CObjectHandler.h \
CObstacleInstance.cpp \ CObstacleInstance.cpp \

View File

@ -97,13 +97,14 @@ am_libvcmi_la_OBJECTS = libvcmi_la-CBinaryReader.lo \
libvcmi_la-CGameInterface.lo libvcmi_la-CGameState.lo \ libvcmi_la-CGameInterface.lo libvcmi_la-CGameState.lo \
libvcmi_la-CGeneralTextHandler.lo libvcmi_la-CHeroHandler.lo \ libvcmi_la-CGeneralTextHandler.lo libvcmi_la-CHeroHandler.lo \
libvcmi_la-CLogger.lo libvcmi_la-CMapInfo.lo \ libvcmi_la-CLogger.lo libvcmi_la-CMapInfo.lo \
libvcmi_la-CObjectHandler.lo libvcmi_la-CObstacleInstance.lo \ libvcmi_la-CModHandler.lo libvcmi_la-CObjectHandler.lo \
libvcmi_la-CSpellHandler.lo libvcmi_la-CTownHandler.lo \ libvcmi_la-CObstacleInstance.lo libvcmi_la-CSpellHandler.lo \
libvcmi_la-CThreadHelper.lo libvcmi_la-Connection.lo \ libvcmi_la-CTownHandler.lo libvcmi_la-CThreadHelper.lo \
libvcmi_la-HeroBonus.lo libvcmi_la-IGameCallback.lo \ libvcmi_la-Connection.lo libvcmi_la-HeroBonus.lo \
libvcmi_la-JsonNode.lo libvcmi_la-NetPacksLib.lo \ libvcmi_la-IGameCallback.lo libvcmi_la-JsonNode.lo \
libvcmi_la-ResourceSet.lo libvcmi_la-BattleHex.lo \ libvcmi_la-NetPacksLib.lo libvcmi_la-ResourceSet.lo \
libvcmi_la-VCMI_Lib.lo libvcmi_la-map.lo libvcmi_la-BattleHex.lo libvcmi_la-VCMI_Lib.lo \
libvcmi_la-map.lo
libvcmi_la_OBJECTS = $(am_libvcmi_la_OBJECTS) libvcmi_la_OBJECTS = $(am_libvcmi_la_OBJECTS)
AM_V_lt = $(am__v_lt_@AM_V@) AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
@ -336,6 +337,8 @@ libvcmi_la_SOURCES = \
CLogger.h \ CLogger.h \
CMapInfo.cpp \ CMapInfo.cpp \
CMapInfo.h \ CMapInfo.h \
CModHandler.cpp \
CModHandler.h \
CObjectHandler.cpp \ CObjectHandler.cpp \
CObjectHandler.h \ CObjectHandler.h \
CObstacleInstance.cpp \ CObstacleInstance.cpp \
@ -470,6 +473,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CLogger.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CLogger.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CMapInfo.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CMapInfo.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CMemoryStream.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CMemoryStream.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CModHandler.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CObjectHandler.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CObjectHandler.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CObstacleInstance.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CObstacleInstance.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CResourceLoader.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvcmi_la-CResourceLoader.Plo@am__quote@
@ -667,6 +671,13 @@ libvcmi_la-CMapInfo.lo: CMapInfo.cpp
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvcmi_la_CXXFLAGS) $(CXXFLAGS) -c -o libvcmi_la-CMapInfo.lo `test -f 'CMapInfo.cpp' || echo '$(srcdir)/'`CMapInfo.cpp @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvcmi_la_CXXFLAGS) $(CXXFLAGS) -c -o libvcmi_la-CMapInfo.lo `test -f 'CMapInfo.cpp' || echo '$(srcdir)/'`CMapInfo.cpp
libvcmi_la-CModHandler.lo: CModHandler.cpp
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvcmi_la_CXXFLAGS) $(CXXFLAGS) -MT libvcmi_la-CModHandler.lo -MD -MP -MF $(DEPDIR)/libvcmi_la-CModHandler.Tpo -c -o libvcmi_la-CModHandler.lo `test -f 'CModHandler.cpp' || echo '$(srcdir)/'`CModHandler.cpp
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvcmi_la-CModHandler.Tpo $(DEPDIR)/libvcmi_la-CModHandler.Plo
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='CModHandler.cpp' object='libvcmi_la-CModHandler.lo' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvcmi_la_CXXFLAGS) $(CXXFLAGS) -c -o libvcmi_la-CModHandler.lo `test -f 'CModHandler.cpp' || echo '$(srcdir)/'`CModHandler.cpp
libvcmi_la-CObjectHandler.lo: CObjectHandler.cpp libvcmi_la-CObjectHandler.lo: CObjectHandler.cpp
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvcmi_la_CXXFLAGS) $(CXXFLAGS) -MT libvcmi_la-CObjectHandler.lo -MD -MP -MF $(DEPDIR)/libvcmi_la-CObjectHandler.Tpo -c -o libvcmi_la-CObjectHandler.lo `test -f 'CObjectHandler.cpp' || echo '$(srcdir)/'`CObjectHandler.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvcmi_la_CXXFLAGS) $(CXXFLAGS) -MT libvcmi_la-CObjectHandler.lo -MD -MP -MF $(DEPDIR)/libvcmi_la-CObjectHandler.Tpo -c -o libvcmi_la-CObjectHandler.lo `test -f 'CObjectHandler.cpp' || echo '$(srcdir)/'`CObjectHandler.cpp
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvcmi_la-CObjectHandler.Tpo $(DEPDIR)/libvcmi_la-CObjectHandler.Plo @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvcmi_la-CObjectHandler.Tpo $(DEPDIR)/libvcmi_la-CObjectHandler.Plo

View File

@ -8,7 +8,7 @@
#include "CGameState.h" #include "CGameState.h"
#include "CHeroHandler.h" #include "CHeroHandler.h"
#include "CTownHandler.h" #include "CTownHandler.h"
//#include "CModHandler.h" //needed? #include "CModHandler.h" //needed?
/* /*
* RegisterTypes.h, part of VCMI engine * RegisterTypes.h, part of VCMI engine
@ -20,7 +20,7 @@
* *
*/ */
template<typename Serializer> template<typename Serializer>
void registerTypes1(Serializer &s) void registerTypes1(Serializer &s)
{ {
//map objects //map objects
@ -114,7 +114,7 @@ void registerTypes1(Serializer &s)
//s.template registerType<StackLocation>(); //s.template registerType<StackLocation>();
} }
template<typename Serializer> template<typename Serializer>
void registerTypes2(Serializer &s) void registerTypes2(Serializer &s)
{ {
s.template registerType<PackageApplied>(); s.template registerType<PackageApplied>();
@ -257,4 +257,4 @@ void registerTypes(Serializer &s)
registerTypes2(s); registerTypes2(s);
registerTypes3(s); registerTypes3(s);
registerTypes4(s); registerTypes4(s);
} }