]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc6dll.t
af3a6facc57a873bdd8fe0e7d38074f603144af2
[wxWidgets.git] / distrib / msw / tmake / vc6dll.t
1 #!#############################################################################
2 #! File: vc6dll.t
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
6 #! Created: 13.10.99
7 #! Version: $Id$
8 #!#############################################################################
9 #${
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
13
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 . " "
18 }
19
20 foreach $file (sort keys %wxCommon) {
21 next if $wxCommon{$file} =~ /\b16\b/;
22 next if $wxCommon{$file} =~ /\bBO\b/;
23
24 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
25 $project{$tag} .= $file . " "
26 }
27
28 foreach $file (sort keys %wxMSW) {
29 next if $wxMSW{$file} =~ /\b16\b/;
30
31 my $tag;
32 if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
33 else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
34 $project{$tag} .= $file . " "
35 }
36
37 foreach $file (sort keys %wxHTML) {
38 next if $wxHTML{$file} =~ /\b16\b/;
39 $project{"WXHTMLSRCS"} .= $file . " "
40 }
41 #$}
42 # Microsoft Developer Studio Project File - Name="wxWinDll" - Package Owner=<4>
43 # Microsoft Developer Studio Generated Build File, Format Version 6.00
44 # ** DO NOT EDIT **
45
46 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
47
48 CFG=wxWinDll - Win32 Debug
49 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
50 !MESSAGE use the Export Makefile command and run
51 !MESSAGE
52 !MESSAGE NMAKE /f "wxWinDll.mak".
53 !MESSAGE
54 !MESSAGE You can specify a configuration when running NMAKE
55 !MESSAGE by defining the macro CFG on the command line. For example:
56 !MESSAGE
57 !MESSAGE NMAKE /f "wxWinDll.mak" CFG="wxWinDll - Win32 Debug"
58 !MESSAGE
59 !MESSAGE Possible choices for configuration are:
60 !MESSAGE
61 !MESSAGE "wxWinDll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
62 !MESSAGE "wxWinDll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
63 !MESSAGE
64
65 # Begin Project
66 # PROP AllowPerConfigDependencies 0
67 # PROP Scc_ProjName ""
68 # PROP Scc_LocalPath ""
69 CPP=cl.exe
70 MTL=midl.exe
71 RSC=rc.exe
72
73 !IF "$(CFG)" == "wxWinDll - Win32 Release"
74
75 # PROP BASE Use_MFC 0
76 # PROP BASE Use_Debug_Libraries 0
77 # PROP BASE Output_Dir "Release"
78 # PROP BASE Intermediate_Dir "Release"
79 # PROP BASE Target_Dir ""
80 # PROP Use_MFC 0
81 # PROP Use_Debug_Libraries 0
82 # PROP Output_Dir "ReleaseDLL"
83 # PROP Intermediate_Dir "ReleaseDLL"
84 # PROP Ignore_Export_Lib 0
85 # PROP Target_Dir ""
86 # ADD BASE CPP /nologo /MT /W4 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /c
87 # ADD CPP /nologo /MT /W4 /GX /O2 /I "$(wx)\include" /I "$(wx)\src\zlib" /D "NDEBUG" /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
88 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
89 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
90 # ADD BASE RSC /l 0x409 /d "NDEBUG"
91 # ADD RSC /l 0x409 /d "NDEBUG"
92 BSC32=bscmake.exe
93 # ADD BASE BSC32 /nologo
94 # ADD BSC32 /nologo
95 LINK32=link.exe
96 # 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\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /nologo /dll /machine:I386
97 # 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 winmm.lib src\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /nologo /dll /machine:I386
98
99 !ELSEIF "$(CFG)" == "wxWinDll - Win32 Debug"
100
101 # PROP BASE Use_MFC 0
102 # PROP BASE Use_Debug_Libraries 1
103 # PROP BASE Output_Dir "Debug"
104 # PROP BASE Intermediate_Dir "Debug"
105 # PROP BASE Target_Dir ""
106 # PROP Use_MFC 0
107 # PROP Use_Debug_Libraries 1
108 # PROP Output_Dir "DebugDLL"
109 # PROP Intermediate_Dir "DebugDLL"
110 # PROP Ignore_Export_Lib 0
111 # PROP Target_Dir ""
112 # ADD BASE CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /GZ /c
113 # ADD CPP /nologo /MTd /W4 /Gm /ZI /Od /I "$(wx)\include" /I "$(wx)\src\zlib" /D "_DEBUG" /D "__WXDEBUG__" /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
114 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
115 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
116 # ADD BASE RSC /l 0x409 /d "_DEBUG"
117 # ADD RSC /l 0x409 /d "_DEBUG"
118 BSC32=bscmake.exe
119 # ADD BASE BSC32 /nologo
120 # ADD BSC32 /nologo
121 LINK32=link.exe
122 # 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 lib\png.lib src\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /dll /debug /machine:I386 /pdbtype:sept
123 # 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\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
124
125 !ENDIF
126
127 # Begin Target
128
129 # Name "wxWinDll - Win32 Release"
130 # Name "wxWinDll - Win32 Debug"
131
132 # PROP Default_Filter ""
133 # Begin Source File
134
135 SOURCE=.\src\msw\dummydll.cpp
136 # ADD CPP /Yc"wx/wxprec.h"
137 # End Source File
138 #$ 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");
139 #$ 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");
140 #$ 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");
141 #$ 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");
142 #$ 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");
143 #$ 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\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
144 #$ 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");
145
146 # Begin Source File
147
148 SOURCE=.\src\common\y_tab.c
149
150 !IF "$(CFG)" == "wxWinDll - Win32 Release"
151
152 # SUBTRACT CPP /YX /Yc /Yu
153
154 !ELSEIF "$(CFG)" == "wxWinDll - Win32 Debug"
155
156 # ADD CPP /W1
157 # SUBTRACT CPP /YX /Yc /Yu
158
159 !ENDIF
160
161 # End Source File
162 # End Target
163 # End Project