Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem/src/tolua/CMakeLists.txt @ 2258

Last change on this file since 2258 was 2236, checked in by rgrieder, 16 years ago
  • Changed working directory for tolua generator to library_output_path. That resolves windows issues with dlls.
  • Removed the need to create a second tolua application. There is only one now called toluaexe_orxonox.
  • 'w' (working directory) option of tolua extends to -L, pkg-file, -o and -H if of course -w is present
  • 's' option added to tolua: Tells which file contains the bindfile generator. In our case this is src/tolua/all.lua all.lua replaces tolua-5.1.pkg. We can still choose that file from CMake (TOLUA_PARSER_SOURCE)
  • Generator dependencies are declared in src/tolua/CMakeLists.txt and used in UseTolua.cmake (PARENT_SCOPE)
  • Fixed a bug when writing the header file inclusion in package.lua
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1SET(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
9ADD_LIBRARY          (tolualib_orxonox SHARED ${TOLUALIB_SRC_FILES})
10TARGET_LINK_LIBRARIES(tolualib_orxonox ${LUA_LIBRARIES})
11
12
13SET(TOLUAGEN_SRC_FILES
14  tolua.c
15)
16
17ADD_EXECUTABLE       (toluaexe_orxonox ${TOLUAGEN_SRC_FILES})
18TARGET_LINK_LIBRARIES(toluaexe_orxonox tolualib_orxonox ${LUA_LIBRARIES})
19
20SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/all.lua" PARENT_SCOPE)
21SET(TOLUA_PARSER_DEPENDENCIES
22  ${CMAKE_CURRENT_SOURCE_DIR}/all.lua
23  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat-5.1.lua
24  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat.lua
25  ${CMAKE_CURRENT_SOURCE_DIR}/lua/basic.lua
26  ${CMAKE_CURRENT_SOURCE_DIR}/lua/feature.lua
27  ${CMAKE_CURRENT_SOURCE_DIR}/lua/verbatim.lua
28  ${CMAKE_CURRENT_SOURCE_DIR}/lua/code.lua
29  ${CMAKE_CURRENT_SOURCE_DIR}/lua/typedef.lua
30  ${CMAKE_CURRENT_SOURCE_DIR}/lua/container.lua
31  ${CMAKE_CURRENT_SOURCE_DIR}/lua/package.lua
32  ${CMAKE_CURRENT_SOURCE_DIR}/lua/module.lua
33  ${CMAKE_CURRENT_SOURCE_DIR}/lua/namespace.lua
34  ${CMAKE_CURRENT_SOURCE_DIR}/lua/define.lua
35  ${CMAKE_CURRENT_SOURCE_DIR}/lua/enumerate.lua
36  ${CMAKE_CURRENT_SOURCE_DIR}/lua/declaration.lua
37  ${CMAKE_CURRENT_SOURCE_DIR}/lua/variable.lua
38  ${CMAKE_CURRENT_SOURCE_DIR}/lua/array.lua
39  ${CMAKE_CURRENT_SOURCE_DIR}/lua/function.lua
40  ${CMAKE_CURRENT_SOURCE_DIR}/lua/operator.lua
41  ${CMAKE_CURRENT_SOURCE_DIR}/lua/class.lua
42  ${CMAKE_CURRENT_SOURCE_DIR}/lua/clean.lua
43  ${CMAKE_CURRENT_SOURCE_DIR}/lua/doit.lua
44
45  PARENT_SCOPE
46)
Note: See TracBrowser for help on using the repository browser.