Changeset 1755 for code/trunk/src/tolua
- Timestamp:
- Sep 10, 2008, 1:37:36 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
- 28 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/gui (added) merged: 1636,1638,1640-1647,1649-1654,1656,1659-1665,1670,1672-1674,1686,1688-1692,1694-1697,1704 /code/branches/input (added) merged: 1629-1630
- Property svn:mergeinfo changed
-
code/trunk/src/tolua/CMakeLists.txt
r1582 r1755 13 13 ) 14 14 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 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) 33 SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.1.pkg") 34 ENDIF (Lua_VERSION EQUAL 5.0) 35 36 GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen LOCATION) 37 ADD_CUSTOM_COMMAND( 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} 40 DEPENDS toluagen 41 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib 42 ) 43 15 44 SET (TOLUAEXE_SRC_FILES 16 45 tolua.c 17 toluabind .c46 toluabind_orxonox.c 18 47 ) 19 48 -
code/trunk/src/tolua/tolua++.h
r1505 r1755 17 17 #define TOLUA_H 18 18 19 /* original code */ 20 /* 19 21 #ifndef TOLUA_API 20 22 #define TOLUA_API extern 21 23 #endif 24 */ 25 26 /******************************** 27 ******* ORXONOX CHANGES ********* 28 ********************************/ 29 30 #if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined( TOLUA_STATIC_BUILD ) 31 # ifdef TOLUA_SHARED_BUILD 32 # define TOLUA_API __declspec(dllexport) 33 # else 34 # if defined( __MINGW32__ ) 35 # define TOLUA_API 36 # else 37 # define TOLUA_API __declspec(dllimport) 38 # endif 39 # endif 40 #else 41 # define TOLUA_API extern 42 #endif 43 44 /******************************** 45 ****** END ORXONOX CHANGES ****** 46 ********************************/ 22 47 23 48 #define TOLUA_VERSION "tolua++-1.0.92" -
code/trunk/src/tolua/toluabind.c
r1505 r1755 12 12 13 13 /* Exported function */ 14 TOLUA_APIint tolua_tolua_open (lua_State* tolua_S);14 int tolua_tolua_open (lua_State* tolua_S); 15 15 16 16 … … 21 21 22 22 /* Open function */ 23 TOLUA_APIint tolua_tolua_open (lua_State* tolua_S)23 int tolua_tolua_open (lua_State* tolua_S) 24 24 { 25 25 tolua_open(tolua_S); … … 7622 7622 7623 7623 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 7624 TOLUA_APIint luaopen_tolua (lua_State* tolua_S) {7624 int luaopen_tolua (lua_State* tolua_S) { 7625 7625 return tolua_tolua_open(tolua_S); 7626 7626 }; -
code/trunk/src/tolua/toluabind_orxonox.c
r1724 r1755 1 1 /* 2 2 ** Lua binding: tolua 3 ** Generated automatically by tolua++-1.0.92 on 09/ 05/08 12:45:12.3 ** Generated automatically by tolua++-1.0.92 on 09/10/08 00:32:19. 4 4 */ 5 5 -
code/trunk/src/tolua/toluabind_orxonox.h
r1724 r1755 1 1 /* 2 2 ** Lua binding: tolua 3 ** Generated automatically by tolua++-1.0.92 on 09/ 05/08 12:45:13.3 ** Generated automatically by tolua++-1.0.92 on 09/10/08 00:32:21. 4 4 */ 5 5
Note: See TracChangeset
for help on using the changeset viewer.