Skip to content

Commit

Permalink
project files: make vc8 and 9 libs side-by-side
Browse files Browse the repository at this point in the history
- Allowing the different vc version to be built and live side-by-side
  makes for easier testing by developers using multiple vc compilers.
  This change makes mock recognize the vc8 and 9 paths of google test
  as well as place the mock binaries in a appropriate path.

[#2]

Signed-off-by: Thell Fowler <git@tbfowler.name>
  • Loading branch information
Thell Fowler committed Dec 11, 2009
1 parent 1960fdf commit ebcd79c
Show file tree
Hide file tree
Showing 21 changed files with 69 additions and 89 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Thumbs.db
*.cache
*.ilk
*.log
msvc/vc*/
[Bb]in
[Dd]ebug*/
*.lib
Expand Down
14 changes: 14 additions & 0 deletions msvc/N++CR.8.vsprops
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="N++CR"
OutputDirectory="$(SolutionDir)vc8/$(ConfigurationName)"
IntermediateDirectory="$(SolutionDir)vc8/$(ConfigurationName)/$(ProjectName)"
BuildLogFile="$(IntDir)\$(TargetName)_Buildlog.htm"
>
<Tool
Name="VCCLCompilerTool"
ProgramDataBaseFileName="$(IntDir)\vc80.pdb"
/>
</VisualStudioPropertySheet>
3 changes: 2 additions & 1 deletion msvc/N++CR.vsprops → msvc/N++CR.9.vsprops
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
ProjectType="Visual C++"
Version="8.00"
Name="N++CR"
IntermediateDirectory="$(ConfigurationName)\$(ProjectName)"
OutputDirectory="$(SolutionDir)vc9/$(ConfigurationName)"
IntermediateDirectory="$(SolutionDir)vc9/$(ConfigurationName)/$(ProjectName)"
BuildLogFile="$(IntDir)\$(TargetName)_Buildlog.htm"
>
<Tool
Expand Down
6 changes: 2 additions & 4 deletions msvc/gtest.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -78,9 +77,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down
6 changes: 2 additions & 4 deletions msvc/gtest.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="4"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -82,9 +81,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="4"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down
8 changes: 3 additions & 5 deletions msvc/gtest_color_test_.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -92,9 +91,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -168,7 +166,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject=".\gtest.vcproj"
RelativePathToProject=".\gtest.8.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 3 additions & 5 deletions msvc/gtest_color_test_.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="1"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -94,9 +93,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="1"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -170,7 +168,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject=".\gtest.vc.9.0.vcproj"
RelativePathToProject=".\gtest.9.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 3 additions & 5 deletions msvc/gtest_env_var_test_.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -92,9 +91,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -168,7 +166,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject=".\gtest.vcproj"
RelativePathToProject=".\gtest.8.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 3 additions & 5 deletions msvc/gtest_env_var_test_.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="1"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -94,9 +93,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="1"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -170,7 +168,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject=".\gtest.vc.9.0.vcproj"
RelativePathToProject=".\gtest.9.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 3 additions & 5 deletions msvc/gtest_environment_test.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -92,9 +91,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -168,7 +166,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject=".\gtest.vcproj"
RelativePathToProject=".\gtest.8.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 3 additions & 5 deletions msvc/gtest_environment_test.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="1"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -94,9 +93,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="1"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -170,7 +168,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject=".\gtest.vc.9.0.vcproj"
RelativePathToProject=".\gtest.9.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 3 additions & 5 deletions msvc/gtest_main.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -78,9 +77,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -139,7 +137,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject=".\gtest.vcproj"
RelativePathToProject=".\gtest.8.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 3 additions & 5 deletions msvc/gtest_main.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="4"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -81,9 +80,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="4"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -143,7 +141,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject=".\gtest.vc.9.0.vcproj"
RelativePathToProject=".\gtest.9.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 3 additions & 5 deletions msvc/gtest_output_test_.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -92,9 +91,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.vsprops"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;.\N++CR.8.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -168,7 +166,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject=".\gtest.vcproj"
RelativePathToProject=".\gtest.8.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 3 additions & 5 deletions msvc/gtest_output_test_.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
ConfigurationType="1"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -94,9 +93,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
ConfigurationType="1"
InheritedPropertySheets=".\N++CR.vsprops"
InheritedPropertySheets=".\N++CR.9.vsprops"
CharacterSet="2"
>
<Tool
Expand Down Expand Up @@ -170,7 +168,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject=".\gtest.vc.9.0.vcproj"
RelativePathToProject=".\gtest.9.vcproj"
/>
</References>
<Files>
Expand Down
Loading

0 comments on commit ebcd79c

Please sign in to comment.