Skip to content

Commit

Permalink
Extract WebKit.Interop generation to batch file since otherwise it wi…
Browse files Browse the repository at this point in the history
…ll generate an .Net 4.0 assembly in VS2010.
  • Loading branch information
lanwin committed Sep 8, 2010
1 parent 7ca7183 commit 5dc9de7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 3 additions & 7 deletions WebKitBrowser/WebKitBrowser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<Reference Include="System.Xml" />
<Reference Include="WebKit.Interop, Version=533.0.0.0, Culture=neutral, PublicKeyToken=b967213f6d29a3be, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>..\webkit\WebKit.Interop.dll</HintPath>
</Reference>
</ItemGroup>
Expand Down Expand Up @@ -149,12 +150,7 @@ echo .tlb &gt;&gt; temp_exclude_files.txt
echo gitignore &gt;&gt; temp_exclude_files.txt
xcopy /E /Y /EXCLUDE:temp_exclude_files.txt "$(SolutionDir)webkit\*" "$(SolutionDir)bin\$(ConfigurationName)"
del temp_exclude_files.txt</PostBuildEvent>
<PreBuildEvent>call "$(DevEnvDir)..\..\VC\vcvarsall.bat" x86
if not exist "$(SolutionDir)tools\TypeNormalizer.exe" csc /out:"$(SolutionDir)tools\TypeNormalizer.exe" "$(SolutionDir)tools\TypeNormalizer.cs"
tlbimp "$(SolutionDir)webkit\webkit.tlb" /silent /keyfile:"$(ProjectDir)WebKit .NET.snk" /namespace:WebKit.Interop /out:"$(SolutionDir)webkit\WebKit.Interop.dll"
ildasm "$(SolutionDir)webkit\WebKit.Interop.dll" /out="$(SolutionDir)webkit\temp_webkit_interop.il" /nobar
"$(SolutionDir)tools\TypeNormalizer.exe" "$(SolutionDir)webkit\temp_webkit_interop.il"
ilasm "$(SolutionDir)webkit\temp_webkit_interop.il" /dll /output="$(SolutionDir)webkit\WebKit.Interop.dll" /key="$(ProjectDir)WebKit .NET.snk"
del /F /Q "$(SolutionDir)webkit\temp_webkit_interop.*"</PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
</Project>
7 changes: 7 additions & 0 deletions build_webkit.interop.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
call "$(DevEnvDir)..\..\VC\vcvarsall.bat" x86
if not exist "$(SolutionDir)tools\TypeNormalizer.exe" csc /out:"$(SolutionDir)tools\TypeNormalizer.exe" "$(SolutionDir)tools\TypeNormalizer.cs"
tlbimp "$(SolutionDir)webkit\webkit.tlb" /silent /keyfile:"$(ProjectDir)WebKit .NET.snk" /namespace:WebKit.Interop /out:"$(SolutionDir)webkit\WebKit.Interop.dll"
ildasm "$(SolutionDir)webkit\WebKit.Interop.dll" /out="$(SolutionDir)webkit\temp_webkit_interop.il" /nobar
"$(SolutionDir)tools\TypeNormalizer.exe" "$(SolutionDir)webkit\temp_webkit_interop.il"
ilasm "$(SolutionDir)webkit\temp_webkit_interop.il" /dll /output="$(SolutionDir)webkit\WebKit.Interop.dll" /key="$(ProjectDir)WebKit .NET.snk"
del /F /Q "$(SolutionDir)webkit\temp_webkit_interop.*"

0 comments on commit 5dc9de7

Please sign in to comment.