From c11b48536b677d3c101656246804c369f0576328 Mon Sep 17 00:00:00 2001 From: Jouk Jansen Date: Thu, 8 Oct 2009 10:59:33 +0000 Subject: [PATCH] OpenVMS : add compile support for debugrpt sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- descrip.mms | 4 +- samples/debugrpt/descrip.mms | 77 ++++++++++++++++++++++++++++++++++++ setup.h_vms | 12 +++--- src/common/descrip.mms | 9 +++-- src/generic/descrip.mms | 7 ++-- src/unix/descrip.mms | 4 +- 6 files changed, 98 insertions(+), 15 deletions(-) create mode 100644 samples/debugrpt/descrip.mms diff --git a/descrip.mms b/descrip.mms index 93cc4a923d..f10828c15c 100644 --- a/descrip.mms +++ b/descrip.mms @@ -2,7 +2,7 @@ # * # Make file for VMS * # Author : J.Jansen (joukj@hrem.nano.tudelft.nl) * -# Date : 6 October 2009 * +# Date : 7 October 2009 * # * #***************************************************************************** .first @@ -98,6 +98,8 @@ gtk : [.include.wx]setup.h $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1) set default [-.dataview] $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1) + set default [-.debugrpt] + $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1) set default [-.dialogs] $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1) set default [-.dialup] diff --git a/samples/debugrpt/descrip.mms b/samples/debugrpt/descrip.mms new file mode 100644 index 0000000000..05bd83179a --- /dev/null +++ b/samples/debugrpt/descrip.mms @@ -0,0 +1,77 @@ +#***************************************************************************** +# * +# Make file for VMS * +# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) * +# Date : 7 October 2009 * +# * +#***************************************************************************** +.first + define wx [--.include.wx] + +.ifdef __WXMOTIF__ +CXX_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)\ + /assume=(nostdnew,noglobal_array_new)/incl=([],[-]) +.else +.ifdef __WXGTK__ +CXX_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm\ + /assume=(nostdnew,noglobal_array_new)/incl=([],[-]) +.else +.ifdef __WXGTK2__ +CXX_DEFINE = /define=(__WXGTK__=1,VMS_GTK2=1)/float=ieee/name=(as_is,short)/ieee=denorm\ + /assume=(nostdnew,noglobal_array_new)/incl=([],[-]) +.else +.ifdef __WXX11__ +CXX_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\ + /name=(as_is,short)/assume=(nostdnew,noglobal_array_new)/incl=([],[-]) +.else +CXX_DEFINE = +.endif +.endif +.endif +.endif + +.suffixes : .cpp + +.cpp.obj : + cxx $(CXXFLAGS)$(CXX_DEFINE) $(MMS$TARGET_NAME).cpp + +all : +.ifdef __WXMOTIF__ + $(MMS)$(MMSQUALIFIERS) debugrpt.exe +.else +.ifdef __WXGTK__ + $(MMS)$(MMSQUALIFIERS) debugrpt_gtk.exe +.else +.ifdef __WXGTK2__ + $(MMS)$(MMSQUALIFIERS) debugrpt_gtk2.exe +.else +.ifdef __WXX11__ + $(MMS)$(MMSQUALIFIERS) debugrpt_x11.exe +.endif +.endif +.endif +.endif + +OBJS=debugrpt.obj + +.ifdef __WXMOTIF__ +debugrpt.exe : $(OBJS) + cxxlink $(OBJS),[--.lib]vms/opt +.else +.ifdef __WXGTK__ +debugrpt_gtk.exe : $(OBJS) + cxxlink/exec=debugrpt_gtk.exe $(OBJS),[--.lib]vms_gtk/opt +.else +.ifdef __WXGTK2__ +debugrpt_gtk2.exe : $(OBJS) + cxxlink/exec=debugrpt_gtk2.exe $(OBJS),[--.lib]vms_gtk2/opt +.else +.ifdef __WXX11__ +debugrpt_x11.exe : $(OBJS) + cxxlink/exec=debugrpt_x11.exe $(OBJS),[--.lib]vms_x11_univ/opt +.endif +.endif +.endif +.endif + +debugrpt.obj : debugrpt.cpp diff --git a/setup.h_vms b/setup.h_vms index 02e070a700..f97172fdec 100644 --- a/setup.h_vms +++ b/setup.h_vms @@ -3,7 +3,7 @@ * Template for the set.h file for VMS * * Created from setup.h_in * * Author : J.Jansen (joukj@hrem.nano.tudelft.nl) * - * Date : 6 October 2009 * + * Date : 7 October 2009 * * * *****************************************************************************/ @@ -171,17 +171,17 @@ typedef pid_t GPid; #define wxDIALOG_UNIT_COMPATIBILITY 1 -#define wxUSE_DEBUG_CONTEXT 0 +#define wxUSE_DEBUG_CONTEXT 1 -#define wxUSE_DEBUGREPORT 0 +#define wxUSE_DEBUGREPORT 1 #define wxUSE_MEMORY_TRACING 0 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0 -#define wxUSE_DEBUG_NEW_ALWAYS 0 +#define wxUSE_DEBUG_NEW_ALWAYS 1 -#define wxUSE_ON_FATAL_EXCEPTION 0 +#define wxUSE_ON_FATAL_EXCEPTION 1 #define wxUSE_STACKWALKER 0 @@ -875,7 +875,7 @@ typedef pid_t GPid; #undef WX_STATFS_T /* The signal handler prototype */ -#undef wxTYPE_SA_HANDLER +#define wxTYPE_SA_HANDLER int /* gettimeofday() usually takes 2 arguments, but some really old systems might * have only one, in which case define WX_GETTIMEOFDAY_NO_TZ */ diff --git a/src/common/descrip.mms b/src/common/descrip.mms index b1a8baf2de..2724503a95 100644 --- a/src/common/descrip.mms +++ b/src/common/descrip.mms @@ -2,7 +2,7 @@ # * # Make file for VMS * # Author : J.Jansen (joukj@hrem.nano.tudelft.nl) * -# Date : 6 October 2009 * +# Date : 7 October 2009 * # * #***************************************************************************** .first @@ -216,7 +216,7 @@ OBJECTS2=tbarbase.obj,srchcmn.obj,\ wrapsizer.obj,headerctrlcmn.obj,headercolcmn.obj,\ rearrangectrl.obj,spinctrlcmn.obj,datetimefmt.obj,xlocale.obj,\ regex.obj,any.obj,archive.obj,fs_arc.obj,arcall.obj,\ - arcfind.obj,tarstrm.obj,datavcmn.obj + arcfind.obj,tarstrm.obj,datavcmn.obj,debugrpt.obj OBJECTS_MOTIF=radiocmn.obj,combocmn.obj @@ -414,8 +414,8 @@ SOURCES = \ xti.cpp,\ xtistrm.cpp,\ xtixml.cpp,\ - wrapsizer.cpp,archive.cpp,fs_arc.cpp,arcall.obj,arcfind.obj,\ - tarstrm.cpp,datavcmn.cpp + wrapsizer.cpp,archive.cpp,fs_arc.cpp,arcall.cpp,arcfind.cpp,\ + tarstrm.cpp,datavcmn.cpp,debugrpt.cpp all : $(SOURCES) $(MMS)$(MMSQUALIFIERS) $(OBJECTS) @@ -662,3 +662,4 @@ arcall.obj : arcall.cpp arcfind.obj : arcfind.cpp tarstrm.obj : tarstrm.cpp datavcmn.obj : datavcmn.cpp +debugrpt.obj : debugrpt.cpp diff --git a/src/generic/descrip.mms b/src/generic/descrip.mms index 74e4c28f10..eebdae6ef3 100644 --- a/src/generic/descrip.mms +++ b/src/generic/descrip.mms @@ -2,7 +2,7 @@ # * # Make file for VMS * # Author : J.Jansen (joukj@hrem.nano.tudelft.nl) * -# Date : 6 October 2009 * +# Date : 8 October 2009 * # * #***************************************************************************** .first @@ -93,7 +93,7 @@ OBJECTS = \ bmpcboxg.obj,\ filectrlg.obj,srchctlg.obj,notifmsgg.obj,headerctrlg.obj,\ grideditors.obj,vlbox.obj,vscroll.obj,stattextg.obj,\ - editlbox.obj,datavgen.obj + editlbox.obj,datavgen.obj,dbgrptg.obj SOURCES = \ aboutdlgg.cpp,\ @@ -164,7 +164,7 @@ SOURCES = \ vscroll.cpp,\ icon.cpp,bmpcboxg.cpp,filectrlg.cpp,srchctlg.cpp,notifmsgg.cpp\ ,headerctrlg.cpp,grideditors.cpp,stattextg.cpp,editlbox.cpp,\ - datavgen.cpp + datavgen.cpp,dbgrptg.cpp .ifdef __WXMOTIF__ OBJECTS0=statusbr.obj,statline.obj,notebook.obj,spinctlg.obj,collpaneg.obj,\ @@ -294,3 +294,4 @@ headerctrlg.obj : headerctrlg.cpp grideditors.obj : grideditors.cpp infobar.obj : infobar.cpp datavgen.obj : datavgen.cpp +dbgrptg.obj : dbgrptg.cpp diff --git a/src/unix/descrip.mms b/src/unix/descrip.mms index c25d280e90..b480024594 100644 --- a/src/unix/descrip.mms +++ b/src/unix/descrip.mms @@ -2,7 +2,7 @@ # * # Make file for VMS * # Author : J.Jansen (joukj@hrem.nano.tudelft.nl) * -# Date : 24 August 2009 * +# Date : 7 October 2009 * # * #***************************************************************************** .first @@ -101,6 +101,8 @@ all : $(SOURCES) .endif .endif +$(OBJECTS) : [--.include.wx]setup.h + appunix.obj : appunix.cpp apptraits.obj : apptraits.cpp dialup.obj : dialup.cpp -- 2.45.2