From: John L. <jr...@us...> - 2006-01-19 04:49:19
|
Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12285/bindings/wxwidgets Modified Files: wx.rules Log Message: allow using the cached data type files for other bindings Index: wx.rules =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wx.rules,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wx.rules 12 Dec 2005 05:16:31 -0000 1.10 --- wx.rules 19 Jan 2006 04:49:11 -0000 1.11 *************** *** 17,27 **** ------------------------------------------------------------------------------- ! -- Set the namespace that the bindings will be placed, eg. wx.wxWindow(...) ! hook_namespace = "wx" -- Set any #includes or other C++ code to be placed verbatim at the top of -- every generated file or "" for none hook_header_includes = "#include \"wx/wxprec.h\"\n" -- Set the name of the subclassed wxLuaBinding class ! hook_binding_class = hook_namespace.."_Binding" ------------------------------------------------------------------------------- --- 17,32 ---- ------------------------------------------------------------------------------- ! -- Set the lua namespace that the bindings will be placed, eg. wx.wxWindow(...) ! hook_lua_namespace = "wx" ! ! -- Set the C++ "namespace" that the bindings will be placed, eg. function names ! -- contain this to prevent duplicate function names ! hook_cpp_namespace = "wx" ! -- Set any #includes or other C++ code to be placed verbatim at the top of -- every generated file or "" for none hook_header_includes = "#include \"wx/wxprec.h\"\n" -- Set the name of the subclassed wxLuaBinding class ! hook_binding_class = hook_cpp_namespace.."_Binding" ------------------------------------------------------------------------------- *************** *** 34,51 **** -- Set the files to output the structs of wrapped defined values, objects, -- events, builtin (static functionc), and classes ! hook_define_file = hook_namespace.."_define" ! hook_define_fn = "wxLuaGetDefineList_"..hook_namespace ! hook_object_file = hook_namespace.."_object" ! hook_object_fn = "wxLuaGetObjectList_"..hook_namespace ! hook_event_file = hook_namespace.."_event" ! hook_event_fn = "wxLuaGetEventList_"..hook_namespace ! hook_builtin_file = hook_namespace.."_builtin" ! hook_builtin_fn = "wxLuaGetBuiltinList_"..hook_namespace ! hook_class_file = hook_namespace.."_class" ! hook_class_fn = "wxLuaGetClassList_"..hook_namespace ------------------------------------------------------------------------------- --- 39,56 ---- -- Set the files to output the structs of wrapped defined values, objects, -- events, builtin (static functionc), and classes ! hook_define_file = hook_cpp_namespace.."_define" ! hook_define_fn = "wxLuaGetDefineList_"..hook_cpp_namespace ! hook_object_file = hook_cpp_namespace.."_object" ! hook_object_fn = "wxLuaGetObjectList_"..hook_cpp_namespace ! hook_event_file = hook_cpp_namespace.."_event" ! hook_event_fn = "wxLuaGetEventList_"..hook_cpp_namespace ! hook_builtin_file = hook_cpp_namespace.."_builtin" ! hook_builtin_fn = "wxLuaGetBuiltinList_"..hook_cpp_namespace ! hook_class_file = hook_cpp_namespace.."_class" ! hook_class_fn = "wxLuaGetClassList_"..hook_cpp_namespace ------------------------------------------------------------------------------- *************** *** 94,97 **** --- 99,112 ---- ------------------------------------------------------------------------------- + -- a table containing filenames of DataTypes.Cache.lua from other wrappers to + -- to define classes and data types used in this wrapper + -- NOTE: for the base wxWidgets wrappers we don't load the cache since they + -- don't depend on other wrappers and can cause problems when interface + -- files are updated. Make sure you delete or have updated any cache file + -- that changes any data types. + + --dataTypeCacheFilenames = { "wxwidgets/DataTypes.Cache.lua" } + + ------------------------------------------------------------------------------- -- virtual wxLuaBinding::OnRegister body - can load extra lua bindings here |