Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ceguilua/ceguilua-0.6.2/ceguilua/changes_orxonox.diff @ 2608

Last change on this file since 2608 was 2608, checked in by rgrieder, 16 years ago

Large cleanup in CEGUILua:

  • Removed the heavy 1.7MB bind files and added the small pkg files from the CEGUI source instead
  • Those pkg files get copied version incrementally (starting with 0.5.0) to the binary dir. That saves a lot of files when having 4 different versions.
  • Added support for CEGUI 0.6.0 and 0.6.2
  • Added library info files
  • CEGUILua 0.5.0 finally supports Lua 5.1 too That means all version support both Lua 5.0 and 5.1
  • Added unified diffs with the changes to the CEGUILua source
File size: 2.6 KB
  • CEGUILua.cpp

     
    2727 *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    2828 *   OTHER DEALINGS IN THE SOFTWARE.
    2929 ***************************************************************************/
    30 #ifdef HAVE_CONFIG_H
    31 #   include "config.h"
    32 #endif
    33 
    3430#include "CEGUI.h"
    3531#include "CEGUIConfig.h"
    3632#include "CEGUIPropertyHelper.h"
     
    4541#include "lauxlib.h"
    4642}
    4743
    48 #include "tolua++.h"
     44#include "tolua/tolua++.h"
    4945
    5046// prototype for bindings initialisation function
    5147int tolua_CEGUI_open(lua_State* tolua_S);
     
    6157LuaScriptModule::LuaScriptModule() :
    6258    d_errFuncIndex(LUA_NOREF)
    6359{
    64     #if CEGUI_LUA_VER >= 51
     60    #if LUA_VERSION_NUM >= 501
    6561        static const luaL_Reg lualibs[] = {
    6662            {"", luaopen_base},
    6763            {LUA_LOADLIBNAME, luaopen_package},
     
    7571        #endif
    7672            {0, 0}
    7773        };
    78     #endif /* CEGUI_LUA_VER >= 51 */
     74    #endif /* LUA_VERSION_NUM >= 501 */
    7975
    8076    // create a lua state
    8177    d_ownsState = true;
    8278    d_state = lua_open();
    8379
    8480    // init all standard libraries
    85     #if CEGUI_LUA_VER >= 51
     81    #if LUA_VERSION_NUM >= 501
    8682            const luaL_Reg *lib = lualibs;
    8783            for (; lib->func; lib++)
    8884            {
     
    9086                lua_pushstring(d_state, lib->name);
    9187                lua_call(d_state, 1, 0);
    9288            }
    93     #else /* CEGUI_LUA_VER >= 51 */
     89    #else /* LUA_VERSION_NUM >= 501 */
    9490        luaopen_base(d_state);
    9591        luaopen_io(d_state);
    9692        luaopen_string(d_state);
     
    9995        #if defined(DEBUG) || defined (_DEBUG)
    10096            luaopen_debug(d_state);
    10197        #endif
    102     #endif /* CEGUI_LUA_VER >= 51 */
     98    #endif /* LUA_VERSION_NUM >= 501 */
    10399
    104100    setModuleIdentifierString();
    105101}
  • CEGUILua.h

     
    3838#   ifdef CEGUILUA_EXPORTS
    3939#       define CEGUILUA_API __declspec(dllexport)
    4040#   else
    41 #       define CEGUILUA_API __declspec(dllimport)
     41#       if defined( __MINGW32__ )
     42#           define CEGUILUA_API
     43#       else
     44#           define CEGUILUA_API __declspec(dllimport)
     45#       endif
    4246#   endif
    4347#else
    4448#   define CEGUILUA_API
  • CEGUILuaFunctor.cpp

     
    4040#include "lauxlib.h"
    4141}
    4242
    43 #include "tolua++.h"
     43#include "tolua/tolua++.h"
    4444
    4545// Start of CEGUI namespace section
    4646namespace CEGUI
Note: See TracBrowser for help on using the repository browser.