* Mono.Mozilla/WebBrowser.cs: fix Document accessor
[mono.git] / mcs / class / Mono.Mozilla / 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 > Mono.Mozilla2K5.csproj
8
9 Source=Mono.Mozilla.dll.sources
10
11 dohead()
12 {
13     cat <<EOF
14 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
15         <PropertyGroup>\r
16     <ProjectType>Local</ProjectType>\r
17     <ProductVersion>8.0.50727</ProductVersion>\r
18     <SchemaVersion>2.0</SchemaVersion>\r
19     <ProjectGuid>{5E6C996A-007F-40CE-B244-006EFCFB77D2}</ProjectGuid>\r
20     <Configuration Condition=" '\$(Configuration)' == '' ">Debug</Configuration>
21     <Platform Condition=" '\$(Platform)' == '' ">AnyCPU</Platform>
22     <ApplicationIcon>\r
23     </ApplicationIcon>\r
24     <AssemblyKeyContainerName>\r
25     </AssemblyKeyContainerName>\r
26     <AssemblyName>Mono.Mozilla</AssemblyName>\r
27     <AssemblyOriginatorKeyFile>\r
28     </AssemblyOriginatorKeyFile>\r
29     <DefaultClientScript>JScript</DefaultClientScript>\r
30     <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>\r
31     <DefaultTargetSchema>IE50</DefaultTargetSchema>\r
32     <DelaySign>false</DelaySign>\r
33     <OutputType>Library</OutputType>\r
34     <RootNamespace>Mono.Mozilla</RootNamespace>\r
35     <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>\r
36     <StartupObject>\r
37     </StartupObject>\r
38     <FileUpgradeFlags>\r
39     </FileUpgradeFlags>\r
40     <UpgradeBackupLocation>\r
41     </UpgradeBackupLocation>\r
42   </PropertyGroup>\r
43   <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Debug|AnyCPU' ">
44     <OutputPath>bin\Debug\</OutputPath>\r
45     <AllowUnsafeBlocks>false</AllowUnsafeBlocks>\r
46     <BaseAddress>285212672</BaseAddress>\r
47     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>\r
48     <ConfigurationOverrideFile>\r
49     </ConfigurationOverrideFile>\r
50     <DefineConstants>DEBUG;TRACE</DefineConstants>\r
51     <DocumentationFile>\r
52     </DocumentationFile>\r
53     <DebugSymbols>true</DebugSymbols>\r
54     <FileAlignment>4096</FileAlignment>\r
55     <NoStdLib>false</NoStdLib>\r
56     <NoWarn>\r
57     </NoWarn>\r
58     <Optimize>false</Optimize>\r
59     <RegisterForComInterop>false</RegisterForComInterop>\r
60     <RemoveIntegerChecks>false</RemoveIntegerChecks>\r
61     <TreatWarningsAsErrors>false</TreatWarningsAsErrors>\r
62     <WarningLevel>4</WarningLevel>\r
63     <DebugType>full</DebugType>\r
64     <ErrorReport>prompt</ErrorReport>\r
65   </PropertyGroup>\r
66   <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Release|AnyCPU' ">
67     <OutputPath>bin\Release\</OutputPath>\r
68     <AllowUnsafeBlocks>false</AllowUnsafeBlocks>\r
69     <BaseAddress>285212672</BaseAddress>\r
70     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>\r
71     <ConfigurationOverrideFile>\r
72     </ConfigurationOverrideFile>\r
73     <DefineConstants>TRACE</DefineConstants>\r
74     <DocumentationFile>\r
75     </DocumentationFile>\r
76     <DebugSymbols>false</DebugSymbols>\r
77     <FileAlignment>4096</FileAlignment>\r
78     <NoStdLib>false</NoStdLib>\r
79     <NoWarn>\r
80     </NoWarn>\r
81     <Optimize>true</Optimize>\r
82     <RegisterForComInterop>false</RegisterForComInterop>\r
83     <RemoveIntegerChecks>false</RemoveIntegerChecks>\r
84     <TreatWarningsAsErrors>false</TreatWarningsAsErrors>\r
85     <WarningLevel>4</WarningLevel>\r
86     <DebugType>none</DebugType>\r
87     <ErrorReport>prompt</ErrorReport>\r
88   </PropertyGroup>\r
89   <ItemGroup>\r
90     <Reference Include="System">\r
91       <Name>System</Name>\r
92     </Reference>\r
93   </ItemGroup>\r
94 EOF
95 }
96
97 dotail()
98 {
99     cat <<EOF
100   <ItemGroup>\r
101     <None Include="ChangeLog" />\r
102     <None Include="Mono.Mozilla.dll.sources" />\r
103     <None Include="README" />\r
104   </ItemGroup>\r
105   <Import Project="\$(MSBuildBinPath)\Microsoft.CSharp.targets" />\r
106   <PropertyGroup>\r
107     <PreBuildEvent>\r
108     </PreBuildEvent>\r
109     <PostBuildEvent>\r
110     </PostBuildEvent>\r
111   </PropertyGroup>
112 </Project>\r
113 EOF
114 }
115
116 dofilelist()
117 {
118 echo "  <ItemGroup>"
119 cat $Source | while read SRC; do
120 # Don't do AssemblyInfo, it's got signing requests and such that we don't want
121 if [ "x$SRC" != "xAssembly/AssemblyInfo.cs" -a "x$SRC" != "x../../build/common/Consts.cs" ] ; then
122 SRC=`echo $SRC | sed 's/..\/..\/build\///'`
123 SRC=`echo $SRC | tr '/' '\\\\'`
124 cat <<EOF
125     <Compile Include="$SRC" />
126 EOF
127 fi
128 done
129 echo "  </ItemGroup>"
130 }
131
132 dohead
133 dofilelist
134 dotail