From: John L. <jr...@us...> - 2006-12-13 00:28:00
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17364/wxLua/bindings Modified Files: genwxbind.bat genwxbind.lua Log Message: Add version #define for bindings to tell people to regenerate them Index: genwxbind.bat =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.bat,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** genwxbind.bat 24 May 2006 15:45:52 -0000 1.7 --- genwxbind.bat 13 Dec 2006 00:27:56 -0000 1.8 *************** *** 5,12 **** --- 5,41 ---- SET LUA=..\bin\wxlua-lua.exe + REM Find a suitable wxlua-lua.exe to run + IF EXIST ..\bin\gccud_lib\wxlua-lua.exe SET LUA=..\bin\gccud_lib\wxlua-lua.exe + IF EXIST ..\bin\gccud_dll\wxlua-lua.exe SET LUA=..\bin\gccud_dll\wxlua-lua.exe + IF EXIST ..\bin\gccu_lib\wxlua-lua.exe SET LUA=..\bin\gccu_lib\wxlua-lua.exe + IF EXIST ..\bin\gccu_dll\wxlua-lua.exe SET LUA=..\bin\gccu_dll\wxlua-lua.exe + IF EXIST ..\bin\gccd_lib\wxlua-lua.exe SET LUA=..\bin\gccd_lib\wxlua-lua.exe + IF EXIST ..\bin\gccd_dll\wxlua-lua.exe SET LUA=..\bin\gccd_dll\wxlua-lua.exe + IF EXIST ..\bin\gcc_lib\wxlua-lua.exe SET LUA=..\bin\gcc_lib\wxlua-lua.exe + IF EXIST ..\bin\gcc_dll\wxlua-lua.exe SET LUA=..\bin\gcc_dll\wxlua-lua.exe + + IF EXIST ..\bin\vcud_lib\wxlua-lua.exe SET LUA=..\bin\vcud_lib\wxlua-lua.exe + IF EXIST ..\bin\vcud_dll\wxlua-lua.exe SET LUA=..\bin\vcud_dll\wxlua-lua.exe + IF EXIST ..\bin\vcu_lib\wxlua-lua.exe SET LUA=..\bin\vcu_lib\wxlua-lua.exe + IF EXIST ..\bin\vcu_dll\wxlua-lua.exe SET LUA=..\bin\vcu_dll\wxlua-lua.exe + IF EXIST ..\bin\vcd_lib\wxlua-lua.exe SET LUA=..\bin\vcd_lib\wxlua-lua.exe + IF EXIST ..\bin\vcd_dll\wxlua-lua.exe SET LUA=..\bin\vcd_dll\wxlua-lua.exe + IF EXIST ..\bin\vc_lib\wxlua-lua.exe SET LUA=..\bin\vc_lib\wxlua-lua.exe + IF EXIST ..\bin\vc_dll\wxlua-lua.exe SET LUA=..\bin\vc_dll\wxlua-lua.exe + echo Generating wxWidgets Binding %LUA% -e"rulesFilename=\"wxwidgets/wx_rules.lua\"" genwxbind.lua > wxwidgets\error.txt + + echo Generating wxStyledTextCtrl Binding %LUA% -e"rulesFilename=\"wxstc/wxstc_rules.lua\"" genwxbind.lua > wxstc\error.txt + + echo Generating wxLuaDebugger Binding %LUA% -e"rulesFilename=\"wxluasocket/wxluasocket_rules.lua\"" genwxbind.lua > wxluasocket\error.txt + + echo Generating wxLuaCan app Binding + cd ..\apps\wxluacan\src + ..\..\..\bindings\%LUA% -e"rulesFilename=\"wxluacan_rules.lua\"" ../../../bindings/genwxbind.lua > error.txt + cd ..\..\..\bindings + echo Done. Index: genwxbind.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v retrieving revision 1.87 retrieving revision 1.88 diff -C2 -d -r1.87 -r1.88 *** genwxbind.lua 12 Dec 2006 07:09:38 -0000 1.87 --- genwxbind.lua 13 Dec 2006 00:27:56 -0000 1.88 *************** *** 24,27 **** --- 24,30 ---- -- --------------------------------------------------------------------------- + WXLUA_BINDING_VERSION = 1 -- Used to verify that the bindings are updated + -- see modules/wxlua/include/wxldefs.h + keywords = {} -- Keyword table conditions = {} -- Preprocessor conditions *************** *** 4013,4017 **** table.insert(fileData, "#include \"wxlua/include/wxlstate.h\"\n") ! table.insert(fileData, "#include \"wxlua/include/wxlbind.h\"\n") if hook_bind_condition then --- 4016,4024 ---- table.insert(fileData, "#include \"wxlua/include/wxlstate.h\"\n") ! table.insert(fileData, "#include \"wxlua/include/wxlbind.h\"\n\n") ! ! table.insert(fileData, "#if WXLUA_BINDING_VERSION > "..WXLUA_BINDING_VERSION.."\n") ! table.insert(fileData, "# error \"The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings.\"\n") ! table.insert(fileData, "#endif //WXLUA_BINDING_VERSION > "..WXLUA_BINDING_VERSION.."\n\n") if hook_bind_condition then |