1 #!#############################################################################
3 #! Purpose: tmake template file from which wxBase.dsp is generated by running
4 #! tmake -t vc6base wxwin.pro -o wxBase.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 # Microsoft Developer Studio Project File - Name="wxBase" - Package Owner=<4>
48 # Microsoft Developer Studio Generated Build File, Format Version 6.00
51 # TARGTYPE "Win32 (x86) Static Library" 0x0104
53 CFG=wxBase - Win32 Debug
54 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
55 !MESSAGE use the Export Makefile command and run
57 !MESSAGE NMAKE /f "wxBase.mak".
59 !MESSAGE You can specify a configuration when running NMAKE
60 !MESSAGE by defining the macro CFG on the command line. For example:
62 !MESSAGE NMAKE /f "wxBase.mak" CFG="wxBase - Win32 Debug"
64 !MESSAGE Possible choices for configuration are:
66 !MESSAGE "wxBase - Win32 Release" (based on "Win32 (x86) Static Library")
67 !MESSAGE "wxBase - Win32 Debug" (based on "Win32 (x86) Static Library")
71 # PROP AllowPerConfigDependencies 0
72 # PROP Scc_ProjName ""
73 # PROP Scc_LocalPath ""
77 !IF "$(CFG)" == "wxBase - Win32 Release"
80 # PROP BASE Use_Debug_Libraries 0
81 # PROP BASE Output_Dir "..\lib"
82 # PROP BASE Intermediate_Dir "..\BaseRelease"
83 # PROP BASE Target_Dir ""
85 # PROP Use_Debug_Libraries 0
86 # PROP Output_Dir "..\lib"
87 # PROP Intermediate_Dir "..\BaseRelease"
89 # ADD BASE CPP /nologo /MD /W4 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MT" /YX /FD /c
90 # ADD CPP /nologo /MD /W4 /O2 /I "../lib/base" /I "../include" /I "./regex" /I "./zlib" /D "NDEBUG" /D wxUSE_GUI=0 /D "WIN32" /D WINVER=0x400 /D "_MT" /Yu"wx/wxprec.h" /FD /c
91 # ADD BASE RSC /l 0x409
94 # ADD BASE BSC32 /nologo
97 # ADD BASE LIB32 /nologo
98 # ADD LIB32 /nologo /out:"..\lib\wxbase.lib"
100 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug"
102 # PROP BASE Use_MFC 0
103 # PROP BASE Use_Debug_Libraries 1
104 # PROP BASE Output_Dir "..\lib"
105 # PROP BASE Intermediate_Dir "..\BaseDebug"
106 # PROP BASE Target_Dir ""
108 # PROP Use_Debug_Libraries 1
109 # PROP Output_Dir "..\lib"
110 # PROP Intermediate_Dir "..\BaseDebug"
112 # ADD BASE CPP /nologo /MDd /W4 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MT" /YX /FD /c
113 # ADD CPP /nologo /MDd /W4 /Zi /Od /I "../lib/based" /I "../include" /I "./regex" /I "./zlib" /D "_DEBUG" /D wxUSE_GUI=0 /D "WIN32" /D "__WXDEBUG__" /D WINVER=0x400 /D "_MT" /Yu"wx/wxprec.h" /FD /c
114 # ADD BASE RSC /l 0x409
117 # ADD BASE BSC32 /nologo
118 # ADD BSC32 /nologo /o"../lib/wxbase.bsc"
120 # ADD BASE LIB32 /nologo
121 # ADD LIB32 /nologo /out:"..\lib\wxbased.lib"
127 # Name "wxBase - Win32 Release"
128 # Name "wxBase - Win32 Debug"
130 # Begin Group "Common Files"
132 # PROP Default_Filter ""
133 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\common\\", "\n# End Source File\n");
134 #$ 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");
136 # Begin Group "MSW Files"
138 # PROP Default_Filter ""
141 SOURCE=.\msw\dummy.cpp
142 # ADD CPP /Yc"wx/wxprec.h"
144 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\msw\\", "\n# End Source File\n");
145 #$ 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");
147 # Begin Group "Headers"
149 # PROP Default_Filter ""
150 # Begin Group "Setup"
152 # PROP Default_Filter ""
155 SOURCE=..\include\wx\msw\setup0.h
157 !IF "$(CFG)" == "wxBase - Win32 Release"
159 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
160 InputPath=..\include\wx\msw\setup0.h
162 "../lib/base/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
163 copy $(InputPath) ..\lib\base\wx\setup.h
167 !ELSEIF "$(CFG)" == "wxBase - Win32 Debug"
169 # Begin Custom Build - Creating wx/setup.h from $(InputPath)
170 InputPath=..\include\wx\msw\setup0.h
172 "../lib/based/wx/setup.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
173 copy $(InputPath) ..\lib\based\wx\setup.h
181 # Begin Group "Common"
183 # PROP Default_Filter ""
184 #$ 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");
188 # PROP Default_Filter ""
189 #$ 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");
194 #! vi: set sta ts=8 sw=4 noet nolist tw=0 ft=make: