backport changes for D Mars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,6 +26,13 @@
|
|||||||
$project{$tag} .= '$(GENDIR)\\' . $file . " "
|
$project{$tag} .= '$(GENDIR)\\' . $file . " "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach $file (sort keys %wxHTML) {
|
||||||
|
next if $wxHTML{$file} =~ /\b16\b/;
|
||||||
|
|
||||||
|
$file =~ s/cp?p?$/obj/;
|
||||||
|
$project{"WXHTMLOBJS"} .= '$(HTMLDIR)\\' . $file . " "
|
||||||
|
}
|
||||||
|
|
||||||
foreach $file (sort keys %wxCommon) {
|
foreach $file (sort keys %wxCommon) {
|
||||||
next if $wxCommon{$file} =~ /\b(16|U)\b/;
|
next if $wxCommon{$file} =~ /\b(16|U)\b/;
|
||||||
|
|
||||||
@@ -35,9 +42,9 @@
|
|||||||
|
|
||||||
foreach $file (sort keys %wxMSW) {
|
foreach $file (sort keys %wxMSW) {
|
||||||
#! these files don't compile with SC++ 6
|
#! these files don't compile with SC++ 6
|
||||||
next if $file =~ /^(joystick|pnghand)\./;
|
#! next if $file =~ /^(joystick|pnghand)\./;
|
||||||
|
|
||||||
next if $wxGeneric{$file} =~ /\b16\b/;
|
next if $wxMSW{$file} =~ /\b16\b/;
|
||||||
|
|
||||||
my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
|
my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
|
||||||
$file =~ s/cp?p?$/obj/;
|
$file =~ s/cp?p?$/obj/;
|
||||||
@@ -50,18 +57,20 @@
|
|||||||
# This file was automatically generated by tmake
|
# This file was automatically generated by tmake
|
||||||
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
|
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
|
||||||
|
|
||||||
# Symantec C++ makefile for the msw objects
|
# Digital mars makefile
|
||||||
|
# was Symantec C++ makefile for the msw objects
|
||||||
|
#
|
||||||
# called from src\makefile.sc
|
# called from src\makefile.sc
|
||||||
|
|
||||||
# configuration section (see src\makefile.sc) ###########################
|
# configuration section (see src\makefile.sc) ###########################
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
WXDIR = ..\..
|
||||||
|
|
||||||
include ..\makesc.env
|
include ..\makesc.env
|
||||||
|
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
|
|
||||||
LIBTARGET = $(LIBDIR)\wx.lib
|
LIBTARGET = $(LIBDIR)\wx$(SC_SUFFIX).lib
|
||||||
|
|
||||||
OPTIONS=
|
OPTIONS=
|
||||||
|
|
||||||
@@ -69,43 +78,90 @@ OPTIONS=
|
|||||||
|
|
||||||
GENDIR=$(WXDIR)\src\generic
|
GENDIR=$(WXDIR)\src\generic
|
||||||
COMMDIR=$(WXDIR)\src\common
|
COMMDIR=$(WXDIR)\src\common
|
||||||
|
HTMLDIR=$(WXDIR)\src\html
|
||||||
OLEDIR=ole
|
OLEDIR=ole
|
||||||
MSWDIR=$(WXDIR)\src\msw
|
MSWDIR=$(WXDIR)\src\msw
|
||||||
|
|
||||||
GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
|
GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
|
||||||
|
|
||||||
COMMONOBJS = \
|
COMMONOBJS = #$ ExpandList("WXCOMMONOBJS");
|
||||||
$(COMMDIR)\y_tab.obj \
|
|
||||||
#$ ExpandList("WXCOMMONOBJS");
|
HTMLOBJS = #$ ExpandList ("WXHTMLOBJS");
|
||||||
|
|
||||||
MSWOBJS = #$ ExpandList("WXMSWOBJS");
|
MSWOBJS = #$ ExpandList("WXMSWOBJS");
|
||||||
|
|
||||||
# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
|
# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
|
||||||
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
|
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
|
||||||
|
|
||||||
all: $(LIBTARGET)
|
all: MAKEARCHDIR MAKELIBS PCH $(LIBTARGET) zlib png jpeg tiff regex
|
||||||
|
|
||||||
|
MAKEARCHDIR:
|
||||||
|
@if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
|
||||||
|
@if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)
|
||||||
|
@if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
|
||||||
|
@if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
|
||||||
|
@if not exist $(WXOUTDIR)\nul mkdir $(WXOUTDIR)
|
||||||
|
|
||||||
|
#build our own copies of missing libraries
|
||||||
|
MAKELIBS:
|
||||||
|
implib /s $(LIBDIR)\$(SHELLLIB) $(LIBDIR)\$(SC_SUFFIX)\$(SHELLLIB).def
|
||||||
|
implib /s $(LIBDIR)\$(WINSOCKLIB) $(LIBDIR)\$(SC_SUFFIX)\$(WINSOCKLIB).def
|
||||||
|
|
||||||
$(LIBTARGET): $(OBJECTS)
|
$(LIBTARGET): $(OBJECTS)
|
||||||
-del $(LIBTARGET)
|
-del $(LIBTARGET)
|
||||||
*lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
|
*lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
|
||||||
|
|
||||||
clean:
|
clean: clean_msw clean_zlib clean_png clean_jpeg clean_tiff clean_regex clean_pch
|
||||||
|
|
||||||
|
clean_msw:
|
||||||
|
-del $(COMMDIR)\*.obj
|
||||||
|
-del $(MSWDIR)\*.obj
|
||||||
|
-del $(GENDIR)\*.obj
|
||||||
|
-del $(HTMLDIR)\*.obj
|
||||||
-del *.obj
|
-del *.obj
|
||||||
|
-del *.sym
|
||||||
|
-del ole\*.obj
|
||||||
-del $(LIBTARGET)
|
-del $(LIBTARGET)
|
||||||
|
|
||||||
$(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
|
PCH: $(INCDIR)\wx\wxprec.h
|
||||||
|
dmc $(CPPFLAGS) $(CFLAGS) $(INCLUDE) -HF$(WXOUTDIR)\wxprec.SYM -o$(WXOUTDIR)\wxprec.PCO $(INCDIR)\wx\wxprec.h
|
||||||
|
|
||||||
$(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
|
clean_pch:
|
||||||
copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
|
del $(WXOUTDIR)\*.sym
|
||||||
|
del $(WXOUTDIR)\*.PCO
|
||||||
|
|
||||||
$(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
|
|
||||||
copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
|
|
||||||
|
|
||||||
# $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
|
png:
|
||||||
# *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
|
make -f $(WXDIR)\src\png\makefile.sc FINAL=$(FINAL)
|
||||||
|
|
||||||
|
clean_png:
|
||||||
|
make -f $(WXDIR)\src\png\makefile.sc clean
|
||||||
|
|
||||||
|
zlib:
|
||||||
|
make -f $(WXDIR)\src\zlib\makefile.sc FINAL=$(FINAL)
|
||||||
|
|
||||||
|
clean_zlib:
|
||||||
|
make -f $(WXDIR)\src\zlib\makefile.sc clean
|
||||||
|
|
||||||
|
jpeg:
|
||||||
|
make -f $(WXDIR)\src\jpeg\makefile.sc FINAL=$(FINAL)
|
||||||
|
|
||||||
|
clean_jpeg:
|
||||||
|
make -f $(WXDIR)\src\jpeg\makefile.sc clean
|
||||||
|
|
||||||
|
regex:
|
||||||
|
make -f $(WXDIR)\src\regex\makefile.sc FINAL=$(FINAL)
|
||||||
|
|
||||||
|
clean_regex:
|
||||||
|
make -f $(WXDIR)\src\regex\makefile.sc clean
|
||||||
|
|
||||||
|
tiff:
|
||||||
|
make -f $(WXDIR)\src\tiff\makefile.sc FINAL=$(FINAL)
|
||||||
|
|
||||||
|
clean_tiff:
|
||||||
|
make -f $(WXDIR)\src\tiff\makefile.sc clean
|
||||||
|
|
||||||
MFTYPE=sc
|
MFTYPE=sc
|
||||||
makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
|
self : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
|
||||||
cd $(WXWIN)\distrib\msw\tmake
|
perl -x$(WXWIN)\distrib\msw\tmake -S tmake -t$(MFTYPE) wxwin.pro -o $(WXWIN)\distrib\msw\tmake\makefile.sc
|
||||||
tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
|
copy $(WXWIN)\distrib\msw\tmake\makefile.$(MFTYPE) $(WXWIN)\src\msw
|
||||||
copy makefile.$(MFTYPE) $(WXWIN)\src\msw
|
|
||||||
|
@@ -156,6 +156,9 @@
|
|||||||
#elif defined(__WATCOMC__) && (__WATCOMC__ >= 1100)
|
#elif defined(__WATCOMC__) && (__WATCOMC__ >= 1100)
|
||||||
// Watcom 11+ supports bool
|
// Watcom 11+ supports bool
|
||||||
#define HAVE_BOOL
|
#define HAVE_BOOL
|
||||||
|
#elif defined(__DIGITALMARS__)
|
||||||
|
// DigitalMars supports bool
|
||||||
|
#define HAVE_BOOL
|
||||||
#elif defined(__GNUWIN32__)
|
#elif defined(__GNUWIN32__)
|
||||||
// Cygwin supports bool
|
// Cygwin supports bool
|
||||||
#define HAVE_BOOL
|
#define HAVE_BOOL
|
||||||
@@ -242,6 +245,8 @@ typedef int wxWindowID;
|
|||||||
#elif defined(__MWERKS__) && (__MWERKS__ >= 0x2400)
|
#elif defined(__MWERKS__) && (__MWERKS__ >= 0x2400)
|
||||||
// Metrowerks CW6 or higher has explicit
|
// Metrowerks CW6 or higher has explicit
|
||||||
#define HAVE_EXPLICIT
|
#define HAVE_EXPLICIT
|
||||||
|
#elif defined(__DIGITALMARS__)
|
||||||
|
#define HAVE_EXPLICIT
|
||||||
#endif
|
#endif
|
||||||
#endif // !HAVE_EXPLICIT
|
#endif // !HAVE_EXPLICIT
|
||||||
|
|
||||||
|
@@ -163,7 +163,7 @@ typedef struct tagNMLVDISPINFOW {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ((defined(__WATCOMC__) && __WATCOMC__ >= 1200) || defined(__GNUWIN32__) || defined (__MINGW32__) || defined (__BORLANDC__)) && !defined(HDN_GETDISPINFOW)
|
#if ((defined(__WATCOMC__) && __WATCOMC__ >= 1200) || defined(__GNUWIN32__) || defined (__MINGW32__) || defined(__DIGITALMARS__) || defined (__BORLANDC__)) && !defined(HDN_GETDISPINFOW)
|
||||||
#define HDN_GETDISPINFOW (HDN_FIRST-29)
|
#define HDN_GETDISPINFOW (HDN_FIRST-29)
|
||||||
#if !wxCHECK_W32API_VERSION(2, 2)
|
#if !wxCHECK_W32API_VERSION(2, 2)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@@ -178,6 +178,12 @@ typedef struct {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Toolbar define value missing
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
#if defined(__DIGITALMARS__)
|
||||||
|
#define CCS_VERT 0x00000080L
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// MS HTML Help
|
// MS HTML Help
|
||||||
|
@@ -135,7 +135,7 @@ private:
|
|||||||
{ \
|
{ \
|
||||||
wxLogRelease(_T(#classname), m_cRef); \
|
wxLogRelease(_T(#classname), m_cRef); \
|
||||||
\
|
\
|
||||||
if ( --m_cRef == 0 ) { \
|
if ( --m_cRef == wxAutoULong(0) ) { \
|
||||||
delete this; \
|
delete this; \
|
||||||
return 0; \
|
return 0; \
|
||||||
} \
|
} \
|
||||||
|
@@ -276,6 +276,14 @@
|
|||||||
#define __X__
|
#define __X__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __SC__
|
||||||
|
#ifdef __DMC__
|
||||||
|
#define __DIGITALMARS__
|
||||||
|
#else
|
||||||
|
#define __SYMANTEC__
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This macro can be used to test the gcc version and can be used like this:
|
This macro can be used to test the gcc version and can be used like this:
|
||||||
|
|
||||||
@@ -294,7 +302,7 @@
|
|||||||
This macro can be used to check that the version of mingw32 compiler is
|
This macro can be used to check that the version of mingw32 compiler is
|
||||||
at least maj.min
|
at least maj.min
|
||||||
*/
|
*/
|
||||||
#if defined( __GNUWIN32__ ) || defined( __MINGW32__ ) || defined( __CYGWIN__ )
|
#if defined( __GNUWIN32__ ) || defined( __MINGW32__ ) || defined( __CYGWIN__ ) || defined(__DIGITALMARS__)
|
||||||
#include "wx/msw/gccpriv.h"
|
#include "wx/msw/gccpriv.h"
|
||||||
#else
|
#else
|
||||||
#undef wxCHECK_W32API_VERSION
|
#undef wxCHECK_W32API_VERSION
|
||||||
|
@@ -20,6 +20,10 @@
|
|||||||
#include "wx/wxchar.h"
|
#include "wx/wxchar.h"
|
||||||
#include "wx/buffer.h"
|
#include "wx/buffer.h"
|
||||||
|
|
||||||
|
#ifdef __DIGITALMARS__
|
||||||
|
#include "typeinfo.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
|
#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
|
||||||
# undef __BSEXCPT__
|
# undef __BSEXCPT__
|
||||||
#endif
|
#endif
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
// check if to use precompiled headers: do it for most Windows compilers unless
|
// check if to use precompiled headers: do it for most Windows compilers unless
|
||||||
// explicitly disabled by defining NOPCH
|
// explicitly disabled by defining NOPCH
|
||||||
#if ((defined(__BORLANDC__) || defined(__VISUALC__) || defined(__WATCOMC__)) && defined(__WXMSW__)) || defined(__VISAGECPP__) || defined(__MWERKS__)
|
#if ((defined(__BORLANDC__) || defined(__VISUALC__) || defined(__DIGITALMARS__) || defined(__WATCOMC__)) && defined(__WXMSW__)) || defined(__VISAGECPP__) || defined(__MWERKS__)
|
||||||
#if !defined(NOPCH)
|
#if !defined(NOPCH)
|
||||||
#define WX_PRECOMP
|
#define WX_PRECOMP
|
||||||
#endif
|
#endif
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
// This causes a conflict with jmorecfg.h header from libjpeg, so we have
|
// This causes a conflict with jmorecfg.h header from libjpeg, so we have
|
||||||
// to make sure libjpeg won't try to define boolean itself. This is done by
|
// to make sure libjpeg won't try to define boolean itself. This is done by
|
||||||
// defining HAVE_BOOLEAN.
|
// defining HAVE_BOOLEAN.
|
||||||
#if defined(__WXMSW__) && (defined(__MWERKS__) || (defined(__WATCOMC__) && __WATCOMC__ < 1200))
|
#if defined(__WXMSW__) && (defined(__MWERKS__) || defined(__DIGITALMARS__) || (defined(__WATCOMC__) && __WATCOMC__ < 1200))
|
||||||
#define HAVE_BOOLEAN
|
#define HAVE_BOOLEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
@@ -39,7 +39,7 @@
|
|||||||
#endif //WX_PRECOMP
|
#endif //WX_PRECOMP
|
||||||
|
|
||||||
// FreeBSD & Watcom require this, it probably doesn't hurt for others
|
// FreeBSD & Watcom require this, it probably doesn't hurt for others
|
||||||
#if defined(__UNIX__) || defined(__WATCOMC__)
|
#if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -746,7 +746,7 @@ void wxGenericDirCtrl::OnExpandItem(wxTreeEvent &event)
|
|||||||
|
|
||||||
// VS: this is needed because the event handler is called from wxTreeCtrl
|
// VS: this is needed because the event handler is called from wxTreeCtrl
|
||||||
// ctor when wxTR_HIDE_ROOT was specified
|
// ctor when wxTR_HIDE_ROOT was specified
|
||||||
if (m_rootId == 0)
|
if (!m_rootId.IsOk())
|
||||||
m_rootId = m_treeCtrl->GetRootItem();
|
m_rootId = m_treeCtrl->GetRootItem();
|
||||||
|
|
||||||
ExpandDir(parentId);
|
ExpandDir(parentId);
|
||||||
|
@@ -1,41 +1,50 @@
|
|||||||
# Common settings for Symantec
|
# Common settings for Symantec
|
||||||
|
# and digital mars successor (http://www.digitalmars.com)
|
||||||
|
SC_SUFFIX=_sc
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
####WXDIR = $(WXWIN)
|
||||||
|
WXOUTDIR=$(WXDIR)\d_mars
|
||||||
INCDIR = $(WXDIR)\include
|
INCDIR = $(WXDIR)\include
|
||||||
|
CONTRIBINCDIR = $(WXDIR)\contrib\include
|
||||||
|
MSWINCDIR = $(WXDIR)\include\wx\msw
|
||||||
|
ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX)
|
||||||
LIBDIR = $(WXDIR)\lib
|
LIBDIR = $(WXDIR)\lib
|
||||||
WXLIB = $(LIBDIR)\wx.lib
|
WXLIB = wx$(SC_SUFFIX).lib
|
||||||
|
WINSOCKLIB = wsock32$(SC_SUFFIX)
|
||||||
|
SHELLLIB = shell32$(SC_SUFFIX)
|
||||||
|
SUPPORTLIBS = png$(SC_SUFFIX) tiff$(SC_SUFFIX) jpeg$(SC_SUFFIX) zlib$(SC_SUFFIX) $(SHELLLIB) $(WINSOCKLIB)
|
||||||
|
|
||||||
SRCSUFF = cpp
|
SRCSUFF = cpp
|
||||||
OBJSUFF = obj
|
OBJSUFF = obj
|
||||||
|
|
||||||
INCLUDE=$(INCDIR)
|
INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(CONTRIBINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# default values
|
# default values
|
||||||
|
|
||||||
CC=sc
|
CC=dmc
|
||||||
RC=rc
|
RC=rcc
|
||||||
|
|
||||||
# WIN16 settings
|
|
||||||
#CFLAGS = -Jm -ml -W -D__WXMSW__ -D__SC__ -D__WXDEBUG__ -D__WINDOWS__ -D__WIN16__ $(EXTRACPPFLAGS)
|
|
||||||
#LINKER = link
|
|
||||||
#LDFLAGS = -ml -W -L$(LINKER).exe $(EXTRALDFLAGS)
|
|
||||||
#LIBS=$(WXLIB) $(EXTRALIBS) libw.lib commdlg.lib ddeml.lib shell.lib # $(LIB)\ctl3dv2.lib
|
|
||||||
#DEFFILE=sc16.def
|
|
||||||
|
|
||||||
# WIN32 settings
|
# WIN32 settings
|
||||||
CFLAGS = -o -mn -W -D__NT__ -DWIN32 -D__WIN32__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
|
# -H ... fix to use directory
|
||||||
LINKER = link386
|
##CFLAGS = -o -mn -W -H -D__NT__ -DWIN32 -D__WIN32__ -D__WIN95__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
|
||||||
LDFLAGS = -L$(LINKER).exe $(EXTRALDFLAGS)
|
CFLAGS = -mn -D_WINDOWS -6 -a8 -Nc -c -H -HD$(WXOUTDIR) -HO- -DWXMSW -D__WIN32__ -D__WIN95__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
|
||||||
LIBS=$(WXLIB) $(EXTRALIBS) ctl3d32.lib shell32.lib comdlg32.lib user32.lib gdi32.lib kernel32.lib winmm.lib
|
CPPFLAGS = -cpp -Ae -Ar
|
||||||
DEFFILE=sc32.def
|
|
||||||
|
LINKER = link
|
||||||
|
# possible bug with putting d on any extralibs if we have debug and release versions one day
|
||||||
|
LDFLAGS = $(EXTRALDFLAGS)
|
||||||
|
LIBS=$(WXLIB) $(EXTRALIBS) $(SUPPORTLIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid
|
||||||
|
|
||||||
|
|
||||||
.$(SRCSUFF).obj:
|
.$(SRCSUFF).obj:
|
||||||
*$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $< -o$@
|
*$(CC) -c $(CPPFLAGS) $(CFLAGS) $(INCLUDE) $(OPTIONS) $< -o$@
|
||||||
|
|
||||||
# -Jm: relaxed type checking
|
# -Jm: relaxed type checking only for .C files
|
||||||
.c.obj:
|
.c.obj:
|
||||||
*$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@
|
*$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@
|
||||||
|
|
||||||
.rc.res:
|
.rc.res:
|
||||||
*$(RC) -r -I$(INCLUDE) $<
|
*$(RC) -D__NT__ -r $(INCLUDE) $<
|
||||||
|
|
||||||
|
@@ -152,7 +152,7 @@ bool wxCheckListBoxItem::OnDrawItem(wxDC& dc, const wxRect& rc,
|
|||||||
HBITMAP hbmpOld = (HBITMAP)SelectObject(hdcMem, hbmpCheck);
|
HBITMAP hbmpOld = (HBITMAP)SelectObject(hdcMem, hbmpCheck);
|
||||||
|
|
||||||
// then draw a check mark into it
|
// then draw a check mark into it
|
||||||
#if defined(__WIN32__) && !defined(__SC__)
|
#if defined(__WIN32__) && !defined(__SYMANTEC__)
|
||||||
RECT rect;
|
RECT rect;
|
||||||
rect.left = 0;
|
rect.left = 0;
|
||||||
rect.top = 0;
|
rect.top = 0;
|
||||||
|
@@ -3,18 +3,20 @@
|
|||||||
# This file was automatically generated by tmake
|
# This file was automatically generated by tmake
|
||||||
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
|
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE SC.T!
|
||||||
|
|
||||||
# Symantec C++ makefile for the msw objects
|
# Digital mars makefile
|
||||||
|
# was Symantec C++ makefile for the msw objects
|
||||||
|
#
|
||||||
# called from src\makefile.sc
|
# called from src\makefile.sc
|
||||||
|
|
||||||
# configuration section (see src\makefile.sc) ###########################
|
# configuration section (see src\makefile.sc) ###########################
|
||||||
|
|
||||||
WXDIR = $(WXWIN)
|
WXDIR = ..\..
|
||||||
|
|
||||||
include ..\makesc.env
|
include ..\makesc.env
|
||||||
|
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
|
|
||||||
LIBTARGET = $(LIBDIR)\wx.lib
|
LIBTARGET = $(LIBDIR)\wx$(SC_SUFFIX).lib
|
||||||
|
|
||||||
OPTIONS=
|
OPTIONS=
|
||||||
|
|
||||||
@@ -22,6 +24,7 @@ OPTIONS=
|
|||||||
|
|
||||||
GENDIR=$(WXDIR)\src\generic
|
GENDIR=$(WXDIR)\src\generic
|
||||||
COMMDIR=$(WXDIR)\src\common
|
COMMDIR=$(WXDIR)\src\common
|
||||||
|
HTMLDIR=$(WXDIR)\src\html
|
||||||
OLEDIR=ole
|
OLEDIR=ole
|
||||||
MSWDIR=$(WXDIR)\src\msw
|
MSWDIR=$(WXDIR)\src\msw
|
||||||
|
|
||||||
@@ -57,9 +60,7 @@ GENERICOBJS= $(GENDIR)\busyinfo.obj \
|
|||||||
$(GENDIR)\treelay.obj \
|
$(GENDIR)\treelay.obj \
|
||||||
$(GENDIR)\wizard.obj
|
$(GENDIR)\wizard.obj
|
||||||
|
|
||||||
COMMONOBJS = \
|
COMMONOBJS = $(COMMDIR)\appcmn.obj \
|
||||||
$(COMMDIR)\y_tab.obj \
|
|
||||||
$(COMMDIR)\appcmn.obj \
|
|
||||||
$(COMMDIR)\artprov.obj \
|
$(COMMDIR)\artprov.obj \
|
||||||
$(COMMDIR)\artstd.obj \
|
$(COMMDIR)\artstd.obj \
|
||||||
$(COMMDIR)\choiccmn.obj \
|
$(COMMDIR)\choiccmn.obj \
|
||||||
@@ -191,6 +192,27 @@ COMMONOBJS = \
|
|||||||
$(COMMDIR)\zipstrm.obj \
|
$(COMMDIR)\zipstrm.obj \
|
||||||
$(COMMDIR)\zstream.obj
|
$(COMMDIR)\zstream.obj
|
||||||
|
|
||||||
|
HTMLOBJS = $(HTMLDIR)\helpctrl.obj \
|
||||||
|
$(HTMLDIR)\helpdata.obj \
|
||||||
|
$(HTMLDIR)\helpfrm.obj \
|
||||||
|
$(HTMLDIR)\htmlcell.obj \
|
||||||
|
$(HTMLDIR)\htmlfilt.obj \
|
||||||
|
$(HTMLDIR)\htmlpars.obj \
|
||||||
|
$(HTMLDIR)\htmltag.obj \
|
||||||
|
$(HTMLDIR)\htmlwin.obj \
|
||||||
|
$(HTMLDIR)\htmprint.obj \
|
||||||
|
$(HTMLDIR)\m_dflist.obj \
|
||||||
|
$(HTMLDIR)\m_fonts.obj \
|
||||||
|
$(HTMLDIR)\m_hline.obj \
|
||||||
|
$(HTMLDIR)\m_image.obj \
|
||||||
|
$(HTMLDIR)\m_layout.obj \
|
||||||
|
$(HTMLDIR)\m_links.obj \
|
||||||
|
$(HTMLDIR)\m_list.obj \
|
||||||
|
$(HTMLDIR)\m_pre.obj \
|
||||||
|
$(HTMLDIR)\m_style.obj \
|
||||||
|
$(HTMLDIR)\m_tables.obj \
|
||||||
|
$(HTMLDIR)\winpars.obj
|
||||||
|
|
||||||
MSWOBJS = $(MSWDIR)\accel.obj \
|
MSWOBJS = $(MSWDIR)\accel.obj \
|
||||||
$(MSWDIR)\app.obj \
|
$(MSWDIR)\app.obj \
|
||||||
$(MSWDIR)\ole\automtn.obj \
|
$(MSWDIR)\ole\automtn.obj \
|
||||||
@@ -236,7 +258,6 @@ MSWOBJS = $(MSWDIR)\accel.obj \
|
|||||||
$(MSWDIR)\fontutil.obj \
|
$(MSWDIR)\fontutil.obj \
|
||||||
$(MSWDIR)\frame.obj \
|
$(MSWDIR)\frame.obj \
|
||||||
$(MSWDIR)\gauge95.obj \
|
$(MSWDIR)\gauge95.obj \
|
||||||
$(MSWDIR)\gaugemsw.obj \
|
|
||||||
$(MSWDIR)\gdiimage.obj \
|
$(MSWDIR)\gdiimage.obj \
|
||||||
$(MSWDIR)\gdiobj.obj \
|
$(MSWDIR)\gdiobj.obj \
|
||||||
$(MSWDIR)\glcanvas.obj \
|
$(MSWDIR)\glcanvas.obj \
|
||||||
@@ -246,8 +267,11 @@ MSWOBJS = $(MSWDIR)\accel.obj \
|
|||||||
$(MSWDIR)\helpchm.obj \
|
$(MSWDIR)\helpchm.obj \
|
||||||
$(MSWDIR)\helpwin.obj \
|
$(MSWDIR)\helpwin.obj \
|
||||||
$(MSWDIR)\icon.obj \
|
$(MSWDIR)\icon.obj \
|
||||||
|
$(MSWDIR)\imaglist.obj \
|
||||||
$(MSWDIR)\iniconf.obj \
|
$(MSWDIR)\iniconf.obj \
|
||||||
|
$(MSWDIR)\joystick.obj \
|
||||||
$(MSWDIR)\listbox.obj \
|
$(MSWDIR)\listbox.obj \
|
||||||
|
$(MSWDIR)\listctrl.obj \
|
||||||
$(MSWDIR)\main.obj \
|
$(MSWDIR)\main.obj \
|
||||||
$(MSWDIR)\mdi.obj \
|
$(MSWDIR)\mdi.obj \
|
||||||
$(MSWDIR)\menu.obj \
|
$(MSWDIR)\menu.obj \
|
||||||
@@ -258,6 +282,7 @@ MSWOBJS = $(MSWDIR)\accel.obj \
|
|||||||
$(MSWDIR)\msgdlg.obj \
|
$(MSWDIR)\msgdlg.obj \
|
||||||
$(MSWDIR)\mslu.obj \
|
$(MSWDIR)\mslu.obj \
|
||||||
$(MSWDIR)\nativdlg.obj \
|
$(MSWDIR)\nativdlg.obj \
|
||||||
|
$(MSWDIR)\notebook.obj \
|
||||||
$(MSWDIR)\ole\oleutils.obj \
|
$(MSWDIR)\ole\oleutils.obj \
|
||||||
$(MSWDIR)\ownerdrw.obj \
|
$(MSWDIR)\ownerdrw.obj \
|
||||||
$(MSWDIR)\palette.obj \
|
$(MSWDIR)\palette.obj \
|
||||||
@@ -274,7 +299,6 @@ MSWOBJS = $(MSWDIR)\accel.obj \
|
|||||||
$(MSWDIR)\scrolbar.obj \
|
$(MSWDIR)\scrolbar.obj \
|
||||||
$(MSWDIR)\settings.obj \
|
$(MSWDIR)\settings.obj \
|
||||||
$(MSWDIR)\slider95.obj \
|
$(MSWDIR)\slider95.obj \
|
||||||
$(MSWDIR)\slidrmsw.obj \
|
|
||||||
$(MSWDIR)\snglinst.obj \
|
$(MSWDIR)\snglinst.obj \
|
||||||
$(MSWDIR)\spinbutt.obj \
|
$(MSWDIR)\spinbutt.obj \
|
||||||
$(MSWDIR)\spinctrl.obj \
|
$(MSWDIR)\spinctrl.obj \
|
||||||
@@ -286,7 +310,6 @@ MSWOBJS = $(MSWDIR)\accel.obj \
|
|||||||
$(MSWDIR)\tabctrl.obj \
|
$(MSWDIR)\tabctrl.obj \
|
||||||
$(MSWDIR)\taskbar.obj \
|
$(MSWDIR)\taskbar.obj \
|
||||||
$(MSWDIR)\tbar95.obj \
|
$(MSWDIR)\tbar95.obj \
|
||||||
$(MSWDIR)\tbarmsw.obj \
|
|
||||||
$(MSWDIR)\textctrl.obj \
|
$(MSWDIR)\textctrl.obj \
|
||||||
$(MSWDIR)\tglbtn.obj \
|
$(MSWDIR)\tglbtn.obj \
|
||||||
$(MSWDIR)\thread.obj \
|
$(MSWDIR)\thread.obj \
|
||||||
@@ -297,36 +320,83 @@ MSWOBJS = $(MSWDIR)\accel.obj \
|
|||||||
$(MSWDIR)\utils.obj \
|
$(MSWDIR)\utils.obj \
|
||||||
$(MSWDIR)\utilsexc.obj \
|
$(MSWDIR)\utilsexc.obj \
|
||||||
$(MSWDIR)\ole\uuid.obj \
|
$(MSWDIR)\ole\uuid.obj \
|
||||||
|
$(MSWDIR)\uxtheme.obj \
|
||||||
$(MSWDIR)\volume.obj \
|
$(MSWDIR)\volume.obj \
|
||||||
$(MSWDIR)\wave.obj \
|
$(MSWDIR)\wave.obj \
|
||||||
$(MSWDIR)\window.obj
|
$(MSWDIR)\window.obj
|
||||||
|
|
||||||
# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
|
# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
|
||||||
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
|
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
|
||||||
|
|
||||||
all: $(LIBTARGET)
|
all: MAKEARCHDIR MAKELIBS PCH $(LIBTARGET) zlib png jpeg tiff regex
|
||||||
|
|
||||||
|
MAKEARCHDIR:
|
||||||
|
@if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
|
||||||
|
@if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)
|
||||||
|
@if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
|
||||||
|
@if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
|
||||||
|
@if not exist $(WXOUTDIR)\nul mkdir $(WXOUTDIR)
|
||||||
|
|
||||||
|
#build our own copies of missing libraries
|
||||||
|
MAKELIBS:
|
||||||
|
dimplib /s $(LIBDIR)\$(SHELLLIB) $(LIBDIR)\$(SC_SUFFIX)\$(SHELLLIB).def
|
||||||
|
dimplib /s $(LIBDIR)\$(WINSOCKLIB) $(LIBDIR)\$(SC_SUFFIX)\$(WINSOCKLIB).def
|
||||||
|
|
||||||
$(LIBTARGET): $(OBJECTS)
|
$(LIBTARGET): $(OBJECTS)
|
||||||
-del $(LIBTARGET)
|
-del $(LIBTARGET)
|
||||||
*lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
|
*lib /PAGESIZE:512 $(LIBTARGET) y $(OBJECTS), nul;
|
||||||
|
|
||||||
clean:
|
clean: clean_msw clean_zlib clean_png clean_jpeg clean_tiff clean_regex clean_pch
|
||||||
|
|
||||||
|
clean_msw:
|
||||||
|
-del $(COMMDIR)\*.obj
|
||||||
|
-del $(MSWDIR)\*.obj
|
||||||
|
-del $(GENDIR)\*.obj
|
||||||
|
-del $(HTMLDIR)\*.obj
|
||||||
-del *.obj
|
-del *.obj
|
||||||
|
-del *.sym
|
||||||
|
-del ole\*.obj
|
||||||
-del $(LIBTARGET)
|
-del $(LIBTARGET)
|
||||||
|
|
||||||
$(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
|
PCH: $(INCDIR)\wx\wxprec.h
|
||||||
|
dmc $(CPPFLAGS) $(CFLAGS) $(INCLUDE) -HF$(WXOUTDIR)\wxprec.SYM -o$(WXOUTDIR)\wxprec.PCO $(INCDIR)\wx\wxprec.h
|
||||||
|
|
||||||
$(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
|
clean_pch:
|
||||||
copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
|
del $(WXOUTDIR)\*.sym
|
||||||
|
del $(WXOUTDIR)\*.PCO
|
||||||
|
|
||||||
$(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
|
|
||||||
copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
|
|
||||||
|
|
||||||
# $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
|
png:
|
||||||
# *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
|
make -f $(WXDIR)\src\png\makefile.sc FINAL=$(FINAL)
|
||||||
|
|
||||||
|
clean_png:
|
||||||
|
make -f $(WXDIR)\src\png\makefile.sc clean
|
||||||
|
|
||||||
|
zlib:
|
||||||
|
make -f $(WXDIR)\src\zlib\makefile.sc FINAL=$(FINAL)
|
||||||
|
|
||||||
|
clean_zlib:
|
||||||
|
make -f $(WXDIR)\src\zlib\makefile.sc clean
|
||||||
|
|
||||||
|
jpeg:
|
||||||
|
make -f $(WXDIR)\src\jpeg\makefile.sc FINAL=$(FINAL)
|
||||||
|
|
||||||
|
clean_jpeg:
|
||||||
|
make -f $(WXDIR)\src\jpeg\makefile.sc clean
|
||||||
|
|
||||||
|
regex:
|
||||||
|
make -f $(WXDIR)\src\regex\makefile.sc FINAL=$(FINAL)
|
||||||
|
|
||||||
|
clean_regex:
|
||||||
|
make -f $(WXDIR)\src\regex\makefile.sc clean
|
||||||
|
|
||||||
|
tiff:
|
||||||
|
make -f $(WXDIR)\src\tiff\makefile.sc FINAL=$(FINAL)
|
||||||
|
|
||||||
|
clean_tiff:
|
||||||
|
make -f $(WXDIR)\src\tiff\makefile.sc clean
|
||||||
|
|
||||||
MFTYPE=sc
|
MFTYPE=sc
|
||||||
makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
|
self : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
|
||||||
cd $(WXWIN)\distrib\msw\tmake
|
perl -x$(WXWIN)\distrib\msw\tmake -S tmake -t$(MFTYPE) wxwin.pro -o $(WXWIN)\distrib\msw\tmake\makefile.sc
|
||||||
tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
|
copy $(WXWIN)\distrib\msw\tmake\makefile.$(MFTYPE) $(WXWIN)\src\msw
|
||||||
copy makefile.$(MFTYPE) $(WXWIN)\src\msw
|
|
||||||
|
@@ -47,6 +47,13 @@
|
|||||||
#include "malloc.h"
|
#include "malloc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Toolbar define value missing
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
#if defined(__DIGITALMARS__)
|
||||||
|
#define CCS_VERT 0x00000080L
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
|
|
||||||
#ifndef __TWIN32__
|
#ifndef __TWIN32__
|
||||||
|
@@ -46,7 +46,7 @@
|
|||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
#include <Memory.h>
|
#include <Memory.h>
|
||||||
|
|
||||||
#if defined(__PPCC__) || defined(__SC__) || defined(__MRC__) || defined(applec)
|
#if defined(__PPCC__) || defined(__SYMANTEC__) || defined(__MRC__) || defined(applec)
|
||||||
#define CtoPstr c2pstr
|
#define CtoPstr c2pstr
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -56,9 +56,13 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (__SC__) && !defined (__DMC__)
|
||||||
|
#define __SYMANTEC__
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if defined(__PPCC__) || defined(__SC__) || defined(__MRC__)
|
#if defined(__PPCC__) || defined(__SYMANTEC__) || defined(__MRC__)
|
||||||
#include <types.h>
|
#include <types.h>
|
||||||
#elif !defined(__MWERKS__) && !defined(THINK_C) && !defined(__acornriscos) && !defined(applec)
|
#elif !defined(__MWERKS__) && !defined(THINK_C) && !defined(__acornriscos) && !defined(applec)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -79,7 +83,7 @@
|
|||||||
* additional includes are also done to pull in the
|
* additional includes are also done to pull in the
|
||||||
* appropriate definitions we're looking for.
|
* appropriate definitions we're looking for.
|
||||||
*/
|
*/
|
||||||
#if defined(__MWERKS__) || defined(THINK_C) || defined(__PPCC__) || defined(__SC__) || defined(__MRC__)
|
#if defined(__MWERKS__) || defined(THINK_C) || defined(__PPCC__) || defined(__SYMANTEC__) || defined(__MRC__)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#define BSDTYPES
|
#define BSDTYPES
|
||||||
#define HAVE_UNISTD_H 0
|
#define HAVE_UNISTD_H 0
|
||||||
@@ -133,7 +137,7 @@ typedef unsigned long u_long;
|
|||||||
* stack (when coerced by the compiler).
|
* stack (when coerced by the compiler).
|
||||||
*/
|
*/
|
||||||
/* Note: on MacPowerPC "extended" is undefined. So only use it for 68K-Macs */
|
/* Note: on MacPowerPC "extended" is undefined. So only use it for 68K-Macs */
|
||||||
#if defined(__SC__) || defined(THINK_C)
|
#if defined(__SYMANTEC__) || defined(THINK_C)
|
||||||
typedef extended dblparam_t;
|
typedef extended dblparam_t;
|
||||||
#else
|
#else
|
||||||
typedef double dblparam_t;
|
typedef double dblparam_t;
|
||||||
|
Reference in New Issue
Block a user