Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 22, 2008, 1:37:42 PM (17 years ago)
Author:
rgrieder
Message:
  • tolua_bind.cc and Script.cc depended on each other, but were not in the same library. gcc doesn't care anyway, vc++ didn't too because I linked statically. However: Circular dependencies are not very good. New approach: every lib has its own tolua_bind.cc file I've added this for orxonox and core.

fabian: Is it possible, that under certain conditions, you need the SET_TARGET_PROPERTIES?

On tardis, things work very well without it. But what about cmake under windows?

I'll readd it, if required.

Location:
code/branches/cmake/src
Files:
2 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cmake/src/CMakeLists.txt

    r1122 r1127  
    11INCLUDE_DIRECTORIES(.)
    22INCLUDE_DIRECTORIES(orxonox)
    3 INCLUDE_DIRECTORIES(tolua)
     3INCLUDE_DIRECTORIES(util/tolua)
    44
    5 ADD_SUBDIRECTORY(tolua)
    65ADD_SUBDIRECTORY(util)
    76ADD_SUBDIRECTORY(core)
  • code/branches/cmake/src/core/CMakeLists.txt

    r1124 r1127  
    2626  Tickable.cc
    2727  Script.cc
     28  tolua/tolua_bind.cc
     29)
     30
     31GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION)
     32ADD_CUSTOM_COMMAND(
     33  OUTPUT tolua/tolua_bind.cc
     34  COMMAND ${TOLUA_EXE} -n core -o core/tolua/tolua_bind.cc -H core/tolua/tolua_bind.h core/tolua/tolua.pkg
     35  DEPENDS tolua
     36  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src
    2837)
    2938
     
    3140
    3241TARGET_LINK_LIBRARIES(core
    33   util
    34   tolualib
    3542  ${Lua_LIBRARIES}
    3643  ${OIS_LIBRARIES}
     44  ${OGRE_LIBRARIES}
     45  util
    3746)
  • code/branches/cmake/src/core/InputManager.cc

    r1089 r1127  
    9393      paramList.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str()));
    9494
    95 #if defined OIS_LINUX_PLATFORM
    96       paramList.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true")));
    97 #endif
     95//#if defined OIS_LINUX_PLATFORM
     96//      paramList.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true")));
     97//#endif
    9898
    9999      try
  • code/branches/cmake/src/core/Script.cc

    r1122 r1127  
    3939}
    4040
    41 #include "tolua/tolua++.h"
     41#include "tolua++.h"
    4242#include "tolua/tolua_bind.h"
    4343
     
    6060    luaopen_debug(luaState_);
    6161#endif
    62     tolua_orxonox_open(luaState_);
     62    tolua_core_open(luaState_);
    6363    output_ = "";
    6464  }
  • code/branches/cmake/src/orxonox/CMakeLists.txt

    r1070 r1127  
    3030#  objects/weapon/BulletManager.cc
    3131#  objects/weapon/WeaponStation.cc
     32  tolua/tolua_bind.cc
    3233)
    3334
     35GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION)
     36ADD_CUSTOM_COMMAND(
     37  OUTPUT tolua/tolua_bind.cc
     38  COMMAND ${TOLUA_EXE} -n orxonox -o orxonox/tolua/tolua_bind.cc -H orxonox/tolua/tolua_bind.h orxonox/tolua/tolua.pkg
     39  DEPENDS tolua
     40  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src
     41)
     42       
    3443ADD_EXECUTABLE( orxonox ${ORXONOX_SRC_FILES} )
    3544
  • code/branches/cmake/src/util/CMakeLists.txt

    r1122 r1127  
    1 AUX_SOURCE_DIRECTORY(tinyxml TINYXML_SRC_FILES)
    2 
    31SET(UTIL_SRC_FILES
    42  ArgReader.cc
     3  Clipboard.cc
     4  ExprParser.cc
    55  Math.cc
    6   String.cc
    7   Clipboard.cc
    8   SubString.cc
    9   ExprParser.cc
    106  MultiTypePrimitive.cc
    117  MultiTypeString.cc
    128  MultiTypeMath.cc
    13   ${TINYXML_SRC_FILES}
     9  String.cc
     10  SubString.cc
     11
     12  tinyxml/ticpp.cc
     13  tinyxml/tinystr.cc
     14  tinyxml/tinyxml.cc
     15  tinyxml/tinyxmlerror.cc
     16  tinyxml/tinyxmlparser.cc
     17
     18  tolua/tolua_event.c
     19  tolua/tolua_is.c
     20  tolua/tolua_map.c
     21  tolua/tolua_push.c
     22  tolua/tolua_to.c
    1423)
    1524
     
    2231TARGET_LINK_LIBRARIES(util
    2332  ${OGRE_LIBRARIES}
     33  ${Lua_LIBRARIES}
    2434)
    2535
     36ADD_SUBDIRECTORY(tolua)
     37
Note: See TracChangeset for help on using the changeset viewer.