2007-12-07 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / build-csproj2k5
1 #!/bin/bash
2 #
3 # This script will generate SWF.cs.target from our System.Windows.Forms.dll.sources
4 #
5 #
6
7 exec > SWF2k5.csproj
8
9 Source=System.Windows.Forms.dll.sources
10 Resource=System.Windows.Forms.dll.resources
11
12 SWFhead()
13 {
14     cat <<EOF
15 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
16   <PropertyGroup>
17     <ProjectType>Local</ProjectType>
18     <ProductVersion>8.0.50727</ProductVersion>
19     <SchemaVersion>2.0</SchemaVersion>
20     <ProjectGuid>{5E6430B2-6B9F-4E76-802E-20207EF80391}</ProjectGuid>
21     <Configuration Condition=" '\$(Configuration)' == '' ">Debug</Configuration>
22     <Platform Condition=" '\$(Platform)' == '' ">AnyCPU</Platform>
23     <ApplicationIcon>
24     </ApplicationIcon>
25     <AssemblyKeyContainerName>
26     </AssemblyKeyContainerName>
27     <AssemblyName>System.Windows.Forms</AssemblyName>
28     <AssemblyOriginatorKeyFile>
29     </AssemblyOriginatorKeyFile>
30     <DefaultClientScript>JScript</DefaultClientScript>
31     <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
32     <DefaultTargetSchema>IE50</DefaultTargetSchema>
33     <DelaySign>false</DelaySign>
34     <OutputType>Library</OutputType>
35     <RootNamespace>
36     </RootNamespace>
37     <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
38     <StartupObject>
39     </StartupObject>
40     <FileUpgradeFlags>
41     </FileUpgradeFlags>
42     <UpgradeBackupLocation>
43     </UpgradeBackupLocation>
44   </PropertyGroup>
45   <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Debug|AnyCPU' ">
46     <OutputPath>bin\Debug\</OutputPath>
47     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
48     <BaseAddress>285212672</BaseAddress>
49     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
50     <ConfigurationOverrideFile>
51     </ConfigurationOverrideFile>
52     <DefineConstants>NET_1_1 NET_2_0</DefineConstants>
53     <DocumentationFile>
54     </DocumentationFile>
55     <DebugSymbols>true</DebugSymbols>
56     <FileAlignment>4096</FileAlignment>
57     <NoStdLib>false</NoStdLib>
58     <NoWarn>612,618,3021</NoWarn>
59     <Optimize>false</Optimize>
60     <RegisterForComInterop>false</RegisterForComInterop>
61     <RemoveIntegerChecks>false</RemoveIntegerChecks>
62     <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
63     <WarningLevel>3</WarningLevel>
64     <DebugType>full</DebugType>
65     <ErrorReport>prompt</ErrorReport>
66   </PropertyGroup>
67   <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Release|AnyCPU' ">
68     <OutputPath>bin\Release\</OutputPath>
69     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
70     <BaseAddress>285212672</BaseAddress>
71     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
72     <ConfigurationOverrideFile>
73     </ConfigurationOverrideFile>
74     <DefineConstants>NET_1_1 NET_2_0</DefineConstants>
75     <DocumentationFile>
76     </DocumentationFile>
77     <DebugSymbols>false</DebugSymbols>
78     <FileAlignment>4096</FileAlignment>
79     <NoStdLib>false</NoStdLib>
80     <NoWarn>612,618,3021</NoWarn>
81     <Optimize>false</Optimize>
82     <RegisterForComInterop>false</RegisterForComInterop>
83     <RemoveIntegerChecks>false</RemoveIntegerChecks>
84     <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
85     <WarningLevel>3</WarningLevel>
86     <DebugType>none</DebugType>
87     <ErrorReport>prompt</ErrorReport>
88   </PropertyGroup>
89   <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Debug 1.1|AnyCPU' ">
90     <OutputPath>bin\Debug\</OutputPath>
91     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
92     <BaseAddress>285212672</BaseAddress>
93     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
94     <ConfigurationOverrideFile>
95     </ConfigurationOverrideFile>
96     <DefineConstants>NET_1_1 ONLY_1_1</DefineConstants>
97     <DocumentationFile>
98     </DocumentationFile>
99     <DebugSymbols>true</DebugSymbols>
100     <FileAlignment>4096</FileAlignment>
101     <NoStdLib>false</NoStdLib>
102     <NoWarn>612,618,3021</NoWarn>
103     <Optimize>false</Optimize>
104     <RegisterForComInterop>false</RegisterForComInterop>
105     <RemoveIntegerChecks>false</RemoveIntegerChecks>
106     <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
107     <WarningLevel>3</WarningLevel>
108     <DebugType>full</DebugType>
109     <ErrorReport>prompt</ErrorReport>
110   </PropertyGroup>
111   <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Release 1.1|AnyCPU' ">
112     <OutputPath>bin\Release\</OutputPath>
113     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
114     <BaseAddress>285212672</BaseAddress>
115     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
116     <ConfigurationOverrideFile>
117     </ConfigurationOverrideFile>
118     <DefineConstants>NET_1_1 ONLY_1_1</DefineConstants>
119     <DocumentationFile>
120     </DocumentationFile>
121     <DebugSymbols>false</DebugSymbols>
122     <FileAlignment>4096</FileAlignment>
123     <NoStdLib>false</NoStdLib>
124     <NoWarn>612,618,3021</NoWarn>
125     <Optimize>false</Optimize>
126     <RegisterForComInterop>false</RegisterForComInterop>
127     <RemoveIntegerChecks>false</RemoveIntegerChecks>
128     <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
129     <WarningLevel>3</WarningLevel>
130     <DebugType>none</DebugType>
131     <ErrorReport>prompt</ErrorReport>
132   </PropertyGroup>
133   <ItemGroup>
134     <Reference Include="Accessibility">
135       <Name>Accessibility</Name>
136     </Reference>
137     <Reference Include="System">
138       <Name>System</Name>
139     </Reference>
140     <Reference Include="System.configuration" />
141     <Reference Include="System.Data">
142       <Name>System.Data</Name>
143     </Reference>
144     <Reference Include="System.Data">
145       <Name>System.Data</Name>
146     </Reference>
147     <Reference Include="System.Drawing">
148       <Name>System.Drawing</Name>
149     </Reference>
150     <Reference Include="System.Xml">
151       <Name>System.Xml</Name>
152     </Reference>
153     <Reference Include="Mono.Mozilla2K5">
154       <Name>Mono.Mozilla2K5</Name>
155     </Reference>
156   </ItemGroup>
157   <ItemGroup>
158     <ProjectReference Include="..\Mono.Mozilla\Mono.Mozilla2K5.csproj">
159       <Project>{3A1F2BAF-B92F-4F90-8250-A0F04ACCEAD0}</Project>
160       <Name>Mono.Mozilla2K5</Name>
161     </ProjectReference>
162   </ItemGroup>
163 EOF
164 }
165
166 SWFtail()
167 {
168     cat <<EOF
169   <ItemGroup>
170     <None Include="System.Windows.Forms\ChangeLog" />
171   </ItemGroup>
172   <ItemGroup>
173     <None Include="ChangeLog" />
174   </ItemGroup>
175   <Import Project="\$(MSBuildBinPath)\Microsoft.CSharp.targets" />
176   <PropertyGroup>
177     <PreBuildEvent>
178     </PreBuildEvent>
179     <PostBuildEvent>
180     </PostBuildEvent>
181   </PropertyGroup>
182 </Project>
183 EOF
184 }
185
186 SWFfilelist()
187 {
188 echo "  <ItemGroup>"
189 cat $Source | while read SRC; do
190 # Don't do AssemblyInfo, it's got signing requests and such that we don't want
191 if [ "x$SRC" != "xAssembly/AssemblyInfo.cs" ] ; then
192 SRC=`echo $SRC | sed 's/..\/..\/build\///'`
193 SRC=`echo $SRC | tr '/' '\\\\'`
194 cat <<EOF
195     <Compile Include="$SRC" />
196 EOF
197 fi
198 done
199 echo "  </ItemGroup>"
200 }
201
202 SWFresourcelist()
203 {
204 echo "  <ItemGroup>"
205     cat $Resource | while read SRC; do
206         CUSTOMTOOLNAMESPACE=""
207
208         # strip out that -resource:
209         SRC=`echo $SRC | sed 's/-resource://'`
210
211         CUSTOMTOOLNAMESPACE=`echo $SRC | awk -F, '{print $2}'`
212
213         INCLUDE=`echo $SRC | awk -F, '{print $1}'`
214
215         if test -f $INCLUDE.prebuilt; then
216             INCLUDE=$INCLUDE.prebuilt
217         fi
218
219         # strip off the path from the name of the resource and the .prebuilt if there is one
220         LOGICALNAME=`echo $INCLUDE | sed 's/resources\///;s/.prebuilt//'`
221
222         # convert all /'s to \\'s
223         INCLUDE=`echo $INCLUDE | sed 's/\//\\\\/'`
224
225         echo "    <EmbeddedResource Include=\"$INCLUDE\">"
226         echo "      <LogicalName>$LOGICALNAME</LogicalName>"
227         if test "x$CUSTOMTOOLNAMESPACE" != "x"; then
228             echo "      <CustomToolNameSpace>$CUSTOMTOOLNAMESPACE</CustomToolNameSpace>"
229         fi
230         echo "    </EmbeddedResource>"
231     done
232 echo "  </ItemGroup>"
233 }
234
235 SWFhead
236 SWFfilelist
237 SWFresourcelist
238 SWFtail