Last change
on this file since 1967 was
1651,
checked in by rgrieder, 16 years ago
|
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.
|
-
Property svn:eol-style set to
native
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1505] | 1 | SET (TOLUALIB_SRC_FILES |
---|
| 2 | tolua_event.c |
---|
| 3 | tolua_is.c |
---|
| 4 | tolua_map.c |
---|
| 5 | tolua_push.c |
---|
| 6 | tolua_to.c |
---|
| 7 | ) |
---|
| 8 | |
---|
[1582] | 9 | ADD_LIBRARY (tolualib SHARED ${TOLUALIB_SRC_FILES}) |
---|
[1505] | 10 | |
---|
| 11 | TARGET_LINK_LIBRARIES (tolualib |
---|
| 12 | ${Lua_LIBRARIES} |
---|
| 13 | ) |
---|
| 14 | |
---|
[1650] | 15 | |
---|
| 16 | SET (TOLUAGEN_SRC_FILES |
---|
| 17 | tolua.c |
---|
| 18 | toluabind.c |
---|
| 19 | ) |
---|
| 20 | |
---|
| 21 | ADD_EXECUTABLE (toluagen ${TOLUAGEN_SRC_FILES}) |
---|
| 22 | |
---|
| 23 | TARGET_LINK_LIBRARIES (toluagen |
---|
| 24 | ${Lua_LIBRARIES} |
---|
| 25 | tolualib |
---|
| 26 | m |
---|
| 27 | ) |
---|
| 28 | |
---|
[1651] | 29 | |
---|
| 30 | IF (Lua_VERSION EQUAL 5.0) |
---|
| 31 | SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.0.pkg") |
---|
| 32 | ELSE (Lua_VERSION EQUAL 5.0) |
---|
[1650] | 33 | SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.1.pkg") |
---|
[1651] | 34 | ENDIF (Lua_VERSION EQUAL 5.0) |
---|
[1650] | 35 | |
---|
[1651] | 36 | GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen LOCATION) |
---|
[1650] | 37 | ADD_CUSTOM_COMMAND( |
---|
[1651] | 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} |
---|
[1650] | 40 | DEPENDS toluagen |
---|
| 41 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib |
---|
| 42 | ) |
---|
| 43 | |
---|
[1505] | 44 | SET (TOLUAEXE_SRC_FILES |
---|
| 45 | tolua.c |
---|
[1642] | 46 | toluabind_orxonox.c |
---|
[1505] | 47 | ) |
---|
| 48 | |
---|
| 49 | ADD_EXECUTABLE (tolua ${TOLUAEXE_SRC_FILES}) |
---|
| 50 | |
---|
| 51 | TARGET_LINK_LIBRARIES (tolua |
---|
| 52 | ${Lua_LIBRARIES} |
---|
| 53 | tolualib |
---|
| 54 | m |
---|
| 55 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.