Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1650


Ignore:
Timestamp:
Jul 27, 2008, 1:16:07 PM (16 years ago)
Author:
rgrieder
Message:

added preliminary automatic creation of tolua generator that creates the actual executable
(please don't ask about the egg-hen question…)

Location:
code/branches/gui/src/tolua
Files:
24 added
1 edited
1 copied
1 moved

Legend:

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

    r1642 r1650  
    1313)
    1414
     15
     16SET (TOLUAGEN_SRC_FILES
     17  tolua.c
     18  toluabind.c
     19)
     20
     21ADD_EXECUTABLE (toluagen ${TOLUAGEN_SRC_FILES})
     22
     23TARGET_LINK_LIBRARIES (toluagen
     24  ${Lua_LIBRARIES}
     25  tolualib
     26  m
     27)
     28
     29IF (Lua_VERSION == 5.1)
     30  SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.1.pkg")
     31ELSE
     32  SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.0.pkg")
     33ENDIF (Lua_VERSION == 5.1)
     34
     35ADD_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  DEPENDS toluagen
     39  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib
     40)
     41
     42
    1543SET (TOLUAEXE_SRC_FILES
    1644  tolua.c
  • code/branches/gui/src/tolua/tolua-5.0.pkg

    r1645 r1650  
    1 $lfile "../../src/tolua/lua/compat-5.1.lua"
    21$lfile "../../src/tolua/lua/compat.lua"
    32$lfile "../../src/tolua/lua/basic.lua"
  • code/branches/gui/src/tolua/tolua-5.1.pkg

Note: See TracChangeset for help on using the changeset viewer.