update to make digitalmars compile/link image sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9e82cf9876
commit
0caac3b4a9
@ -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,7 +42,7 @@
|
|||||||
|
|
||||||
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 $wxMSW{$file} =~ /\b16\b/;
|
next if $wxMSW{$file} =~ /\b16\b/;
|
||||||
|
|
||||||
@ -69,21 +76,22 @@ 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) $(WINSOCKLIB)
|
||||||
|
|
||||||
all: MAKEARCHDIR $(LIBTARGET)
|
all: MAKEARCHDIR MAKEWINSOCKLIB $(LIBTARGET) zlib png jpeg tiff regex
|
||||||
|
|
||||||
MAKEARCHDIR:
|
MAKEARCHDIR:
|
||||||
@if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
|
@if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
|
||||||
@ -91,27 +99,53 @@ MAKEARCHDIR:
|
|||||||
@if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
|
@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 $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
|
||||||
|
|
||||||
|
MAKEWINSOCKLIB:
|
||||||
|
@if not exist $(WINSOCKLIB) implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
|
||||||
|
## implib /system /v /suffix /Ic:\wx\dm\include\win32 $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
|
||||||
|
## implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
|
||||||
|
##@if not exist $(WINSOCKLIB)
|
||||||
|
|
||||||
$(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_zlib clean_png clean_jpeg clean_tiff clean_regex
|
||||||
-del $(COMMDIR)\*.obj
|
-del $(COMMDIR)\*.obj
|
||||||
-del $(MSWDIR)\*.obj
|
-del $(MSWDIR)\*.obj
|
||||||
-del $(GENDIR)\*.obj
|
-del $(GENDIR)\*.obj
|
||||||
|
-del $(HTMLDIR)\*.obj
|
||||||
-del *.obj
|
-del *.obj
|
||||||
-del $(LIBTARGET)
|
-del $(LIBTARGET)
|
||||||
|
|
||||||
## $(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
|
png:
|
||||||
##
|
make -f $(WXDIR)\src\png\makefile.sc FINAL=$(FINAL)
|
||||||
## $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
|
|
||||||
## copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
|
clean_png:
|
||||||
##
|
make -f $(WXDIR)\src\png\makefile.sc clean
|
||||||
## $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
|
|
||||||
## copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
|
zlib:
|
||||||
##
|
make -f $(WXDIR)\src\zlib\makefile.sc FINAL=$(FINAL)
|
||||||
### $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
|
|
||||||
### *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
|
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
|
makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
|
||||||
|
4
samples/image/makefile.sc
Normal file
4
samples/image/makefile.sc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Symantec C++ makefile
|
||||||
|
WXDIR = $(WXWIN)
|
||||||
|
TARGET=image
|
||||||
|
include $(WXDIR)\src\makeprog.sc
|
@ -22,6 +22,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
|
||||||
|
|
||||||
@ -53,9 +54,7 @@ GENERICOBJS= $(GENDIR)\busyinfo.obj \
|
|||||||
$(GENDIR)\treectlg.obj \
|
$(GENDIR)\treectlg.obj \
|
||||||
$(GENDIR)\wizard.obj
|
$(GENDIR)\wizard.obj
|
||||||
|
|
||||||
COMMONOBJS = \
|
COMMONOBJS = $(COMMDIR)\accesscmn.obj \
|
||||||
$(COMMDIR)\y_tab.obj \
|
|
||||||
$(COMMDIR)\accesscmn.obj \
|
|
||||||
$(COMMDIR)\appcmn.obj \
|
$(COMMDIR)\appcmn.obj \
|
||||||
$(COMMDIR)\artprov.obj \
|
$(COMMDIR)\artprov.obj \
|
||||||
$(COMMDIR)\artstd.obj \
|
$(COMMDIR)\artstd.obj \
|
||||||
@ -188,6 +187,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)\ole\access.obj \
|
$(MSWDIR)\ole\access.obj \
|
||||||
$(MSWDIR)\app.obj \
|
$(MSWDIR)\app.obj \
|
||||||
@ -244,6 +264,7 @@ MSWOBJS = $(MSWDIR)\accel.obj \
|
|||||||
$(MSWDIR)\icon.obj \
|
$(MSWDIR)\icon.obj \
|
||||||
$(MSWDIR)\imaglist.obj \
|
$(MSWDIR)\imaglist.obj \
|
||||||
$(MSWDIR)\iniconf.obj \
|
$(MSWDIR)\iniconf.obj \
|
||||||
|
$(MSWDIR)\joystick.obj \
|
||||||
$(MSWDIR)\listbox.obj \
|
$(MSWDIR)\listbox.obj \
|
||||||
$(MSWDIR)\listctrl.obj \
|
$(MSWDIR)\listctrl.obj \
|
||||||
$(MSWDIR)\main.obj \
|
$(MSWDIR)\main.obj \
|
||||||
@ -299,9 +320,9 @@ MSWOBJS = $(MSWDIR)\accel.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) $(WINSOCKLIB)
|
||||||
|
|
||||||
all: MAKEARCHDIR $(LIBTARGET)
|
all: MAKEARCHDIR MAKEWINSOCKLIB $(LIBTARGET) zlib png jpeg tiff regex
|
||||||
|
|
||||||
MAKEARCHDIR:
|
MAKEARCHDIR:
|
||||||
@if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
|
@if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
|
||||||
@ -309,27 +330,52 @@ MAKEARCHDIR:
|
|||||||
@if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
|
@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 $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
|
||||||
|
|
||||||
|
MAKEWINSOCKLIB:
|
||||||
|
implib /system /v /suffix /Ic:\wx\dm\include\win32 $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
|
||||||
|
## implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
|
||||||
|
##@if not exist $(WINSOCKLIB)
|
||||||
|
|
||||||
$(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_zlib clean_png clean_jpeg clean_tiff clean_regex
|
||||||
-del $(COMMDIR)\*.obj
|
-del $(COMMDIR)\*.obj
|
||||||
-del $(MSWDIR)\*.obj
|
-del $(MSWDIR)\*.obj
|
||||||
-del $(GENDIR)\*.obj
|
-del $(GENDIR)\*.obj
|
||||||
|
-del $(HTMLDIR)\*.obj
|
||||||
-del *.obj
|
-del *.obj
|
||||||
-del $(LIBTARGET)
|
-del $(LIBTARGET)
|
||||||
|
|
||||||
## $(COMMDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
|
png:
|
||||||
##
|
make -f $(WXDIR)\src\png\makefile.sc FINAL=$(FINAL)
|
||||||
## $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
|
|
||||||
## copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
|
clean_png:
|
||||||
##
|
make -f $(WXDIR)\src\png\makefile.sc clean
|
||||||
## $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
|
|
||||||
## copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
|
zlib:
|
||||||
##
|
make -f $(WXDIR)\src\zlib\makefile.sc FINAL=$(FINAL)
|
||||||
### $(COMMDIR)\cmndata.obj: $(COMMDIR)\cmndata.cpp
|
|
||||||
### *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
|
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
|
makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
|
||||||
|
@ -68,8 +68,11 @@ extern wxMenu *wxCurrentPopupMenu;
|
|||||||
extern const wxChar *wxMDIFrameClassName; // from app.cpp
|
extern const wxChar *wxMDIFrameClassName; // from app.cpp
|
||||||
extern const wxChar *wxMDIChildFrameClassName;
|
extern const wxChar *wxMDIChildFrameClassName;
|
||||||
extern const wxChar *wxMDIChildFrameClassNameNoRedraw;
|
extern const wxChar *wxMDIChildFrameClassNameNoRedraw;
|
||||||
|
#ifdef __DIGITALMARS__
|
||||||
|
extern "C" void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win);
|
||||||
|
#else
|
||||||
extern void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win);
|
extern void wxAssociateWinWithHandle(HWND hWnd, wxWindow *win);
|
||||||
|
#endif
|
||||||
extern void wxRemoveHandleAssociation(wxWindow *win);
|
extern void wxRemoveHandleAssociation(wxWindow *win);
|
||||||
|
|
||||||
static HWND invalidHandle = 0;
|
static HWND invalidHandle = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user