Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 27, 2008, 5:14:22 PM (17 years ago)
Author:
rgrieder
Message:

tolua seems to be created correctly. I the existing toluabind.c file to create a tolua application that creates the actual pimped tolua application. But be aware that modifying the *.lua files will not cause a recompile. You need to tell iit manually.

There was quite a stupid issue with static initialisation (I'm really wondering how that could even work with msvc).

However things don't seem to work yet on tardis, at least not remotely. It seems like Ogre can't initialise when using a vnc session. I'll have to look into that locally at ETZ.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/tolua/CMakeLists.txt

    r1650 r1651  
    2727)
    2828
    29 IF (Lua_VERSION == 5.1)
     29
     30IF (Lua_VERSION EQUAL 5.0)
     31  SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.0.pkg")
     32ELSE (Lua_VERSION EQUAL 5.0)
    3033  SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.1.pkg")
    31 ELSE
    32   SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.0.pkg")
    33 ENDIF (Lua_VERSION == 5.1)
     34ENDIF (Lua_VERSION EQUAL 5.0)
    3435
     36GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen LOCATION)
    3537ADD_CUSTOM_COMMAND(
    36   OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/toluabind_orxonox.cc
    37   COMMAND toluagen -n tolua -o ../../src/tolua/toluabind_orxonox.cc -H ../../src/tolua/toluabind_orxonox.h TOLUA_PACKAGE
     38  OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/toluabind_orxonox.c
     39  COMMAND ${TOLUAGEN_EXE} -n tolua -o ../../src/tolua/toluabind_orxonox.c -H ../../src/tolua/toluabind_orxonox.h ${TOLUA_PACKAGE}
    3840  DEPENDS toluagen
    3941  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib
    4042)
    41 
    4243
    4344SET (TOLUAEXE_SRC_FILES
Note: See TracChangeset for help on using the changeset viewer.