From: John L. <jr...@us...> - 2007-07-04 05:39:25
|
Update of /cvsroot/wxlua/wxLua/modules/wxbindaui/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv478/wxLua/modules/wxbindaui/src Added Files: Makefile aui.cpp dummy.cpp wxaui_bind.cpp Log Message: Add wxAUI library and rebuild all build files Cleanup Makefiles using wx-config and include common bits to simplify them --- NEW FILE: wxaui_bind.cpp --- // --------------------------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- #ifdef __BORLANDC__ #pragma hdrstop #endif #include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "wxlua/include/wxlstate.h" #include "wxbindaui/include/wxbind.h" // --------------------------------------------------------------------------- // wxLuaGetEventList_wxaui() is called to register events // --------------------------------------------------------------------------- wxLuaBindEvent* wxLuaGetEventList_wxaui(size_t &count) { static wxLuaBindEvent eventList[] = { #if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI { "wxEVT_AUI_FIND_MANAGER", &wxEVT_AUI_FIND_MANAGER, &s_wxluatag_wxAuiManagerEvent }, { "wxEVT_AUI_PANE_BUTTON", &wxEVT_AUI_PANE_BUTTON, &s_wxluatag_wxAuiManagerEvent }, { "wxEVT_AUI_PANE_CLOSE", &wxEVT_AUI_PANE_CLOSE, &s_wxluatag_wxAuiManagerEvent }, { "wxEVT_AUI_PANE_MAXIMIZE", &wxEVT_AUI_PANE_MAXIMIZE, &s_wxluatag_wxAuiManagerEvent }, { "wxEVT_AUI_PANE_RESTORE", &wxEVT_AUI_PANE_RESTORE, &s_wxluatag_wxAuiManagerEvent }, { "wxEVT_AUI_RENDER", &wxEVT_AUI_RENDER, &s_wxluatag_wxAuiManagerEvent }, { "wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND", &wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND, &s_wxluatag_wxAuiNotebookEvent }, { "wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG", &wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, &s_wxluatag_wxAuiNotebookEvent }, { "wxEVT_COMMAND_AUINOTEBOOK_BUTTON", &wxEVT_COMMAND_AUINOTEBOOK_BUTTON, &s_wxluatag_wxAuiNotebookEvent }, { "wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION", &wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, &s_wxluatag_wxAuiNotebookEvent }, { "wxEVT_COMMAND_AUINOTEBOOK_END_DRAG", &wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, &s_wxluatag_wxAuiNotebookEvent }, { "wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED", &wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, &s_wxluatag_wxAuiNotebookEvent }, { "wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING", &wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, &s_wxluatag_wxAuiNotebookEvent }, { "wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE", &wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, &s_wxluatag_wxAuiNotebookEvent }, #endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI { 0, 0, 0 }, }; count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; return eventList; } // --------------------------------------------------------------------------- // wxLuaGetDefineList_wxaui() is called to register %define and %enum // --------------------------------------------------------------------------- wxLuaBindDefine* wxLuaGetDefineList_wxaui(size_t &count) { static wxLuaBindDefine defineList[] = { #if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI { "wxAUI_BUTTON_CLOSE", wxAUI_BUTTON_CLOSE }, { "wxAUI_BUTTON_CUSTOM1", wxAUI_BUTTON_CUSTOM1 }, { "wxAUI_BUTTON_CUSTOM2", wxAUI_BUTTON_CUSTOM2 }, { "wxAUI_BUTTON_CUSTOM3", wxAUI_BUTTON_CUSTOM3 }, { "wxAUI_BUTTON_DOWN", wxAUI_BUTTON_DOWN }, { "wxAUI_BUTTON_LEFT", wxAUI_BUTTON_LEFT }, { "wxAUI_BUTTON_MAXIMIZE_RESTORE", wxAUI_BUTTON_MAXIMIZE_RESTORE }, { "wxAUI_BUTTON_MINIMIZE", wxAUI_BUTTON_MINIMIZE }, { "wxAUI_BUTTON_OPTIONS", wxAUI_BUTTON_OPTIONS }, { "wxAUI_BUTTON_PIN", wxAUI_BUTTON_PIN }, { "wxAUI_BUTTON_RIGHT", wxAUI_BUTTON_RIGHT }, { "wxAUI_BUTTON_STATE_CHECKED", wxAUI_BUTTON_STATE_CHECKED }, { "wxAUI_BUTTON_STATE_DISABLED", wxAUI_BUTTON_STATE_DISABLED }, { "wxAUI_BUTTON_STATE_HIDDEN", wxAUI_BUTTON_STATE_HIDDEN }, { "wxAUI_BUTTON_STATE_HOVER", wxAUI_BUTTON_STATE_HOVER }, { "wxAUI_BUTTON_STATE_NORMAL", wxAUI_BUTTON_STATE_NORMAL }, { "wxAUI_BUTTON_STATE_PRESSED", wxAUI_BUTTON_STATE_PRESSED }, { "wxAUI_BUTTON_UP", wxAUI_BUTTON_UP }, { "wxAUI_BUTTON_WINDOWLIST", wxAUI_BUTTON_WINDOWLIST }, { "wxAUI_DOCKART_ACTIVE_CAPTION_COLOUR", wxAUI_DOCKART_ACTIVE_CAPTION_COLOUR }, { "wxAUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR", wxAUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR }, { "wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR", wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR }, { "wxAUI_DOCKART_BACKGROUND_COLOUR", wxAUI_DOCKART_BACKGROUND_COLOUR }, { "wxAUI_DOCKART_BORDER_COLOUR", wxAUI_DOCKART_BORDER_COLOUR }, { "wxAUI_DOCKART_CAPTION_FONT", wxAUI_DOCKART_CAPTION_FONT }, { "wxAUI_DOCKART_CAPTION_SIZE", wxAUI_DOCKART_CAPTION_SIZE }, { "wxAUI_DOCKART_GRADIENT_TYPE", wxAUI_DOCKART_GRADIENT_TYPE }, { "wxAUI_DOCKART_GRIPPER_COLOUR", wxAUI_DOCKART_GRIPPER_COLOUR }, { "wxAUI_DOCKART_GRIPPER_SIZE", wxAUI_DOCKART_GRIPPER_SIZE }, { "wxAUI_DOCKART_INACTIVE_CAPTION_COLOUR", wxAUI_DOCKART_INACTIVE_CAPTION_COLOUR }, { "wxAUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR", wxAUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR }, { "wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR", wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR }, { "wxAUI_DOCKART_PANE_BORDER_SIZE", wxAUI_DOCKART_PANE_BORDER_SIZE }, { "wxAUI_DOCKART_PANE_BUTTON_SIZE", wxAUI_DOCKART_PANE_BUTTON_SIZE }, { "wxAUI_DOCKART_SASH_COLOUR", wxAUI_DOCKART_SASH_COLOUR }, { "wxAUI_DOCKART_SASH_SIZE", wxAUI_DOCKART_SASH_SIZE }, { "wxAUI_DOCK_BOTTOM", wxAUI_DOCK_BOTTOM }, { "wxAUI_DOCK_CENTER", wxAUI_DOCK_CENTER }, { "wxAUI_DOCK_CENTRE", wxAUI_DOCK_CENTRE }, { "wxAUI_DOCK_LEFT", wxAUI_DOCK_LEFT }, { "wxAUI_DOCK_NONE", wxAUI_DOCK_NONE }, { "wxAUI_DOCK_RIGHT", wxAUI_DOCK_RIGHT }, { "wxAUI_DOCK_TOP", wxAUI_DOCK_TOP }, { "wxAUI_GRADIENT_HORIZONTAL", wxAUI_GRADIENT_HORIZONTAL }, { "wxAUI_GRADIENT_NONE", wxAUI_GRADIENT_NONE }, { "wxAUI_GRADIENT_VERTICAL", wxAUI_GRADIENT_VERTICAL }, { "wxAUI_INSERT_DOCK", wxAUI_INSERT_DOCK }, { "wxAUI_INSERT_PANE", wxAUI_INSERT_PANE }, { "wxAUI_INSERT_ROW", wxAUI_INSERT_ROW }, { "wxAUI_MGR_ALLOW_ACTIVE_PANE", wxAUI_MGR_ALLOW_ACTIVE_PANE }, { "wxAUI_MGR_ALLOW_FLOATING", wxAUI_MGR_ALLOW_FLOATING }, { "wxAUI_MGR_DEFAULT", wxAUI_MGR_DEFAULT }, { "wxAUI_MGR_HINT_FADE", wxAUI_MGR_HINT_FADE }, { "wxAUI_MGR_NO_VENETIAN_BLINDS_FADE", wxAUI_MGR_NO_VENETIAN_BLINDS_FADE }, { "wxAUI_MGR_RECTANGLE_HINT", wxAUI_MGR_RECTANGLE_HINT }, { "wxAUI_MGR_TRANSPARENT_DRAG", wxAUI_MGR_TRANSPARENT_DRAG }, { "wxAUI_MGR_TRANSPARENT_HINT", wxAUI_MGR_TRANSPARENT_HINT }, { "wxAUI_MGR_VENETIAN_BLINDS_HINT", wxAUI_MGR_VENETIAN_BLINDS_HINT }, { "wxAUI_NB_BOTTOM", wxAUI_NB_BOTTOM }, { "wxAUI_NB_CLOSE_BUTTON", wxAUI_NB_CLOSE_BUTTON }, { "wxAUI_NB_CLOSE_ON_ACTIVE_TAB", wxAUI_NB_CLOSE_ON_ACTIVE_TAB }, { "wxAUI_NB_CLOSE_ON_ALL_TABS", wxAUI_NB_CLOSE_ON_ALL_TABS }, { "wxAUI_NB_DEFAULT_STYLE", wxAUI_NB_DEFAULT_STYLE }, { "wxAUI_NB_LEFT", wxAUI_NB_LEFT }, { "wxAUI_NB_RIGHT", wxAUI_NB_RIGHT }, { "wxAUI_NB_SCROLL_BUTTONS", wxAUI_NB_SCROLL_BUTTONS }, { "wxAUI_NB_TAB_EXTERNAL_MOVE", wxAUI_NB_TAB_EXTERNAL_MOVE }, { "wxAUI_NB_TAB_FIXED_WIDTH", wxAUI_NB_TAB_FIXED_WIDTH }, { "wxAUI_NB_TAB_MOVE", wxAUI_NB_TAB_MOVE }, { "wxAUI_NB_TAB_SPLIT", wxAUI_NB_TAB_SPLIT }, { "wxAUI_NB_TOP", wxAUI_NB_TOP }, { "wxAUI_NB_WINDOWLIST_BUTTON", wxAUI_NB_WINDOWLIST_BUTTON }, #endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI { 0, 0 }, }; count = sizeof(defineList)/sizeof(wxLuaBindDefine) - 1; return defineList; } // --------------------------------------------------------------------------- // wxLuaGetStringList_wxaui() is called to register %define %string // --------------------------------------------------------------------------- wxLuaBindString* wxLuaGetStringList_wxaui(size_t &count) { static wxLuaBindString stringList[] = { { 0, 0 }, }; count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; return stringList; } // --------------------------------------------------------------------------- // wxLuaGetObjectList_wxaui() is called to register object and pointer bindings // --------------------------------------------------------------------------- wxLuaBindObject* wxLuaGetObjectList_wxaui(size_t &count) { static wxLuaBindObject objectList[] = { #if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI { "wxAuiNullDockInfo", &s_wxluatag_wxAuiDockInfo, &wxAuiNullDockInfo, NULL }, { "wxAuiNullPaneInfo", &s_wxluatag_wxAuiPaneInfo, &wxAuiNullPaneInfo, NULL }, #endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI { 0, 0, 0, 0 }, }; count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; return objectList; } // --------------------------------------------------------------------------- // wxLuaGetFunctionList_wxaui() is called to register global functions // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- // wxLuaGetFunctionList_wxaui() is called to register global functions // --------------------------------------------------------------------------- wxLuaBindMethod* wxLuaGetFunctionList_wxaui(size_t &count) { static wxLuaBindMethod functionList[] = { { 0, 0, 0, 0 }, }; count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; return functionList; } // --------------------------------------------------------------------------- // wxLuaGetClassList_wxaui() is called to register classes // --------------------------------------------------------------------------- wxLuaBindClass* wxLuaGetClassList_wxaui(size_t &count) { static wxLuaBindClass classList[] = { #if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI { "wxAuiDefaultDockArt", wxAuiDefaultDockArt_methods, wxAuiDefaultDockArt_methodCount, NULL, &s_wxluatag_wxAuiDefaultDockArt, "wxAuiDockArt", NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiDefaultTabArt", wxAuiDefaultTabArt_methods, wxAuiDefaultTabArt_methodCount, NULL, &s_wxluatag_wxAuiDefaultTabArt, "wxAuiTabArt", NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiDockArt", wxAuiDockArt_methods, wxAuiDockArt_methodCount, NULL, &s_wxluatag_wxAuiDockArt, NULL, NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiDockInfo", wxAuiDockInfo_methods, wxAuiDockInfo_methodCount, NULL, &s_wxluatag_wxAuiDockInfo, NULL, NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiDockUIPart", wxAuiDockUIPart_methods, wxAuiDockUIPart_methodCount, NULL, &s_wxluatag_wxAuiDockUIPart, NULL, NULL ,wxAuiDockUIPart_enums, wxAuiDockUIPart_enumCount, }, { "wxAuiFloatingFrame", wxAuiFloatingFrame_methods, wxAuiFloatingFrame_methodCount, CLASSINFO(wxAuiFloatingFrame), &s_wxluatag_wxAuiFloatingFrame, "wxFrame", NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiManager", wxAuiManager_methods, wxAuiManager_methodCount, CLASSINFO(wxAuiManager), &s_wxluatag_wxAuiManager, "wxEvtHandler", NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiManagerEvent", wxAuiManagerEvent_methods, wxAuiManagerEvent_methodCount, CLASSINFO(wxAuiManagerEvent), &s_wxluatag_wxAuiManagerEvent, "wxEvent", NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiNotebook", wxAuiNotebook_methods, wxAuiNotebook_methodCount, CLASSINFO(wxAuiNotebook), &s_wxluatag_wxAuiNotebook, "wxControl", NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiNotebookEvent", wxAuiNotebookEvent_methods, wxAuiNotebookEvent_methodCount, CLASSINFO(wxAuiNotebookEvent), &s_wxluatag_wxAuiNotebookEvent, "wxNotifyEvent", NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiNotebookPage", wxAuiNotebookPage_methods, wxAuiNotebookPage_methodCount, NULL, &s_wxluatag_wxAuiNotebookPage, NULL, NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiNotebookPageArray", wxAuiNotebookPageArray_methods, wxAuiNotebookPageArray_methodCount, NULL, &s_wxluatag_wxAuiNotebookPageArray, NULL, NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiPaneButton", wxAuiPaneButton_methods, wxAuiPaneButton_methodCount, NULL, &s_wxluatag_wxAuiPaneButton, NULL, NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiPaneInfo", wxAuiPaneInfo_methods, wxAuiPaneInfo_methodCount, NULL, &s_wxluatag_wxAuiPaneInfo, NULL, NULL ,wxAuiPaneInfo_enums, wxAuiPaneInfo_enumCount, }, { "wxAuiPaneInfoArray", wxAuiPaneInfoArray_methods, wxAuiPaneInfoArray_methodCount, NULL, &s_wxluatag_wxAuiPaneInfoArray, NULL, NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiSimpleTabArt", wxAuiSimpleTabArt_methods, wxAuiSimpleTabArt_methodCount, NULL, &s_wxluatag_wxAuiSimpleTabArt, "wxAuiTabArt", NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiTabArt", wxAuiTabArt_methods, wxAuiTabArt_methodCount, NULL, &s_wxluatag_wxAuiTabArt, NULL, NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiTabContainerButton", wxAuiTabContainerButton_methods, wxAuiTabContainerButton_methodCount, NULL, &s_wxluatag_wxAuiTabContainerButton, NULL, NULL ,s_wxluadefineArray_None, 0, }, { "wxAuiTabCtrl", wxAuiTabCtrl_methods, wxAuiTabCtrl_methodCount, CLASSINFO(wxAuiTabCtrl), &s_wxluatag_wxAuiTabCtrl, "wxControl", NULL ,s_wxluadefineArray_None, 0, }, #endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI { 0, 0, 0, 0, 0, 0, 0 }, }; count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; return classList; } // --------------------------------------------------------------------------- // wxLuaBinding_wxaui() - the binding class // --------------------------------------------------------------------------- // binding class extern wxLuaBindClass *wxLuaGetClassList_wxaui(size_t &count); extern wxLuaBindDefine *wxLuaGetDefineList_wxaui(size_t &count); extern wxLuaBindString *wxLuaGetStringList_wxaui(size_t &count); extern wxLuaBindEvent *wxLuaGetEventList_wxaui(size_t &count); extern wxLuaBindObject *wxLuaGetObjectList_wxaui(size_t &count); extern wxLuaBindMethod *wxLuaGetFunctionList_wxaui(size_t &count); IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxaui, wxLuaBinding) wxLuaBinding_wxaui::wxLuaBinding_wxaui() : wxLuaBinding() { m_bindingName = wxT("wxaui"); m_nameSpace = wxT("wxaui"); m_classArray = wxLuaGetClassList_wxaui(m_classCount); m_defineArray = wxLuaGetDefineList_wxaui(m_defineCount); m_stringArray = wxLuaGetStringList_wxaui(m_stringCount); m_eventArray = wxLuaGetEventList_wxaui(m_eventCount); m_objectArray = wxLuaGetObjectList_wxaui(m_objectCount); m_functionArray = wxLuaGetFunctionList_wxaui(m_functionCount); InitBinding(); } void wxLuaBinding_wxaui::PreRegister(const wxLuaState& , bool , int ) { } void wxLuaBinding_wxaui::PostRegister(const wxLuaState& , bool , int ) { } // bind wxLuaBinding_wxaui to a single wxLuaState bool wxLuaBinding_wxaui_bind(const wxLuaState& wxlState_) { wxLuaState wxlState(wxlState_); wxCHECK_MSG(wxlState.Ok(), false, wxT("Invalid wxLuaState")); wxASSERT(!wxlState.GetLuaStateData()->m_bindings_registered); wxASSERT(!wxlState.GetLuaBinding(wxT("wxaui"))); // ignore binding request when we already have wxaui registered if (wxlState.GetLuaBinding(wxT("wxaui"))) return false; wxlState.GetLuaStateData()->m_bindingList.Append(new wxLuaBinding_wxaui()); return true; } // initialize wxLuaBinding_wxaui for all wxLuaStates bool wxLuaBinding_wxaui_init() { static wxLuaBinding_wxaui m_binding; wxLuaBindingList::compatibility_iterator node = wxLuaBinding::GetBindingList()->Find(&m_binding); if (node && (node->GetData() == &m_binding)) return false; wxLuaBinding::GetBindingList()->Append(&m_binding); return true; } #if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiDefaultDockArt, wxAuiDefaultDockArt) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiDefaultTabArt, wxAuiDefaultTabArt) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiDockArt, wxAuiDockArt) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiDockInfo, wxAuiDockInfo) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiDockUIPart, wxAuiDockUIPart) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiNotebookPage, wxAuiNotebookPage) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiNotebookPageArray, wxAuiNotebookPageArray) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiPaneButton, wxAuiPaneButton) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiPaneInfo, wxAuiPaneInfo) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiPaneInfoArray, wxAuiPaneInfoArray) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiSimpleTabArt, wxAuiSimpleTabArt) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiTabArt, wxAuiTabArt) wxLUA_IMPLEMENT_ENCAPSULATION(wxAuiTabContainerButton, wxAuiTabContainerButton) #endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI --- NEW FILE: Makefile --- # File: Makefile # Author: John Labenski, J Winwood # Created: 2002 # Updated: # Copyright: (c) 2002 Lomtick Software. All rights reserved. # # Makefile for wxLua library using gmake # ---------------------------------------------------------------------------- # Set path to root of wxLua WXLUA_DIR = ../../.. # ---------------------------------------------------------------------------- # Include wxLua settings using wx-config for wxWidgets parameters include $(WXLUA_DIR)/build/Makefile_wx-config.in # ---------------------------------------------------------------------------- TARGET_LIBNAME = lib$(WXLUAAUI_LIB) TARGET_LIBDIR = $(WXLUA_LIBDIR) TARGET_LIB_STATIC = $(TARGET_LIBDIR)/$(TARGET_LIBNAME).a TARGET_LIB_SHARED = $(TARGET_LIBDIR)/$(TARGET_LIBNAME).so.$(WXLUA_LIBVERSION_CURRENT).$(WXLUA_LIBVERSION_REVISION).$(WXLUA_LIBVERSION_AGE) TARGET_LIB_LINK1 = $(TARGET_LIBNAME).so.$(WXLUA_LIBVERSION_CURRENT) TARGET_LIB_LINK2 = $(TARGET_LIBNAME).so # ---------------------------------------------------------------------------- HEADERS = SOURCES = \ aui.cpp \ wxaui_bind.cpp OBJECTS=$(SOURCES:.cpp=.o) DEPFILES=$(OBJECTS:.o=.d) # ---------------------------------------------------------------------------- .cpp.o: $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< all: $(TARGET_LIB_STATIC) $(TARGET_LIB_SHARED) $(TARGET_LIB_STATIC) : $(OBJECTS) @$(RM) $@ $(AR) $(AROPTIONS) $@ $(OBJECTS) $(RANLIB) $@ $(TARGET_LIB_SHARED): $(OBJECTS) $(CXX) -shared -o $@ $(OBJECTS) $(LIBEXTRALIBS) cd $(TARGET_LIBDIR) \ && $(RM) $(TARGET_LIB_LINK1) $(TARGET_LIB_LINK2) \ && $(LN_S) $(TARGET_LIB_SHARED) $(TARGET_LIB_LINK1) \ && $(LN_S) $(TARGET_LIB_SHARED) $(TARGET_LIB_LINK2) clean: rm -f core $(OBJECTS) $(DEPFILES) \ $(TARGET_LIB_STATIC) $(TARGET_LIB_SHARED) \ $(TARGET_LIBDIR)/$(TARGET_LIB_LINK1) \ $(TARGET_LIBDIR)/$(TARGET_LIB_LINK2) # ---------------------------------------------------------------------------- # Include wxLua targets using wx-config for wxWidgets parameters include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in -include $(DEPFILES) --- NEW FILE: dummy.cpp --- /* * File: src/common/dummy.cpp * Purpose: See below * Author: Julian Smart * Created: 1993 * Updated: * Copyright: (c) 1993, AIAI, University of Edinburgh */ /* A dummy file to include wx.h. If precompiling wx.h, * always start by compiling this and producing the PCH file. * Then subsequent source files use the PCH file. * * If precompiling wx.h for wxWidgets and derived apps, * link dummy.obj with your program. * * This will produce a big PCH file. */ #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifdef __WXMSW__ #include "wx/msw/msvcrt.h" #endif #ifdef __VISAGECPP__ char wxDummyChar = 0; #endif --- NEW FILE: aui.cpp --- // --------------------------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- #ifdef __BORLANDC__ #pragma hdrstop #endif #include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "wxlua/include/wxlstate.h" #include "wxbindaui/include/wxbind.h" [...7441 lines suppressed...] } // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxAuiPaneButton_methods[] = { // %member { "Get_button_id", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneButton_Get_button_id, 1, NULL }, // %member { "Set_button_id", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneButton_Set_button_id, 1, NULL }, { "button_id", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneButton_Set_button_id, 1, NULL }, { "button_id", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneButton_Get_button_id, 1, NULL }, { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiPaneButton_delete, 1, NULL }, { 0, 0, 0, 0 }, }; int wxAuiPaneButton_methodCount = sizeof(wxAuiPaneButton_methods)/sizeof(wxLuaBindMethod) - 1; #endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI |