* Streamlined the directory paths and build processes for the netgen Visual C++ builds for consistency and extendability.

* Renamed the post-build script to allow for a similar script for nglib.
* Changed the install folder from <Configuration>-inst to <Configuration>-bin.
This commit is contained in:
Philippose Rajan 2009-02-15 20:25:44 +00:00
parent 1f258e5dab
commit f5dbea25dd
3 changed files with 23 additions and 11 deletions

View File

@ -21,6 +21,7 @@
OutputDirectory="Debug" OutputDirectory="Debug"
IntermediateDirectory="Debug" IntermediateDirectory="Debug"
ConfigurationType="1" ConfigurationType="1"
BuildLogFile="$(SolutionDir)\BuildLog_$(ProjectName).htm"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
@ -93,7 +94,7 @@
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
Description="Running POSTBUILD Script...." Description="Running POSTBUILD Script...."
CommandLine="$(ProjectDir)\postBuild_Install.bat $(InputName) $(TargetFileName) $(OutDir) $(ProjectDir)" CommandLine="$(ProjectDir)\postBuild_netgen.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)"
/> />
</Configuration> </Configuration>
<Configuration <Configuration
@ -101,6 +102,7 @@
OutputDirectory="Release" OutputDirectory="Release"
IntermediateDirectory="Release" IntermediateDirectory="Release"
ConfigurationType="1" ConfigurationType="1"
BuildLogFile="$(SolutionDir)\BuildLog_$(ProjectName).htm"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
@ -178,7 +180,7 @@
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
Description="Running POSTBUILD Script...." Description="Running POSTBUILD Script...."
CommandLine="$(ProjectDir)\postBuild_Install.bat $(InputName) $(TargetFileName) $(OutDir) $(ProjectDir)" CommandLine="$(ProjectDir)\postBuild_netgen.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)"
/> />
</Configuration> </Configuration>
<Configuration <Configuration
@ -186,6 +188,7 @@
OutputDirectory="$(ConfigurationName)" OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1" ConfigurationType="1"
BuildLogFile="$(SolutionDir)\BuildLog_$(ProjectName).htm"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
@ -263,7 +266,7 @@
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
Description="Running POSTBUILD Script...." Description="Running POSTBUILD Script...."
CommandLine="$(ProjectDir)\postBuild_Install.bat $(InputName) $(TargetFileName) $(OutDir) $(ProjectDir)" CommandLine="$(ProjectDir)\postBuild_netgen.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)"
/> />
</Configuration> </Configuration>
<Configuration <Configuration
@ -271,6 +274,7 @@
OutputDirectory="$(ConfigurationName)" OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1" ConfigurationType="1"
BuildLogFile="$(SolutionDir)\BuildLog_$(ProjectName).htm"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
@ -343,7 +347,7 @@
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
Description="Running POSTBUILD Script...." Description="Running POSTBUILD Script...."
CommandLine="$(ProjectDir)\postBuild_Install.bat $(InputName) $(TargetFileName) $(OutDir) $(ProjectDir)" CommandLine="$(ProjectDir)\postBuild_netgen.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)"
/> />
</Configuration> </Configuration>
</Configurations> </Configurations>

View File

