Changeset 2509 for code/branches/buildsystem2/src/ceguilua-0.6.1
- Timestamp:
- Dec 17, 2008, 8:59:48 PM (16 years ago)
- Location:
- code/branches/buildsystem2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2
- Property svn:ignore deleted
- Property svn:mergeinfo changed
/code/branches/buildsystem (added) merged: 1875,1882-1886,1975-1982,1991,1999,2054,2061,2135,2137-2139,2197-2199,2204,2214-2220,2223-2224,2229,2233-2244,2248-2249,2252-2253,2260,2275
-
code/branches/buildsystem2/src/ceguilua-0.6.1/ceguilua/CEGUILua.cpp
r1810 r2509 28 28 * OTHER DEALINGS IN THE SOFTWARE. 29 29 ***************************************************************************/ 30 #ifdef HAVE_CONFIG_H 31 # include "config.h" 32 #endif 30 33 31 34 #include "CEGUI.h" … … 37 40 38 41 // include Lua libs and tolua++ 39 #include "lua/lua.hpp" 40 #include "tolua/tolua++.h" 42 extern "C" { 43 #include "lua.h" 44 #include "lualib.h" 45 #include "lauxlib.h" 46 } 47 48 #include "tolua++.h" 41 49 42 50 // prototype for bindings initialisation function … … 53 61 LuaScriptModule::LuaScriptModule() 54 62 { 55 static const luaL_Reg lualibs[] = { 56 {"", luaopen_base}, 57 {LUA_LOADLIBNAME, luaopen_package}, 58 {LUA_TABLIBNAME, luaopen_table}, 59 {LUA_IOLIBNAME, luaopen_io}, 60 {LUA_OSLIBNAME, luaopen_os}, 61 {LUA_STRLIBNAME, luaopen_string}, 62 {LUA_MATHLIBNAME, luaopen_math}, 63 #if defined(DEBUG) || defined (_DEBUG) 64 {LUA_DBLIBNAME, luaopen_debug}, 65 #endif 66 {0, 0} 67 }; 63 #if LUA_VERSION_NUM >= 501 64 static const luaL_Reg lualibs[] = { 65 {"", luaopen_base}, 66 {LUA_LOADLIBNAME, luaopen_package}, 67 {LUA_TABLIBNAME, luaopen_table}, 68 {LUA_IOLIBNAME, luaopen_io}, 69 {LUA_OSLIBNAME, luaopen_os}, 70 {LUA_STRLIBNAME, luaopen_string}, 71 {LUA_MATHLIBNAME, luaopen_math}, 72 #if defined(DEBUG) || defined (_DEBUG) 73 {LUA_DBLIBNAME, luaopen_debug}, 74 #endif 75 {0, 0} 76 }; 77 #endif /* CEGUI_LUA_VER >= 51 */ 68 78 69 79 // create a lua state … … 72 82 73 83 // init all standard libraries 74 const luaL_Reg *lib = lualibs; 75 for (; lib->func; lib++) 76 { 77 lua_pushcfunction(d_state, lib->func); 78 lua_pushstring(d_state, lib->name); 79 lua_call(d_state, 1, 0); 80 } 84 #if LUA_VERSION_NUM >= 501 85 const luaL_Reg *lib = lualibs; 86 for (; lib->func; lib++) 87 { 88 lua_pushcfunction(d_state, lib->func); 89 lua_pushstring(d_state, lib->name); 90 lua_call(d_state, 1, 0); 91 } 92 #else /* CEGUI_LUA_VER >= 51 */ 93 luaopen_base(d_state); 94 luaopen_io(d_state); 95 luaopen_string(d_state); 96 luaopen_table(d_state); 97 luaopen_math(d_state); 98 #if defined(DEBUG) || defined (_DEBUG) 99 luaopen_debug(d_state); 100 #endif 101 #endif /* CEGUI_LUA_VER >= 51 */ 81 102 82 103 setModuleIdentifierString(); -
code/branches/buildsystem2/src/ceguilua-0.6.1/ceguilua/CEGUILuaFunctor.cpp
r1810 r2509 34 34 35 35 // include Lua libs and tolua++ 36 #include "lua/lua.hpp" 37 #include "tolua/tolua++.h" 36 extern "C" { 37 #include "lua.h" 38 #include "lualib.h" 39 #include "lauxlib.h" 40 } 41 42 #include "tolua++.h" 38 43 39 44 // Start of CEGUI namespace section -
code/branches/buildsystem2/src/ceguilua-0.6.1/ceguilua/CMakeLists.txt
r1854 r2509 1 INCLUDE_DIRECTORIES(.)2 3 1 SET( CEGUILUA_SRC_FILES 4 2 CEGUILua.cpp … … 11 9 12 10 TARGET_LINK_LIBRARIES(ceguilua_orxonox 13 lua_orxonox14 11 tolualib_orxonox 15 ${CEGUI_LIBRARIES} 12 ${LUA_LIBRARIES} 13 ${CEGUI_LIBRARY} 16 14 ) -
code/branches/buildsystem2/src/ceguilua-0.6.1/ceguilua/lua_CEGUI.cpp
r1810 r2509 9 9 #include "string.h" 10 10 11 #include "tolua /tolua++.h"11 #include "tolua++.h" 12 12 13 13 /* Exported function */
Note: See TracChangeset
for help on using the changeset viewer.