updating to the latest module.
[mono.git] / mcs / class / Managed.Windows.Forms / build-csproj
1 #!/bin/sh
2 #
3 # I got tired of editing the SWF.csproj
4 # This script will generated it from our System.Windows.Forms.dll.sources
5 #
6 #
7
8 tr=tr
9 OutFile=SWF.csproj
10 Source=System.Windows.Forms.dll.sources
11
12 SWFhead()
13 {
14 cat << EOT
15 <VisualStudioProject>
16     <CSHARP
17         ProjectType = "Local"
18         ProductVersion = "7.10.3077"
19         SchemaVersion = "2.0"
20         ProjectGuid = "{5E6430B2-6B9F-4E76-802E-20207EF80391}"
21     >
22         <Build>
23             <Settings
24                 ApplicationIcon = ""
25                 AssemblyKeyContainerName = ""
26                 AssemblyName = "System.Windows.Forms"
27                 AssemblyOriginatorKeyFile = ""
28                 DefaultClientScript = "JScript"
29                 DefaultHTMLPageLayout = "Grid"
30                 DefaultTargetSchema = "IE50"
31                 DelaySign = "false"
32                 OutputType = "Library"
33                 PreBuildEvent = ""
34                 PostBuildEvent = ""
35                 RootNamespace = ""
36                 RunPostBuildEvent = "OnBuildSuccess"
37                 StartupObject = ""
38             >
39                 <Config
40                     Name = "Debug"
41                     AllowUnsafeBlocks = "false"
42                     BaseAddress = "285212672"
43                     CheckForOverflowUnderflow = "false"
44                     ConfigurationOverrideFile = ""
45                     DefineConstants = ""
46                     DocumentationFile = ""
47                     DebugSymbols = "true"
48                     FileAlignment = "4096"
49                     IncrementalBuild = "false"
50                     NoStdLib = "false"
51                     NoWarn = ""
52                     Optimize = "false"
53                     OutputPath = "bin\Debug\"
54                     RegisterForComInterop = "false"
55                     RemoveIntegerChecks = "false"
56                     TreatWarningsAsErrors = "false"
57                     WarningLevel = "1"
58                 />
59                 <Config
60                     Name = "Release"
61                     AllowUnsafeBlocks = "false"
62                     BaseAddress = "285212672"
63                     CheckForOverflowUnderflow = "false"
64                     ConfigurationOverrideFile = ""
65                     DefineConstants = ""
66                     DocumentationFile = ""
67                     DebugSymbols = "false"
68                     FileAlignment = "4096"
69                     IncrementalBuild = "false"
70                     NoStdLib = "false"
71                     NoWarn = ""
72                     Optimize = "false"
73                     OutputPath = "bin\Release\"
74                     RegisterForComInterop = "false"
75                     RemoveIntegerChecks = "false"
76                     TreatWarningsAsErrors = "false"
77                     WarningLevel = "1"
78                 />
79             </Settings>
80             <References>
81                 <Reference
82                     Name = "Accessibility"
83                     AssemblyName = "Accessibility"
84                     HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Accessibility.dll"
85                 />
86                 <Reference
87                     Name = "System"
88                     AssemblyName = "System"
89                     HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
90                 />
91                 <Reference
92                     Name = "System.Drawing"
93                     AssemblyName = "System.Drawing"
94                     HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll"
95                 />
96                 <Reference
97                     Name = "System.XML"
98                     AssemblyName = "System.XML"
99                     HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll"
100                 />
101             </References>
102         </Build>
103         <Files>
104             <Include>
105 EOT
106 }
107
108 SWFfilelist()
109 {
110 cat $Source | while read SRC; do
111 # Don't do AssemblyInfo, it's got signing requests and such that we don't want
112 if [ "x$SRC" != "xAssembly/AssemblyInfo.cs" ] ; then
113 SRC=`echo $SRC | $tr '/' '\\\\'`
114 cat << EOT
115                 <File
116                     RelPath = "$SRC"
117                     SubType = "Code"
118                     BuildAction = "Compile"
119                 />
120 EOT
121 fi
122 done
123 }
124
125 SWFtail()
126 {
127 cat << EOT
128             </Include>
129         </Files>
130     </CSHARP>
131 </VisualStudioProject>
132 EOT
133 }
134
135 SWFhead > $OutFile
136 SWFfilelist >> $OutFile
137 SWFtail >> $OutFile
138