diff options
author | Jonathan Chambers <joncham@gmail.com> | 2007-03-15 23:06:41 +0300 |
---|---|---|
committer | Jonathan Chambers <joncham@gmail.com> | 2007-03-15 23:06:41 +0300 |
commit | 985f7079af262df34700b14ace62937aed91c325 (patch) | |
tree | b1ad6e81382659996d0920112fe2ee6cac40d86e /msvc | |
parent | 4845bc03983f967379996b44ca34aadc6864e9cf (diff) |
2007-03-15 Jonathan Chambers <joncham@gmail.com>
* Begin Win64 port.
All changes contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=74419
Diffstat (limited to 'msvc')
-rwxr-xr-x | msvc/ChangeLog | 1 | ||||
-rw-r--r-- | msvc/genmdesc.vcproj | 8 | ||||
-rw-r--r-- | msvc/libmono.vcproj | 394 | ||||
-rw-r--r-- | msvc/monoburg.vcproj | 16 | ||||
-rwxr-xr-x | msvc/runburg.bat | 17 | ||||
-rwxr-xr-x | msvc/runmdesc.bat | 16 |
6 files changed, 292 insertions, 160 deletions
diff --git a/msvc/ChangeLog b/msvc/ChangeLog index 3b82017ab1b..d2466ac6b91 100755 --- a/msvc/ChangeLog +++ b/msvc/ChangeLog @@ -2,4 +2,5 @@ * *.vcproj: Begin Win64 port. Run bat files with $(Platform) argument. * *.bat: Begin Win64 port. Run bat files with $(Platform) argument. + Contributed under MIT/X11 license.
\ No newline at end of file diff --git a/msvc/genmdesc.vcproj b/msvc/genmdesc.vcproj index c09a5cd01d3..1093ec881aa 100644 --- a/msvc/genmdesc.vcproj +++ b/msvc/genmdesc.vcproj @@ -106,7 +106,7 @@ />
<Tool
Name="VCPostBuildEventTool"
- CommandLine="runmdesc.bat $(TargetPath)"
+ CommandLine="runmdesc.bat $(TargetPath) $(PlatformName)"
/>
</Configuration>
<Configuration
@@ -199,7 +199,7 @@ />
<Tool
Name="VCPostBuildEventTool"
- CommandLine="runmdesc.bat $(TargetPath)"
+ CommandLine="runmdesc.bat $(TargetPath) $(PlatformName)"
/>
</Configuration>
<Configuration
@@ -290,7 +290,7 @@ />
<Tool
Name="VCPostBuildEventTool"
- CommandLine="runmdesc.bat $(TargetPath)"
+ CommandLine="runmdesc.bat $(TargetPath) $(PlatformName)"
/>
</Configuration>
<Configuration
@@ -382,7 +382,7 @@ />
<Tool
Name="VCPostBuildEventTool"
- CommandLine="runmdesc.bat $(TargetPath)"
+ CommandLine="runmdesc.bat $(TargetPath) $(PlatformName)"
/>
</Configuration>
</Configurations>
diff --git a/msvc/libmono.vcproj b/msvc/libmono.vcproj index eb285d945d2..57f377d7cee 100644 --- a/msvc/libmono.vcproj +++ b/msvc/libmono.vcproj @@ -132,7 +132,7 @@ Optimization="2"
InlineFunctionExpansion="1"
AdditionalIncludeDirectories="..\libgc\include;..\;"..\VSDependancies\include\glib-2.0";"..\VSDependancies\include\glib-2.0\glib";..\VSDependancies\include;"..\VSDependancies\lib\glib-2.0\include";..\mono\;..\mono\jit"
- PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;__WIN32__;HAVE_CONFIG_H;__i386__;PLATFORM_WIN32;GC_NOT_DLL;GC_GCJ_SUPPORT;GC_WIN32_THREADS;_CRT_SECURE_NO_DEPRECATE"
+ PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;__WIN32__;HAVE_CONFIG_H;PLATFORM_WIN32;GC_NOT_DLL;GC_GCJ_SUPPORT;GC_WIN32_THREADS;_CRT_SECURE_NO_DEPRECATE"
StringPooling="true"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
@@ -306,7 +306,7 @@ Optimization="0"
InlineFunctionExpansion="0"
AdditionalIncludeDirectories="..\libgc\include;..\;"..\VSDependancies\include\glib-2.0";"..\VSDependancies\include\glib-2.0\glib";..\VSDependancies\include;"..\VSDependancies\lib\glib-2.0\include";..\mono\;..\mono\jit"
- PreprocessorDefinitions="WIN64;_WIN64;_DEBUG;WIN32;_WINDOWS;__WIN32__;HAVE_CONFIG_H;__i386__;PLATFORM_WIN32;GC_NOT_DLL;GC_GCJ_SUPPORT;GC_WIN32_THREADS;_CRT_SECURE_NO_DEPRECATE"
+ PreprocessorDefinitions="WIN64;_WIN64;_DEBUG;WIN32;_WINDOWS;__WIN32__;HAVE_CONFIG_H;PLATFORM_WIN32;GC_NOT_DLL;GC_GCJ_SUPPORT;GC_WIN32_THREADS;_CRT_SECURE_NO_DEPRECATE;__x86_64__"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@@ -3322,52 +3322,6 @@ </FileConfiguration>
</File>
<File
- RelativePath="..\mono\mini\exceptions-x86.c"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- </File>
- <File
RelativePath="..\mono\mini\graph.c"
>
<FileConfiguration
@@ -3718,56 +3672,6 @@ >
</File>
<File
- RelativePath="..\mono\mini\mini-x86.c"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- </File>
- <File
- RelativePath="..\mono\mini\mini-x86.h"
- >
- </File>
- <File
RelativePath="..\mono\mini\mini.c"
>
<FileConfiguration
@@ -3980,62 +3884,260 @@ >
</File>
<File
- RelativePath="..\mono\mini\tramp-x86.c"
- >
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|x64"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Debug|x64"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- UsePrecompiledHeader="0"
- BrowseInformation="1"
- />
- </FileConfiguration>
- </File>
- <File
RelativePath="..\mono\mini\wapihandles.c"
>
</File>
<Filter
Name="x86"
>
+ <File
+ RelativePath="..\mono\mini\exceptions-x86.c"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|x64"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ BrowseInformation="1"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|x64"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ BrowseInformation="1"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\mono\mini\mini-x86.c"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|x64"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ BrowseInformation="1"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|x64"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ BrowseInformation="1"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\mono\mini\mini-x86.h"
+ >
+ <FileConfiguration
+ Name="Release|x64"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|x64"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\mono\mini\tramp-x86.c"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|x64"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ BrowseInformation="1"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|x64"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories=""
+ PreprocessorDefinitions=""
+ UsePrecompiledHeader="0"
+ BrowseInformation="1"
+ />
+ </FileConfiguration>
+ </File>
</Filter>
<Filter
- Name="x64"
- >
+ Name="amd64"
+ >
+ <File
+ RelativePath="..\mono\mini\exceptions-amd64.c"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\mono\mini\mini-amd64.c"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\mono\mini\mini-amd64.h"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\mono\mini\tramp-amd64.c"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
</Filter>
</Filter>
</Files>
diff --git a/msvc/monoburg.vcproj b/msvc/monoburg.vcproj index 8fa9179d20c..0dd2618ca91 100644 --- a/msvc/monoburg.vcproj +++ b/msvc/monoburg.vcproj @@ -27,7 +27,7 @@ >
<Tool
Name="VCPreBuildEventTool"
- CommandLine="cd ..\mono\monoburg
copy wparser.c parser.c"
+ CommandLine="cd ..\mono\monoburg
copy wparser.c parser.c
"
/>
<Tool
Name="VCCustomBuildTool"
@@ -98,7 +98,7 @@ />
<Tool
Name="VCPostBuildEventTool"
- CommandLine="runburg.bat $(TargetPath)"
+ CommandLine="runburg.bat $(TargetPath) $(PlatformName)"
/>
</Configuration>
<Configuration
@@ -110,7 +110,7 @@ >
<Tool
Name="VCPreBuildEventTool"
- CommandLine="cd ..\mono\monoburg
copy wparser.c parser.c"
+ CommandLine="cd ..\mono\monoburg
copy wparser.c parser.c
"
/>
<Tool
Name="VCCustomBuildTool"
@@ -182,7 +182,7 @@ />
<Tool
Name="VCPostBuildEventTool"
- CommandLine="runburg.bat $(TargetPath)"
+ CommandLine="runburg.bat $(TargetPath) $(PlatformName)"
/>
</Configuration>
<Configuration
@@ -194,7 +194,7 @@ >
<Tool
Name="VCPreBuildEventTool"
- CommandLine="cd ..\mono\monoburg
copy wparser.c parser.c"
+ CommandLine="cd ..\mono\monoburg
copy wparser.c parser.c
"
/>
<Tool
Name="VCCustomBuildTool"
@@ -264,7 +264,7 @@ />
<Tool
Name="VCPostBuildEventTool"
- CommandLine="runburg.bat $(TargetPath)"
+ CommandLine="runburg.bat $(TargetPath) $(PlatformName)"
/>
</Configuration>
<Configuration
@@ -276,7 +276,7 @@ >
<Tool
Name="VCPreBuildEventTool"
- CommandLine="cd ..\mono\monoburg
copy wparser.c parser.c"
+ CommandLine="cd ..\mono\monoburg
copy wparser.c parser.c
"
/>
<Tool
Name="VCCustomBuildTool"
@@ -347,7 +347,7 @@ />
<Tool
Name="VCPostBuildEventTool"
- CommandLine="runburg.bat $(TargetPath)"
+ CommandLine="runburg.bat $(TargetPath) $(PlatformName)"
/>
</Configuration>
</Configurations>
diff --git a/msvc/runburg.bat b/msvc/runburg.bat index 7e36428b99a..8370b0ac7ef 100755 --- a/msvc/runburg.bat +++ b/msvc/runburg.bat @@ -1,8 +1,23 @@ @echo off rem This runs Monoburg on the various x86 files when called on Visual Studio -echo Running Monoburg on the x86 inssel.brg files... +echo Running Monoburg on the inssel.brg files... cd ..\mono\mini set PATH=%PATH%;..\..\VSDependancies\lib + +if "%2" == "Win32" goto x86 +if "%2" == "x64" goto x64 +goto error +:x86 +echo Platform detected is x86... %1 -c 1 -p -e inssel.brg inssel-float.brg inssel-long32.brg inssel-x86.brg -d inssel.h -s inssel.c +goto end +:x64 +echo Platform detected is x64... +%1 -c 1 -p -e inssel.brg inssel-float.brg inssel-long.brg inssel-amd64.brg -d inssel.h -s inssel.c +goto end +:error +echo Error: unsupported platform +exit /b 100 +:end echo done diff --git a/msvc/runmdesc.bat b/msvc/runmdesc.bat index de31cced082..09c03b6e49c 100755 --- a/msvc/runmdesc.bat +++ b/msvc/runmdesc.bat @@ -1,8 +1,22 @@ @echo off rem This runs genmdesc on the x86 files when called on Visual Studio -echo Running genmdesc on the x86 files... +echo Running genmdesc cd ..\mono\mini set PATH=%PATH%;..\..\VSDependancies\lib +if "%2" == "Win32" goto x86 +if "%2" == "x64" goto x64 +goto error +:x86 +echo Platform detected is x86... %1 cpu-x86.md cpu-x86.h x86_desc +goto end +:x64 +echo Platform detected is x64... +%1 cpu-amd64.md cpu-amd64.h amd64_desc +goto end +:error +echo Error: unsupported platform +exit /b 100 +:end echo done |