@ -20,6 +20,7 @@
OutputDirectory="Debug" OutputDirectory="Debug"
IntermediateDirectory="Debug" IntermediateDirectory="Debug"
ConfigurationType="1" ConfigurationType="1"
BuildLogFile="$(SolutionDir)\BuildLog_$(ProjectName).htm"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
@ -94,7 +95,7 @@
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
Description="Running POSTBUILD Script...." Description="Running POSTBUILD Script...."
CommandLine="$(ProjectDir)\postBuild_Install.bat $(InputName) $(TargetFileName) $(OutDir) $(ProjectDir)" CommandLine="$(ProjectDir)\postBuild_netgen.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)"
/> />
</Configuration> </Configuration>
<Configuration <Configuration
@ -102,6 +103,7 @@
OutputDirectory="Release" OutputDirectory="Release"
IntermediateDirectory="Release" IntermediateDirectory="Release"
ConfigurationType="1" ConfigurationType="1"
BuildLogFile="$(SolutionDir)\BuildLog_$(ProjectName).htm"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
@ -181,7 +183,7 @@
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
Description="Running POSTBUILD Script...." Description="Running POSTBUILD Script...."
CommandLine="$(ProjectDir)\postBuild_Install.bat $(InputName) $(TargetFileName) $(OutDir) $(ProjectDir)" CommandLine="$(ProjectDir)\postBuild_netgen.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)"
/> />
</Configuration> </Configuration>
<Configuration <Configuration
@ -189,6 +191,7 @@
OutputDirectory="$(ConfigurationName)" OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1" ConfigurationType="1"
BuildLogFile="$(SolutionDir)\BuildLog_$(ProjectName).htm"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
@ -269,7 +272,7 @@
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
Description="Running POSTBUILD Script...." Description="Running POSTBUILD Script...."
CommandLine="$(ProjectDir)\postBuild_Install.bat $(InputName) $(TargetFileName) $(OutDir) $(ProjectDir)" CommandLine="$(ProjectDir)\postBuild_netgen.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)"
/> />
</Configuration> </Configuration>
<Configuration <Configuration
@ -277,6 +280,7 @@
OutputDirectory="$(ConfigurationName)" OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1" ConfigurationType="1"
BuildLogFile="$(SolutionDir)\BuildLog_$(ProjectName).htm"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
@ -351,7 +355,7 @@
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
Description="Running POSTBUILD Script...." Description="Running POSTBUILD Script...."
CommandLine="$(ProjectDir)\postBuild_Install.bat $(InputName) $(TargetFileName) $(OutDir) $(ProjectDir)" CommandLine="$(ProjectDir)\postBuild_netgen.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)"
/> />
</Configuration> </Configuration>
</Configurations> </Configurations>

View File

@ -6,8 +6,8 @@ REM ***
REM *** Used to perform an "Install" of the generated executable REM *** Used to perform an "Install" of the generated executable
REM *** along with the required *.tcl files REM *** along with the required *.tcl files
REM *** REM ***
REM *** Call from Windows using: REM *** Call from Visual C++ using:
REM *** postBuild_Install.bat $(InputName) $(TargetFileName) $(OutDir) $(ProjectDir) REM *** postBuild_netgen.bat $(ProjectName) $(TargetFileName) $(ConfigurationName) $(ProjectDir)
REM ********************************************************************************* REM *********************************************************************************
if [%1]==[] goto BuildEventFailed if [%1]==[] goto BuildEventFailed
set PROJ_NAME=%1 set PROJ_NAME=%1
@ -17,7 +17,7 @@ set PROJ_DIR=%4
REM *** Change these Folders if required *** REM *** Change these Folders if required ***
set NETGEN_TCLSRC=%PROJ_DIR%..\ng set NETGEN_TCLSRC=%PROJ_DIR%..\ng
set INSTALL_FOLDER=%PROJ_DIR%%BUILD_TYPE%-inst set INSTALL_FOLDER=%PROJ_DIR%%BUILD_TYPE%-bin
echo POSTBUILD Script for %PROJ_NAME% ........ echo POSTBUILD Script for %PROJ_NAME% ........
@ -34,6 +34,10 @@ if errorlevel 1 goto BuildEventFailed
xcopy "%PROJ_DIR%%BUILD_TYPE%\%PROJ_EXEC%" "%INSTALL_FOLDER%" /i /d /y xcopy "%PROJ_DIR%%BUILD_TYPE%\%PROJ_EXEC%" "%INSTALL_FOLDER%" /i /d /y
if errorlevel 1 goto BuildEventFailed if errorlevel 1 goto BuildEventFailed
REM *** Clean up the build directory by deleting the OBJ files ***
REM echo Deleting the %PROJ_NAME% build folder %PROJ_DIR%%PROJ_NAME% ....
REM rmdir %PROJ_DIR%%BUILD_TYPE% /s /q
REM *** If there have been no errors so far, we are done *** REM *** If there have been no errors so far, we are done ***
goto BuildEventOK goto BuildEventOK
:BuildEventFailed :BuildEventFailed