improve build.bat and related clean-up

This commit is contained in:
Matthew Flatt 2010-12-06 06:25:39 -07:00
parent 9dc827dec3
commit 011fa0bb90
8 changed files with 49 additions and 34 deletions

View File

@ -3,3 +3,6 @@
*/Debug
*/x64
*/*.user
rbuildmode.obj
rbuildmode.exe

View File

@ -263,7 +263,7 @@ The libraries
racket\lib\win32\msvc\libracketxxxxxxx.lib
racket\lib\win32\msvc\libmzgcxxxxxxx.lib
which are created by the mzsrc and gc projects, provide linking
which are created by the libracket and libmzgc projects, provide linking
information for using the libracket3mxxxxxxx.dll, libracketxxxxxxx.dll,
and libmzgcxxxxxxx.dll DLLs. The versioning script adjusts the names,
as described above.

View File

@ -1,40 +1,60 @@
setlocal
cl rbuildmode.c
rbuildmode.exe
if errorlevel 1 (set BUILDMODE=win32) else (set BUILDMODE=x64)
cd racket
devenv racket.sln /Build Release
devenv racket.sln /Build "Release|%BUILDMODE%"
if errorlevel 1 exit /B 1
cd ..\gracket
devenv gracket.sln /Build Release
devenv gracket.sln /Build "Release|%BUILDMODE%"
if errorlevel 1 exit /B 1
cd ..
cd gc2
..\..\..\racketcgc -cu make.rkt
if errorlevel 1 exit /B 1
cd ..
..\..\racket -cu ..\get-libs.rkt core ..\..\lib
if errorlevel 1 exit /B 1
..\..\racket -cu ..\get-libs.rkt gui ..\..\lib
if errorlevel 1 exit /B 1
cd mzstart
devenv mzstart.sln /Build Release
devenv mzstart.sln /Build "Release|%BUILDMODE%"
if errorlevel 1 exit /B 1
cd ..\mrstart
devenv mrstart.sln /Build Release
devenv mrstart.sln /Build "Release|%BUILDMODE%"
if errorlevel 1 exit /B 1
cd ..
cd mzcom
devenv mzcom.sln /Build Release
devenv mzcom.sln /Build "Release|%BUILDMODE%"
if errorlevel 1 exit /B 1
cd ..\libmysterx
devenv libmysterx.sln /Build Release
devenv libmysterx.sln /Build "Release|%BUILDMODE%"
if errorlevel 1 exit /B 1
cd ..
cd libmysterx
..\..\..\racket -cu xform.rkt
if errorlevel 1 exit /B 1
cd ..
cd mzcom
..\..\..\racket -cu xform.rkt
if errorlevel 1 exit /B 1
cd ..
cd mzcom
devenv mzcom.sln /Build 3m
devenv mzcom.sln /Build "3m|%BUILDMODE%"
if errorlevel 1 exit /B 1
cd ..\libmysterx
devenv libmysterx.sln /Build 3m
devenv libmysterx.sln /Build "3m|%BUILDMODE%"
if errorlevel 1 exit /B 1
cd ..
..\..\racket -l setup -N "raco setup"
if errorlevel 1 exit /B 1

View File

@ -155,7 +155,7 @@
BrowseInformation="1"
WarningLevel="3"
SuppressStartupBanner="true"
Detect64BitPortabilityProblems="true"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
/>
<Tool
@ -341,7 +341,7 @@
UsePrecompiledHeader="0"
WarningLevel="3"
SuppressStartupBanner="true"
Detect64BitPortabilityProblems="true"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="0"
CompileAs="0"
/>
@ -529,7 +529,7 @@
UsePrecompiledHeader="0"
WarningLevel="3"
SuppressStartupBanner="true"
Detect64BitPortabilityProblems="true"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="0"
CompileAs="0"
/>

View File

@ -112,8 +112,6 @@
/>
<Tool
Name="VCPostBuildEventTool"
Description="Register $(ProjectName).dll"
CommandLine="REGSVR32 /s ..\..\..\..\lib\$(ProjectName).dll"
/>
</Configuration>
<Configuration
@ -162,7 +160,7 @@
UsePrecompiledHeader="0"
BrowseInformation="1"
WarningLevel="4"
Detect64BitPortabilityProblems="true"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
/>
<Tool
@ -211,8 +209,6 @@
/>
<Tool
Name="VCPostBuildEventTool"
Description="Register $(ProjectName).dll"
CommandLine="REGSVR32 /s ..\..\..\..\lib\$(ProjectName).dll"
/>
</Configuration>
<Configuration
@ -313,8 +309,6 @@
/>
<Tool
Name="VCPostBuildEventTool"
Description="Register $(ProjectName).dll"
CommandLine="REGSVR32 /s ..\..\..\..\lib\$(ProjectName).dll"
/>
</Configuration>
<Configuration
@ -366,7 +360,7 @@
ProgramDataBaseFileName=""
WarningLevel="4"
SuppressStartupBanner="true"
Detect64BitPortabilityProblems="true"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="0"
/>
<Tool
@ -416,8 +410,6 @@
/>
<Tool
Name="VCPostBuildEventTool"
Description="Register $(ProjectName).dll"
CommandLine="REGSVR32 /s ..\..\..\..\lib\$(ProjectName).dll"
/>
</Configuration>
</Configurations>

View File

@ -112,8 +112,6 @@
/>
<Tool
Name="VCPostBuildEventTool"
Description="Register $(ProjectName).dll"
CommandLine="REGSVR32 /s ..\..\..\..\lib\$(ProjectName).dll"
/>
</Configuration>
<Configuration
@ -160,7 +158,7 @@
UsePrecompiledHeader="0"
BrowseInformation="1"
WarningLevel="4"
Detect64BitPortabilityProblems="true"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
CompileAs="2"
/>
@ -211,8 +209,6 @@
/>
<Tool
Name="VCPostBuildEventTool"
Description="Register $(ProjectName).dll"
CommandLine="REGSVR32 /s ..\..\..\..\lib\$(ProjectName).dll"
/>
</Configuration>
<Configuration
@ -315,8 +311,6 @@
/>
<Tool
Name="VCPostBuildEventTool"
Description="Register $(ProjectName).dll"
CommandLine="REGSVR32 /s ..\..\..\..\lib\$(ProjectName).dll"
/>
</Configuration>
<Configuration
@ -368,7 +362,7 @@
ProgramDataBaseFileName=""
WarningLevel="4"
SuppressStartupBanner="true"
Detect64BitPortabilityProblems="true"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="0"
CompileAs="2"
/>
@ -419,8 +413,6 @@
/>
<Tool
Name="VCPostBuildEventTool"
Description="Register $(ProjectName).dll"
CommandLine="REGSVR32 /s ..\..\..\..\lib\$(ProjectName).dll"
/>
</Configuration>
</Configurations>

View File

@ -45,7 +45,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,..\..\racket\include,..\..\racket\src,..\..\foreign\libffi_msvc,$(NOINHERIT)"
AdditionalIncludeDirectories="..,..\..\racket\include,..\..\racket\src,$(NOINHERIT)"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;GC_DLL;__STDC__;LIBMZ_EXPORTS;_CRT_SECURE_NO_DEPRECATE"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
@ -130,7 +130,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,..\..\racket\include,..\..\racket\src,..\..\foreign\libffi_msvc,$(NOINHERIT)"
AdditionalIncludeDirectories="..,..\..\racket\include,..\..\racket\src,$(NOINHERIT)"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;GC_DLL;__STDC__;LIBMZ_EXPORTS;_CRT_SECURE_NO_DEPRECATE"
BasicRuntimeChecks="3"
RuntimeLibrary="1"

8
src/worksp/rbuildmode.c Normal file
View File

@ -0,0 +1,8 @@
int main() {
#ifdef _WIN64
return 0;
#else
return 1;
#endif
}