Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 21, 2008, 5:10:08 PM (16 years ago)
Author:
rgrieder
Message:

Implemented lua and ceguilua as far as it works now with visual studio. Next (not so big) step is to integrate it in CMake (already did the most part).

Location:
code/branches/ceguilua/src/tolua
Files:
7 edited

Legend:

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

    r1755 r1804  
    77)
    88
    9 ADD_LIBRARY (tolualib SHARED ${TOLUALIB_SRC_FILES})
     9ADD_LIBRARY (tolualib_orxonox SHARED ${TOLUALIB_SRC_FILES})
    1010
    11 TARGET_LINK_LIBRARIES (tolualib
    12   ${Lua_LIBRARIES}
     11TARGET_LINK_LIBRARIES (tolualib_orxonox
     12  lua_orxonox
    1313)
    1414
     
    1919)
    2020
    21 ADD_EXECUTABLE (toluagen ${TOLUAGEN_SRC_FILES})
     21ADD_EXECUTABLE (toluagen_orxonox ${TOLUAGEN_SRC_FILES})
    2222
    23 TARGET_LINK_LIBRARIES (toluagen
    24   ${Lua_LIBRARIES}
    25   tolualib
     23TARGET_LINK_LIBRARIES (toluagen_orxonox
     24  lua_orxonox
     25  tolualib_orxonox
    2626  m
    2727)
     
    3434ENDIF (Lua_VERSION EQUAL 5.0)
    3535
    36 GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen LOCATION)
     36GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen_orxonox LOCATION)
    3737ADD_CUSTOM_COMMAND(
    3838  OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/toluabind_orxonox.c
    3939  COMMAND ${TOLUAGEN_EXE} -n tolua -o ../../src/tolua/toluabind_orxonox.c -H ../../src/tolua/toluabind_orxonox.h ${TOLUA_PACKAGE}
    40   DEPENDS toluagen
     40  DEPENDS toluagen_orxonox
    4141  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib
    4242)
     
    4747)
    4848
    49 ADD_EXECUTABLE (tolua ${TOLUAEXE_SRC_FILES})
     49ADD_EXECUTABLE (tolua_orxonox ${TOLUAEXE_SRC_FILES})
    5050
    51 TARGET_LINK_LIBRARIES (tolua
    52   ${Lua_LIBRARIES}
    53   tolualib
     51TARGET_LINK_LIBRARIES (tolua_orxonox
     52  lua_orxonox
     53  tolualib_orxonox
    5454  m
    5555)
  • code/branches/ceguilua/src/tolua/lua/package.lua

    r1755 r1804  
    116116        output('#endif\n')
    117117        output('#include "string.h"\n\n')
    118  output('#include "tolua++.h"\n\n')
     118 output('#include "tolua/tolua++.h"\n\n')
    119119
    120120 if not flags.h then
  • code/branches/ceguilua/src/tolua/tolua++.h

    r1755 r1804  
    6565typedef int lua_Object;
    6666
    67 #include "lua.h"
    68 #include "lauxlib.h"
     67#include "lua/lua.h"
     68#include "lua/lauxlib.h"
    6969
    7070struct tolua_Error
  • code/branches/ceguilua/src/tolua/tolua.c

    r1505 r1804  
    1515#include "tolua++.h"
    1616
    17 #include "lua.h"
    18 #include "lualib.h"
    19 #include "lauxlib.h"
     17#include "lua/lua.h"
     18#include "lua/lualib.h"
     19#include "lua/lauxlib.h"
    2020
    2121#include <stdio.h>
  • code/branches/ceguilua/src/tolua/tolua_is.c

    r1505 r1804  
    1414
    1515#include "tolua++.h"
    16 #include "lauxlib.h"
     16#include "lua/lauxlib.h"
    1717
    1818#include <stdlib.h>
  • code/branches/ceguilua/src/tolua/tolua_map.c

    r1505 r1804  
    1515#include "tolua++.h"
    1616#include "tolua_event.h"
    17 #include "lauxlib.h"
     17#include "lua/lauxlib.h"
    1818
    1919#include <string.h>
  • code/branches/ceguilua/src/tolua/tolua_push.c

    r1505 r1804  
    1414
    1515#include "tolua++.h"
    16 #include "lauxlib.h"
     16#include "lua/lauxlib.h"
    1717
    1818#include <stdlib.h>
Note: See TracChangeset for help on using the changeset viewer.