From: John L. <jr...@us...> - 2005-06-18 20:53:51
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6010/wxLua/bindings Added Files: genwxbind.bat genwxbind.lua Log Message: Converted to wxIDE's wrapper files --- NEW FILE: genwxbind.bat --- @echo off REM This batch generates codedragon wxbind c++ source files from interface files REM @echo on SET LUA=..\bin\lua.exe echo Generating wxWidgets Binding %LUA% -e"rulesFilename=\"wxwidgets\wx.rules\"" genwxbind.lua > wxwidgets\error.txt echo Done. --- NEW FILE: genwxbind.lua --- ---------------------------------------------------------------------------------- -- Name: genwxbind.lua -- Purpose: This script generates wrapper files from the table interfaceFileList (see below) -- Author: Ray Gilbert -- Created: 19/05/2004 -- Copyright: Ray Gilbert -- Licence: wxWindows licence ---------------------------------------------------------------------------------- -- code generated is compatible with wxWrapLua.lua, J Winwood's work from wxLua -- -- There were a few shortcomings of the code generated by wxWrapLua -- * it generated 1 huge header file, which caused some compilers to barf -- * it generated an different wrapper file for each version and platform of wxWidgets -- -- This generator creates -- * seperate c files for each interface file -- * each wrapper file uses c-preprocessor defines, and leaves it -- up to the compiler to add correct wrapper functions. This also haves -- the advantage of being able to distribute pre-generated wrapper interface files [...4248 lines suppressed...] local cache = loadfile(dataTypeCacheFilename) cache() print("loaded cache: "..dataTypeCacheFilename) end InitKeywords() -- BuildConditionsTable(); InitDataTypes() readOverrideFile() generateWrapperFiles() SerializeDataTypes() print("Done\n") end main() |