]>
Commit | Line | Data |
---|---|---|
755c41bf VZ |
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/; | |
755c41bf VZ |
22 | |
23 | my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS"; | |
24 | $project{$tag} .= $file . " " | |
25 | } | |
26 | ||
27 | foreach $file (sort keys %wxMSW) { | |
28 | next if $wxMSW{$file} =~ /\b16\b/; | |
29 | ||
30 | my $tag; | |
31 | if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" } | |
32 | else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" } | |
33 | $project{$tag} .= $file . " " | |
34 | } | |
35 | ||
36 | foreach $file (sort keys %wxHTML) { | |
37 | next if $wxHTML{$file} =~ /\b16\b/; | |
38 | $project{"WXHTMLSRCS"} .= $file . " " | |
39 | } | |
40 | #$} | |
41 | # Microsoft Developer Studio Project File - Name="wxWinDll" - Package Owner=<4> | |
42 | # Microsoft Developer Studio Generated Build File, Format Version 6.00 | |
43 | # ** DO NOT EDIT ** | |
44 | ||
45 | # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 | |
46 | ||
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 | |
50 | !MESSAGE | |
51 | !MESSAGE NMAKE /f "wxWinDll.mak". | |
52 | !MESSAGE | |
53 | !MESSAGE You can specify a configuration when running NMAKE | |
54 | !MESSAGE by defining the macro CFG on the command line. For example: | |
55 | !MESSAGE | |
56 | !MESSAGE NMAKE /f "wxWinDll.mak" CFG="wxWinDll - Win32 Debug" | |
57 | !MESSAGE | |
58 | !MESSAGE Possible choices for configuration are: | |
59 | !MESSAGE | |
60 | !MESSAGE "wxWinDll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") | |
61 | !MESSAGE "wxWinDll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") | |
62 | !MESSAGE | |
63 | ||
64 | # Begin Project | |
65 | # PROP AllowPerConfigDependencies 0 | |
66 | # PROP Scc_ProjName "" | |
67 | # PROP Scc_LocalPath "" | |
68 | CPP=cl.exe | |
69 | MTL=midl.exe | |
70 | RSC=rc.exe | |
71 | ||
72 | !IF "$(CFG)" == "wxWinDll - Win32 Release" | |
73 | ||
74 | # PROP BASE Use_MFC 0 | |
75 | # PROP BASE Use_Debug_Libraries 0 | |
76 | # PROP BASE Output_Dir "Release" | |
77 | # PROP BASE Intermediate_Dir "Release" | |
78 | # PROP BASE Target_Dir "" | |
79 | # PROP Use_MFC 0 | |
80 | # PROP Use_Debug_Libraries 0 | |
81 | # PROP Output_Dir "ReleaseDLL" | |
82 | # PROP Intermediate_Dir "ReleaseDLL" | |
83 | # PROP Ignore_Export_Lib 0 | |
84 | # PROP Target_Dir "" | |
85 | # ADD BASE CPP /nologo /MT /W4 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /c | |
b568d04f | 86 | # ADD CPP /nologo /MT /W4 /GX /O2 /I "$(wx)\include" /I "$(wx)\src\zlib" /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 |
755c41bf VZ |
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 /d "NDEBUG" | |
91 | BSC32=bscmake.exe | |
92 | # ADD BASE BSC32 /nologo | |
93 | # ADD BSC32 /nologo | |
94 | LINK32=link.exe | |
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\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /nologo /dll /machine:I386 | |
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 winmm.lib src\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /nologo /dll /machine:I386 | |
97 | ||
98 | !ELSEIF "$(CFG)" == "wxWinDll - Win32 Debug" | |
99 | ||
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 "" | |
105 | # PROP Use_MFC 0 | |
106 | # PROP Use_Debug_Libraries 1 | |
107 | # PROP Output_Dir "DebugDLL" | |
108 | # PROP Intermediate_Dir "DebugDLL" | |
109 | # PROP Ignore_Export_Lib 0 | |
110 | # PROP Target_Dir "" | |
111 | # 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 | |
b568d04f | 112 | # ADD CPP /nologo /MTd /W4 /Gm /ZI /Od /I "$(wx)\include" /I "$(wx)\src\zlib" /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 |
755c41bf VZ |
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 /d "_DEBUG" | |
117 | BSC32=bscmake.exe | |
118 | # ADD BASE BSC32 /nologo | |
119 | # ADD BSC32 /nologo | |
120 | LINK32=link.exe | |
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 lib\png.lib src\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /dll /debug /machine:I386 /pdbtype:sept | |
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\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /nologo /dll /debug /machine:I386 /pdbtype:sept | |
123 | ||
124 | !ENDIF | |
125 | ||
126 | # Begin Target | |
127 | ||
128 | # Name "wxWinDll - Win32 Release" | |
129 | # Name "wxWinDll - Win32 Debug" | |
130 | ||
131 | # PROP Default_Filter "" | |
132 | # Begin Source File | |
133 | ||
134 | SOURCE=.\src\msw\dummydll.cpp | |
135 | # ADD CPP /Yc"wx/wxprec.h" | |
136 | # End Source File | |
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"); | |
3b415ba4 | 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"); |
755c41bf VZ |
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"); |
144 | ||
145 | # Begin Source File | |
146 | ||
147 | SOURCE=.\src\common\y_tab.c | |
148 | ||
149 | !IF "$(CFG)" == "wxWinDll - Win32 Release" | |
150 | ||
151 | # SUBTRACT CPP /YX /Yc /Yu | |
152 | ||
153 | !ELSEIF "$(CFG)" == "wxWinDll - Win32 Debug" | |
154 | ||
155 | # ADD CPP /W1 | |
156 | # SUBTRACT CPP /YX /Yc /Yu | |
157 | ||
158 | !ENDIF | |
159 | ||
160 | # End Source File | |
161 | # End Target | |
162 | # End Project |