1 #!#############################################################################
3 #! Purpose: tmake template file from which wxWinDll.dsp is generated by running
4 #! tmake -t vc6dll wxwin.pro -o wxWinDll.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 %wxGeneric) {
16 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
17 $project{"WXGENERICSRCS"} .= $file . " "
20 foreach $file (sort keys %wxCommon) {
21 next if $wxCommon{$file} =~ /\b16\b/;
23 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
24 $project{$tag} .= $file . " "
27 foreach $file (sort keys %wxMSW) {
28 next if $wxMSW{$file} =~ /\b16\b/;
31 if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
32 else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
33 $project{$tag} .= $file . " "
36 foreach $file (sort keys %wxHTML) {
37 next if $wxHTML{$file} =~ /\b16\b/;
38 $project{"WXHTMLSRCS"} .= $file . " "
41 # Microsoft Developer Studio Project File - Name="wxWinDll" - Package Owner=<4>
42 # Microsoft Developer Studio Generated Build File, Format Version 6.00
45 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
47 CFG=wxWinDll - Win32 Debug
48 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
49 !MESSAGE use the Export Makefile command and run
51 !MESSAGE NMAKE /f "wxWinDll.mak".
53 !MESSAGE You can specify a configuration when running NMAKE
54 !MESSAGE by defining the macro CFG on the command line. For example:
56 !MESSAGE NMAKE /f "wxWinDll.mak" CFG="wxWinDll - Win32 Debug"
58 !MESSAGE Possible choices for configuration are:
60 !MESSAGE "wxWinDll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
61 !MESSAGE "wxWinDll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
65 # PROP AllowPerConfigDependencies 0
66 # PROP Scc_ProjName ""
67 # PROP Scc_LocalPath ""
72 !IF "$(CFG)" == "wxWinDll - Win32 Release"
75 # PROP BASE Use_Debug_Libraries 0
76 # PROP BASE Output_Dir "Release"
77 # PROP BASE Intermediate_Dir "Release"
78 # PROP BASE Target_Dir ""
80 # PROP Use_Debug_Libraries 0
81 # PROP Output_Dir "ReleaseDLL"
82 # PROP Intermediate_Dir "ReleaseDLL"
83 # PROP Ignore_Export_Lib 0
85 # ADD BASE CPP /nologo /MD /W4 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /c
86 # ADD CPP /nologo /MD /W4 /GX /O2 /I "$(wx)\include" /I "$(wx)\src\zlib" /I "$(wx)\src\jpeg" /I "$(wx)\src\png" /I "$(wx)\src\tiff" /D "NDEBUG" /D wxUSE_GUI=1 /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /D "__WXMSW__" /D "__WIN95__" /D "__WINDOWS__" /D "__WIN32__" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
87 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
88 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
89 # ADD BASE RSC /l 0x409 /d "NDEBUG"
90 # ADD RSC /l 0x409 /i "$(wx)\include" /d "NDEBUG"
92 # ADD BASE BSC32 /nologo
95 # 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 winmm.lib src\jpeg\Release\jpeg.lib src\tiff\Release\tiff.lib src\png\Release\png.lib src\xpm\Release\xpm.lib src\zlib\Release\zlib.lib /nologo /dll /machine:I386 /out:"ReleaseDll/wxmsw221.dll"
96 # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib src\jpeg\Release\jpeg.lib src\tiff\Release\tiff.lib src\png\Release\png.lib src\xpm\Release\xpm.lib src\zlib\Release\zlib.lib /nologo /dll /machine:I386 /out:"ReleaseDll/wxmsw221.dll"
98 !ELSEIF "$(CFG)" == "wxWinDll - Win32 Debug"
100 # PROP BASE Use_MFC 0
101 # PROP BASE Use_Debug_Libraries 1
102 # PROP BASE Output_Dir "Debug"
103 # PROP BASE Intermediate_Dir "Debug"
104 # PROP BASE Target_Dir ""
106 # PROP Use_Debug_Libraries 1
107 # PROP Output_Dir "DebugDLL"
108 # PROP Intermediate_Dir "DebugDLL"
109 # PROP Ignore_Export_Lib 0
111 # ADD BASE CPP /nologo /MDd /W4 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /GZ /c
112 # ADD CPP /nologo /MDd /W4 /Gm /Zi /Od /I "$(wx)\include" /I "$(wx)\src\zlib" /I "$(wx)\src\jpeg" /I "$(wx)\src\png" /I "$(wx)\src\tiff" /D "_DEBUG" /D "__WXDEBUG__" /D wxUSE_GUI=1 /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /D "__WXMSW__" /D "__WIN95__" /D "__WINDOWS__" /D "__WIN32__" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /GZ /c
113 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
114 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
115 # ADD BASE RSC /l 0x409 /d "_DEBUG"
116 # ADD RSC /l 0x409 /i "$(wx)\include" /d "_DEBUG"
118 # ADD BASE BSC32 /nologo
121 # 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 winmm.lib src\jpeg\Debug\jpeg.lib src\tiff\Debug\tiff.lib src\png\Debug\png.lib src\xpm\Debug\xpm.lib src\zlib\Debug\zlib.lib /dll /debug /machine:I386 /pdbtype:sept /out:"DebugDll/wxmsw221d.dll"
122 # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib src\jpeg\Debug\jpeg.lib src\tiff\Debug\tiff.lib src\png\Debug\png.lib src\xpm\Debug\xpm.lib src\zlib\Debug\zlib.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /out:"DebugDll/wxmsw221d.dll"
128 # Name "wxWinDll - Win32 Release"
129 # Name "wxWinDll - Win32 Debug"
131 # PROP Default_Filter ""
134 SOURCE=.\src\msw\dummydll.cpp
135 # ADD CPP /Yc"wx/wxprec.h"
137 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\src\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\msw\\", "\n# End Source File\n");
138 #$ ExpandGlue("WXOLESRCS", "# Begin Source File\n\nSOURCE=.\\src\\msw\\ole\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\msw\\ole\\", "\n# End Source File\n");
139 #$ ExpandGlue("WXGENERICSRCS", "# Begin Source File\n\nSOURCE=.\\src\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\generic\\", "\n# End Source File\n");
140 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# End Source File\n");
141 #$ ExpandGlue("WXCSRCS", "# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
142 #$ ExpandGlue("WXMSWCSRCS", "# Begin Source File\n\nSOURCE=.\\src\\msw\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\msw\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
143 #$ ExpandGlue("WXHTMLSRCS", "# Begin Source File\n\nSOURCE=.\\src\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\html\\", "\n# End Source File\n");
147 SOURCE=.\src\msw\version.rc
151 SOURCE=.\src\common\y_tab.c
153 !IF "$(CFG)" == "wxWinDll - Win32 Release"
156 # SUBTRACT CPP /YX /Yc /Yu
158 !ELSEIF "$(CFG)" == "wxWinDll - Win32 Debug"
161 # SUBTRACT CPP /YX /Yc /Yu