From: John L. <jr...@us...> - 2007-08-06 01:46:36
|
Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28184/wxLua/bindings/wxwidgets Added Files: wx_datatypes.lua wxdatatypes_rules.lua Log Message: Add wx_datatypes.lua file for use with external bindings --- NEW FILE: wx_datatypes.lua --- -- --------------------------------------------------------------------------- -- This file was generated by genwxbind.lua -- -- Any changes made to this file may be lost when file is regenerated -- --------------------------------------------------------------------------- -- --------------------------------------------------------------------------- -- typedefTable -- --------------------------------------------------------------------------- wx_typedefTable = { WXHANDLE = "void *", ["wxDateTime::wxDateTime_t"] = "unsigned short", wxDouble = "double", wxInt32 = "int", wxLogLevel = "unsigned long", wxNotebookPage = "wxWindow", wxPreviewWindow = "wxScrolledWindow", [...4655 lines suppressed...] wxUSE_XPM_IN_MSW = "wxUSE_XPM_IN_MSW", wxUSE_XRC = "wxUSE_XRC", wxUSE_X_RESOURCES = "wxUSE_X_RESOURCES", wxUSE_ZIPSTREAM = "wxUSE_ZIPSTREAM", wxUSE_ZLIB = "wxUSE_ZLIB", } -- --------------------------------------------------------------------------- -- Cache the dataTypes -- --------------------------------------------------------------------------- for k, v in pairs(wx_typedefTable) do typedefTable[k] = v end for k, v in pairs(wx_dataTypeTable) do dataTypeTable[k] = v end for k, v in pairs(wx_preprocConditionTable) do preprocConditionTable[k] = v end --- NEW FILE: wxdatatypes_rules.lua --- ------------------------------------------------------------------------------- -- Rules to build the wxWidgets datatypes for wxLua -- load using : $lua -e"rulesFilename=\"rules.lua\"" genwxbind.lua ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- Set the root directory of the wxLua distribution, used only in this file wxlua_dir = "../" --============================================================================= -- Set the lua namespace (lua table) that the bindings will be placed into. -- eg. wx.wxWindow(...) hook_lua_namespace = "" -- Set the C++ "namespace" that the bindings will be placed. -- i.e. cpp function names contain this to prevent duplicate function names hook_cpp_namespace = "wx" --============================================================================= -- Set the directory to output the bindings to, both C++ header and source files output_cpp_header_filepath = "" output_cpp_filepath = "" --============================================================================= -- Set the DLLIMPEXP macros for compiling these bindings into a DLL -- Use "WXLUA_NO_DLLIMPEXP" and "WXLUA_NO_DLLIMPEXP_DATA" for no IMPEXP macros output_cpp_impexpsymbol = "" output_cpp_impexpdatasymbol = "" ------------------------------------------------------------------------------- -- Set the name of the header file that will have the #includes from the -- bindings in it. This will be used as #include "hook_cpp_header_filename" in -- the C++ wrapper files, so it must include the proper #include path. hook_cpp_header_filename = "" ------------------------------------------------------------------------------- -- Set the name of the main binding file that will have the glue code for the -- bindings in it. This file along with the output from the *.i files will be -- placed in the "output_cpp_filepath". hook_cpp_binding_filename = "" ------------------------------------------------------------------------------- -- Set the name of the subclassed wxLuaBinding class hook_cpp_binding_classname = "wxLuaBinding_"..hook_cpp_namespace ------------------------------------------------------------------------------- -- Set the function names that wrap the output structs of defined values, -- objects, events, functions, and classes. hook_cpp_define_funcname = "wxLuaGetDefineList_"..hook_cpp_namespace hook_cpp_string_funcname = "wxLuaGetStringList_"..hook_cpp_namespace hook_cpp_object_funcname = "wxLuaGetObjectList_"..hook_cpp_namespace hook_cpp_event_funcname = "wxLuaGetEventList_"..hook_cpp_namespace hook_cpp_function_funcname = "wxLuaGetFunctionList_"..hook_cpp_namespace hook_cpp_class_funcname = "wxLuaGetClassList_"..hook_cpp_namespace ------------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of -- every generated cpp file or "" for none hook_cpp_binding_includes = "" ------------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim below the -- #includes of every generated cpp file or "" for none -- X.h defines Above and Below as numbers, undef them for wx/layout.h hook_cpp_binding_post_includes = "" ------------------------------------------------------------------------------- -- Add additional include information or C++ code for the binding header file, -- hook_cpp_header_filename. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = "" ------------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of -- the single hook_cpp_binding_filename generated cpp file or "" for none hook_cpp_binding_source_includes = "" --============================================================================= -- Set the bindings directory that contains the *.i interface files interface_filepath = wxlua_dir.."bindings/wxwidgets" ------------------------------------------------------------------------------- -- A list of interface files to use to make the bindings. These files will be -- converted into *.cpp and placed in the output_cpp_filepath directory. -- The files are loaded from the interface_filepath. interface_fileTable = {} ------------------------------------------------------------------------------- -- A list of files that contain bindings that need to be overridden or empty -- table {} for none. -- The files are loaded from the interface_filepath. -- override_fileTable = --============================================================================= -- A table containing filenames of XXX_datatype.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 used by this binding. datatype_cache_input_fileTable = { wxlua_dir.."bindings/wxwidgets/wxadv_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxaui_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxbase_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxcore_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxgl_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxhtml_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxmedia_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxnet_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxrichtext_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxstc_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxxml_datatypes.lua", wxlua_dir.."bindings/wxwidgets/wxxrc_datatypes.lua" } ------------------------------------------------------------------------------- -- The file to output the data type cache for later use with a binding that -- makes use of data types (classes, enums, etc) that are declared in this -- binding. The file will be generated in the interface_filepath. datatypes_cache_output_filename = "wx_datatypes.lua" --============================================================================= -- virtual void wxLuaBinding::PreRegister function body for the -- hook_cpp_binding_classname. You can initialize data here. -- Typically this is not necessary and you can rem this out. wxLuaBinding_PreRegister = "" --============================================================================= -- virtual void wxLuaBinding::PostRegister function body for the -- hook_cpp_binding_classname. You can load any other custom bindings here. -- Typically this is not necessary and you can rem this out. -- wxLuaBinding_PostRegister = nothing to do here --============================================================================= -- Add additional conditions here -- example: conditions["DOXYGEN_INCLUDE"] = "defined(DOXYGEN_INCLUDE)" ------------------------------------------------------------------------------- -- Add additional data types here --AllocDataType("wxLuaObject", "class", false) --============================================================================= -- Generate comments into binding C++ code comment_cpp_binding_code = true |