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 541b826 commit 3091d7c
Show file tree
Hide file tree
Showing 15 changed files with 86 additions and 66 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
2 changes: 1 addition & 1 deletion msvc/environment_lib_paths.vsprops
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/>
<Tool
Name="VCLinkerTool"
AdditionalLibraryDirectories="&quot;$(envGTEST_DIR)\msvc\$(ConfigurationName)&quot;"
AdditionalLibraryDirectories=""
/>
<UserMacro
Name="envGTEST_DIR"
Expand Down
10 changes: 4 additions & 6 deletions msvc/gmock.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.8.vsprops"
CharacterSet="1"
>
<Tool
Expand Down Expand Up @@ -61,6 +59,7 @@
/>
<Tool
Name="VCLibrarianTool"
AdditionalLibraryDirectories=""
/>
<Tool
Name="VCALinkTool"
Expand All @@ -80,10 +79,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.8.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
Expand Down Expand Up @@ -122,6 +119,7 @@
/>
<Tool
Name="VCLibrarianTool"
AdditionalLibraryDirectories=""
/>
<Tool
Name="VCALinkTool"
Expand Down
9 changes: 3 additions & 6 deletions msvc/gmock.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.9.vsprops"
CharacterSet="1"
>
<Tool
Expand Down Expand Up @@ -62,6 +60,7 @@
/>
<Tool
Name="VCLibrarianTool"
AdditionalLibraryDirectories=""
/>
<Tool
Name="VCALinkTool"
Expand All @@ -81,10 +80,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.9.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
Expand Down
8 changes: 2 additions & 6 deletions msvc/gmock_link_test.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.8.vsprops"
CharacterSet="1"
>
<Tool
Expand Down Expand Up @@ -96,10 +94,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.8.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
Expand Down
10 changes: 3 additions & 7 deletions msvc/gmock_link_test.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.9.vsprops"
CharacterSet="1"
>
<Tool
Expand Down Expand Up @@ -95,10 +93,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.9.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
Expand Down Expand Up @@ -174,7 +170,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{E4EF614B-30DF-4954-8C53-580A0BF6B589}"
RelativePathToProject=".\gmock_main.vc.9.0.vcproj"
RelativePathToProject=".\gmock_main.9.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 2 additions & 6 deletions msvc/gmock_main.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.8.vsprops"
CharacterSet="1"
>
<Tool
Expand Down Expand Up @@ -80,10 +78,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.8.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
Expand Down
10 changes: 3 additions & 7 deletions msvc/gmock_main.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.9.vsprops"
CharacterSet="1"
>
<Tool
Expand Down Expand Up @@ -81,10 +79,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.9.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
Expand Down Expand Up @@ -144,7 +140,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{34681F0D-CE45-415D-B5F2-5C662DFE3BD5}"
RelativePathToProject=".\gmock.vc.9.0.vcproj"
RelativePathToProject=".\gmock.9.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 2 additions & 6 deletions msvc/gmock_output_test_.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.8.vsprops"
CharacterSet="1"
>
<Tool
Expand Down Expand Up @@ -95,10 +93,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.8.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
Expand Down
10 changes: 3 additions & 7 deletions msvc/gmock_output_test_.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.9.vsprops"
CharacterSet="1"
>
<Tool
Expand Down Expand Up @@ -95,10 +93,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.9.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
Expand Down Expand Up @@ -174,7 +170,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{E4EF614B-30DF-4954-8C53-580A0BF6B589}"
RelativePathToProject=".\gmock_main.vc.9.0.vcproj"
RelativePathToProject=".\gmock_main.9.vcproj"
/>
</References>
<Files>
Expand Down
8 changes: 2 additions & 6 deletions msvc/gmock_test.8.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.8.vsprops"
CharacterSet="1"
>
<Tool
Expand Down Expand Up @@ -96,10 +94,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.8.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
Expand Down
10 changes: 3 additions & 7 deletions msvc/gmock_test.9.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.9.vsprops"
CharacterSet="1"
>
<Tool
Expand Down Expand Up @@ -95,10 +93,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(OutDir)\$(ProjectName)"
ConfigurationType="1"
InheritedPropertySheets=".\gmock_config.vsprops;.\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
InheritedPropertySheets=".\gmock_config.vsprops;.\lib_paths.9.vsprops"
CharacterSet="1"
WholeProgramOptimization="1"
>
Expand Down Expand Up @@ -174,7 +170,7 @@
<References>
<ProjectReference
ReferencedProjectIdentifier="{E4EF614B-30DF-4954-8C53-580A0BF6B589}"
RelativePathToProject=".\gmock_main.vc.9.0.vcproj"
RelativePathToProject=".\gmock_main.9.vcproj"
/>
</References>
<Files>
Expand Down
28 changes: 28 additions & 0 deletions msvc/lib_paths.8.vsprops
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="lib_paths"
OutputDirectory="$(SolutionDir)vc8/$(ConfigurationName)"
IntermediateDirectory="$(OutDir)/$(ProjectName)"
InheritedPropertySheets=".\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
>
<Tool
Name="VCLibrarianTool"
AdditionalLibraryDirectories="$(ENV_LIB_PATHS);$(SM_LIB_PATHS)"
/>
<Tool
Name="VCLinkerTool"
AdditionalLibraryDirectories="$(ENV_LIB_PATHS);$(SM_LIB_PATHS)"
/>
<UserMacro
Name="ENV_LIB_PATHS"
Value="&quot;$(envGTEST_DIR)\msvc\vc8\$(ConfigurationName)&quot;"
PerformEnvironmentSet="true"
/>
<UserMacro
Name="SM_LIB_PATHS"
Value="&quot;$(smGTEST_DIR)\msvc\vc8\$(ConfigurationName)\&quot;"
PerformEnvironmentSet="true"
/>
</VisualStudioPropertySheet>
28 changes: 28 additions & 0 deletions msvc/lib_paths.9.vsprops
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="lib_paths"
OutputDirectory="$(SolutionDir)vc9/$(ConfigurationName)"
IntermediateDirectory="$(OutDir)/$(ProjectName)"
InheritedPropertySheets=".\submodule_lib_paths.vsprops;.\environment_lib_paths.vsprops"
>
<Tool
Name="VCLibrarianTool"
AdditionalLibraryDirectories="$(ENV_LIB_PATHS);$(SM_LIB_PATHS)"
/>
<Tool
Name="VCLinkerTool"
AdditionalLibraryDirectories="$(ENV_LIB_PATHS);$(SM_LIB_PATHS)"
/>
<UserMacro
Name="ENV_LIB_PATHS"
Value="&quot;$(envGTEST_DIR)\msvc\vc9\$(ConfigurationName)&quot;"
PerformEnvironmentSet="true"
/>
<UserMacro
Name="SM_LIB_PATHS"
Value="&quot;$(smGTEST_DIR)\msvc\vc9\$(ConfigurationName)\&quot;"
PerformEnvironmentSet="true"
/>
</VisualStudioPropertySheet>
2 changes: 1 addition & 1 deletion msvc/submodule_lib_paths.vsprops
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/>
<Tool
Name="VCLinkerTool"
AdditionalLibraryDirectories="&quot;$(smGTEST_DIR)\msvc\$(ConfigurationName)\&quot;"
AdditionalLibraryDirectories=""
/>
<UserMacro
Name="smGTEST_DIR"
Expand Down

0 comments on commit 3091d7c

Please sign in to comment.