Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2011, 6:51:00 PM (13 years ago)
Author:
rgrieder
Message:

Removed the need to declare the tolua interface explicitly (DeclareToluaInterface).
This is now automatically done in the ToluaBindLibrary.cc files.
That also removes the need for tolua bind header files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/cmake/tools/GenerateToluaBindings.cmake

    r8650 r8688  
    4949  SET(_tolua_pkgfile "${CMAKE_CURRENT_BINARY_DIR}/tolua.pkg")
    5050  SET(_tolua_cxxfile "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ToluaBind${_tolua_package}.cc")
    51   SET(_tolua_hfile   "${CMAKE_BINARY_DIR}/src/toluabind/${CMAKE_CFG_INTDIR}/ToluaBind${_tolua_package}.h")
     51  #SET(_tolua_hfile   "${CMAKE_BINARY_DIR}/src/toluabind/${CMAKE_CFG_INTDIR}/ToluaBind${_tolua_package}.h")
    5252
    5353  SET(${_target_source_files}
    5454    ${${_target_source_files}}
    5555    ${_tolua_cxxfile}
    56     ${_tolua_hfile}
    5756    PARENT_SCOPE
    5857  )
     
    7675  ENDFOREACH(_tolua_inputfile)
    7776
     77  IF(TOLUA_PARSER_HOOK_SCRIPT)
     78    # Hook scripts may contain functions that act as Tolua hooks
     79    SET(_hook_script -L "${TOLUA_PARSER_HOOK_SCRIPT}")
     80  ENDIF()
     81
    7882  ADD_CUSTOM_COMMAND(
    79     OUTPUT ${_tolua_cxxfile} ${_tolua_hfile}
     83    OUTPUT ${_tolua_cxxfile}
    8084    COMMAND toluaapp_orxonox -n ${_tolua_package}
    8185                             -w ${CMAKE_CURRENT_SOURCE_DIR}
    8286                             -o ${_tolua_cxxfile}
    83                              -H ${_tolua_hfile}
    8487                             -s ${TOLUA_PARSER_SOURCE}
     88                                ${_hook_script}
    8589                                ${_tolua_pkgfile}
    8690    DEPENDS           ${TOLUA_PARSER_DEPENDENCIES}
Note: See TracChangeset for help on using the changeset viewer.