1 #!#############################################################################
3 #! Purpose: tmake template file from which wxBaseDll.dsp is generated by running
4 #! tmake -t vc6bdll wxwin.pro -o wxBaseDll.dsp
5 #! Author: Vadim Zeitlin
8 #!#############################################################################
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
14 #! now transform these hashes into $project tags
15 foreach $file (sort keys %wxCommon) {
16 next if $wxCommon{$file} !~ /\bB\b/;
18 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
19 $project{$tag} .= $file . " "
22 foreach $file (sort keys %wxMSW) {
23 next if $wxMSW{$file} !~ /\bB\b/;
25 my $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS";
26 $project{$tag} .= $file . " "
29 foreach $file (sort keys %wxBase) {
30 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
31 $project{$tag} .= $file . " "
34 foreach $file (sort keys %wxWXINCLUDE) {
35 next if $wxWXINCLUDE{$file} !~ /\bB\b/;
36 next if $file =~ /setup.h/;
37 next if $file =~ /[^.]*.cpp$/;
38 $project{"WXHEADERS"} .= $file . " "
41 foreach $file (sort keys %wxMSWINCLUDE) {
42 next if $wxMSWINCLUDE{$file} !~ /\bB\b/;
43 next if $file =~ /setup0?.h/;
44 $project{"WXMSWHEADERS"} .= $file . " "
47 $project{"WXVERSION"} = "232";
49 # Microsoft Developer Studio Project File - Name="wxBaseDll" - Package Owner=<4>
50 # Microsoft Developer Studio Generated Build File, Format Version 6.00
53 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
55 CFG=wxBaseDll - Win32 Debug
56 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
57 !MESSAGE use the Export Makefile command and run
59 !MESSAGE NMAKE /f "wxBaseDll.mak".
61 !MESSAGE You can specify a configuration when running NMAKE
62 !MESSAGE by defining the macro CFG on the command line. For example:
64 !MESSAGE NMAKE /f "wxBaseDll.mak" CFG="wxBaseDll - Win32 Debug"
66 !MESSAGE Possible choices for configuration are:
68 !MESSAGE "wxBaseDll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
69 !MESSAGE "wxBaseDll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
73 # PROP AllowPerConfigDependencies 0
74 # PROP Scc_ProjName ""
75 # PROP Scc_LocalPath ""
80 !IF "$(CFG)" == "wxBaseDll - Win32 Release"
83 # PROP BASE Use_Debug_Libraries 0
84 # PROP BASE Output_Dir "../lib"
85 # PROP BASE Intermediate_Dir "../BaseDllRelease"
86 # PROP BASE Target_Dir ""
88 # PROP Use_Debug_Libraries 0
89 # PROP Output_Dir "../lib"
90 # PROP Intermediate_Dir "../BaseDllRelease"
91 # PROP Ignore_Export_Lib 0
93 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MT" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
94 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/basedll" /I "../include" /I "./regex" /I "./zlib" /D "NDEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "_MT" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
95 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
96 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
97 # ADD BASE RSC /l 0x409 /d "NDEBUG"
98 # ADD RSC /l 0x409 /i "../include" /d "NDEBUG"
100 # ADD BASE BSC32 /nologo
103 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . '.dll"'
104 # ADD LINK32 kernel32.lib user32.lib advapi32.lib wsock32.lib ../lib/zlib.lib ../lib/regex.lib /nologo /version:2.3 /dll /machine:I386 /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . '.dll"'
106 !ELSEIF "$(CFG)" == "wxBaseDll - Win32 Debug"
108 # PROP BASE Use_MFC 0
109 # PROP BASE Use_Debug_Libraries 1
110 # PROP BASE Output_Dir "../lib"
111 # PROP BASE Intermediate_Dir "../BaseDllDebug"
112 # PROP BASE Target_Dir ""
114 # PROP Use_Debug_Libraries 1
115 # PROP Output_Dir "../lib"
116 # PROP Intermediate_Dir "../BaseDllDebug"
117 # PROP Ignore_Export_Lib 0
119 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MT" /D "_USRDLL" /D "WXBASEDLL_EXPORTS" /YX /FD /c
120 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/basedlld" /I "../include" /I "./regex" /I "./zlib" /D "_DEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "_MT" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
121 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
122 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
123 # ADD BASE RSC /l 0x409 /d "_DEBUG"
124 # ADD RSC /l 0x409 /i "../include" /d "_DEBUG"
126 # ADD BASE BSC32 /nologo
129 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . 'd.dll"'
130 # ADD LINK32 kernel32.lib user32.lib advapi32.lib wsock32.lib ../lib/zlibd.lib ../lib/regexd.lib /nologo /version:2.2 /dll /debug /machine:I386 /pdbtype:sept /out:"../lib/wxbase#$ $text = $project{"WXVERSION"} . 'd.dll"'
136 # Name "wxBaseDll - Win32 Release"
137 # Name "wxBaseDll - Win32 Debug"
140 SOURCE=.\common\base.rc
144 SOURCE=.\msw\dummydll.cpp
145 # ADD CPP /Yc"wx/wxprec.h"
147 # Begin Group "Common Files"
149 # PROP Default_Filter ""
150 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n");
151 #$ ExpandGlue("WXCSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
153 # Begin Group "MSW Files"
155 # PROP Default_Filter ""
156 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
157 #$ ExpandGlue("WXMSWCSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
159 # Begin Group "Headers"
161 # PROP Default_Filter ""
162 # Begin Group "Setup"
164 # PROP Default_Filter ""
167 SOURCE=..\include\wx\msw\setup0.h
169 !IF "$(CFG)" == "wxBaseDll - Win32 Release"
171 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
172 InputPath=..\include\wx\msw\setup0.h
174 "../lib/basedll/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
175 copy $(InputPath) ..\lib\basedll\wx\setup.h
179 !ELSEIF "$(CFG)" == "wxBaseDll - Win32 Debug"
181 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
182 InputPath=..\include\wx\msw\setup0.h
184 "../lib/basedlld/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
185 copy $(InputPath) ..\lib\basedlld\wx\setup.h
193 # Begin Group "Common"
195 # PROP Default_Filter ""
196 #$ ExpandGlue("WXHEADERS", "# Begin Source File\n\nSOURCE=..\\include\\wx\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=..\\include\\wx\\", "\n# End Source File\n");
200 # PROP Default_Filter ""
201 #$ ExpandGlue("WXMSWHEADERS", "# Begin Source File\n\nSOURCE=..\\include\\wx\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=..\\include\\wx\\msw\\", "\n# End Source File\n");
206 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: