[atkmm] Overhaul the Visual Studio 2008 Projects
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atkmm] Overhaul the Visual Studio 2008 Projects
- Date: Fri, 19 Sep 2014 07:49:56 +0000 (UTC)
commit e04b8ec98a073281390066833da721c53092a91c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Sep 19 15:49:47 2014 +0800
Overhaul the Visual Studio 2008 Projects
Overhaul the Visual Studio 2008 Projects by using property sheets to
consolidate commonly-used items, so that projects can refer to them, which
will help to simplify future maintenance, and move all the projects to
MSVC_Net2008/.
* MSVC_Net2008/atkmm-build-defines.vsprops:
* MSVC_Net2008/atkmm-version-paths.vsprops: Added property sheet
files used to consolidate commonly-used items to be referred to
from the projects.
* MSVC_Net2008/gendef/gendef.vcproj:
* MSVC_Net2008/atkmm/atkmm.vcproj: Move to MSVC_Net2008/, and
clean up by using the property sheets. Adjust the source file
paths accordingly.
* MSVC_Net2008/atkmm.sln:
* MSVC_Net2008/filelist.am: Adjust file paths accordingly.
MSVC_Net2008/atkmm-build-defines.vsprops | 32 ++++
MSVC_Net2008/atkmm-version-paths.vsprops | 39 +++++
MSVC_Net2008/atkmm.sln | 4 +-
MSVC_Net2008/atkmm.vcproj | 231 ++++++++++++++++++++++++++++
MSVC_Net2008/atkmm/atkmm.vcproj | 247 ------------------------------
MSVC_Net2008/filelist.am | 16 +-
MSVC_Net2008/{gendef => }/gendef.vcproj | 44 +-----
7 files changed, 322 insertions(+), 291 deletions(-)
---
diff --git a/MSVC_Net2008/atkmm-build-defines.vsprops b/MSVC_Net2008/atkmm-build-defines.vsprops
new file mode 100644
index 0000000..e33efc4
--- /dev/null
+++ b/MSVC_Net2008/atkmm-build-defines.vsprops
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioPropertySheet
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="atkmmbuilddefinesprops"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin"
+ IntermediateDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj\$(ProjectName)\"
+ InheritedPropertySheets=".\atkmm-version-paths.vsprops"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+
AdditionalIncludeDirectories=".\atkmm;..\atk;$(GlibEtcInstallRoot)\include\glibmm-2.4;$(GlibEtcInstallRoot)\lib\glibmm-2.4\include;$(GlibEtcInstallRoot)\include\sigc++-2.0;$(GlibEtcInstallRoot)\lib\sigc++-2.0\include;$(GlibEtcInstallRoot)\include\atk-1.0;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include;$(GlibEtcInstallRoot)\include"
+ ForcedIncludeFiles="msvc_recommended_pragmas.h"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="atk-1.0.lib gobject-2.0.lib glib-2.0.lib"
+ AdditionalLibraryDirectories="$(GlibEtcInstallRoot)\lib"
+ />
+ <UserMacro
+ Name="CPPDepLibsRelease"
+ Value="glibmm-vc$(VSVer)0-2_4.lib sigc-vc$(VSVer)0-2_0.lib"
+ />
+ <UserMacro
+ Name="CPPDepLibsDebug"
+ Value="glibmm-vc$(VSVer)0-d-2_4.lib sigc-vc$(VSVer)0-d-2_0.lib"
+ />
+ <UserMacro
+ Name="AtkMMBuildDefs"
+ Value="ATKMM_BUILD"
+ />
+</VisualStudioPropertySheet>
diff --git a/MSVC_Net2008/atkmm-version-paths.vsprops b/MSVC_Net2008/atkmm-version-paths.vsprops
new file mode 100644
index 0000000..3554921
--- /dev/null
+++ b/MSVC_Net2008/atkmm-version-paths.vsprops
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioPropertySheet
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="atkmmversionpathsprops"
+ >
+ <UserMacro
+ Name="VSVer"
+ Value="9"
+ />
+ <UserMacro
+ Name="GlibEtcInstallRoot"
+ Value="$(SolutionDir)\..\..\vs$(VSVer)\$(PlatformName)"
+ />
+ <UserMacro
+ Name="DefDir"
+ Value="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj\$(ProjectName)\"
+ />
+ <UserMacro
+ Name="CopyDir"
+ Value="$(GlibEtcInstallRoot)"
+ />
+ <UserMacro
+ Name="ApiMajorVersion"
+ Value="1"
+ />
+ <UserMacro
+ Name="ApiMinorVersion"
+ Value="6"
+ />
+ <UserMacro
+ Name="ReleaseDllSuffix"
+ Value="-vc$(VSVer)0-$(ApiMajorVersion)_$(ApiMinorVersion)"
+ />
+ <UserMacro
+ Name="DebugDllSuffix"
+ Value="-vc$(VSVer)0-d-$(ApiMajorVersion)_$(ApiMinorVersion)"
+ />
+</VisualStudioPropertySheet>
diff --git a/MSVC_Net2008/atkmm.sln b/MSVC_Net2008/atkmm.sln
index 0c697d0..de7c38b 100644
--- a/MSVC_Net2008/atkmm.sln
+++ b/MSVC_Net2008/atkmm.sln
@@ -1,11 +1,11 @@
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "atkmm-1.6", "atkmm\atkmm.vcproj",
"{9FE0D5A6-458C-45C7-B954-2C3C1E6196C2}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "atkmm", "atkmm.vcproj",
"{9FE0D5A6-458C-45C7-B954-2C3C1E6196C2}"
ProjectSection(ProjectDependencies) = postProject
{07324745-C9BE-4D65-B08A-9C88188C0C28} = {07324745-C9BE-4D65-B08A-9C88188C0C28}
EndProjectSection
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gendef", "gendef\gendef.vcproj",
"{07324745-C9BE-4D65-B08A-9C88188C0C28}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gendef", "gendef.vcproj",
"{07324745-C9BE-4D65-B08A-9C88188C0C28}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/MSVC_Net2008/atkmm.vcproj b/MSVC_Net2008/atkmm.vcproj
new file mode 100644
index 0000000..2a48be8
--- /dev/null
+++ b/MSVC_Net2008/atkmm.vcproj
@@ -0,0 +1,231 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="atkmm"
+ ProjectGUID="{9FE0D5A6-458C-45C7-B954-2C3C1E6196C2}"
+ Keyword="Win32Proj"
+ TargetFrameworkVersion="131072"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ <Platform
+ Name="x64"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ ConfigurationType="2"
+ InheritedPropertySheets="atkmm-build-defines.vsprops"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ PreprocessorDefinitions="_DEBUG;$(AtkMMBuildDefs)"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ RuntimeTypeInfo="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="4"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ Description="Generate atkmm def file"
+ CommandLine="$(OutDir)\gendef.exe $(DefDir)\$(ProjectName).def
$(TargetFileName) $(IntDir)\*.obj"
+ ExcludedFromBuild="false"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="$(CPPDepLibsDebug)"
+ OutputFile="$(OutDir)\$(ProjectName)$(DebugDllSuffix).dll"
+ ModuleDefinitionFile="$(IntDir)\$(ProjectName).def"
+ GenerateDebugInformation="true"
+ RandomizedBaseAddress="1"
+ DataExecutionPrevention="0"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ ConfigurationType="2"
+ InheritedPropertySheets="atkmm-build-defines.vsprops"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ PreprocessorDefinitions="$(AtkMMBuildDefs)"
+ RuntimeLibrary="2"
+ RuntimeTypeInfo="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ Description="Generate atkmm def file"
+ CommandLine="$(OutDir)\gendef.exe $(DefDir)\$(ProjectName).def
$(TargetFileName) $(IntDir)\*.obj"
+ ExcludedFromBuild="false"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="$(CPPDepLibsRelease)"
+ OutputFile="$(OutDir)\$(ProjectName)$(ReleaseDllSuffix).dll"
+ ModuleDefinitionFile="$(IntDir)\$(ProjectName).def"
+ GenerateDebugInformation="true"
+ OptimizeReferences="2"
+ RandomizedBaseAddress="1"
+ DataExecutionPrevention="0"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug|x64"
+ ConfigurationType="2"
+ InheritedPropertySheets="atkmm-build-defines.vsprops"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCMIDLTool"
+ TargetEnvironment="3"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ PreprocessorDefinitions="_DEBUG;$(AtkMMBuildDefs)"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ RuntimeTypeInfo="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ Description="Generate atkmm def file"
+ CommandLine="$(OutDir)\gendef.exe $(DefDir)\$(ProjectName).def
$(TargetFileName) $(IntDir)\*.obj"
+ ExcludedFromBuild="false"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="$(CPPDepLibsDebug)"
+ OutputFile="$(OutDir)\$(ProjectName)$(DebugDllSuffix).dll"
+ ModuleDefinitionFile="$(IntDir)\$(ProjectName).def"
+ GenerateDebugInformation="true"
+ RandomizedBaseAddress="1"
+ DataExecutionPrevention="0"
+ TargetMachine="17"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|x64"
+ ConfigurationType="2"
+ InheritedPropertySheets="atkmm-build-defines.vsprops"
+ CharacterSet="2"
+ >
+ <Tool
+ Name="VCMIDLTool"
+ TargetEnvironment="3"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ PreprocessorDefinitions="$(AtkMMBuildDefs)"
+ RuntimeLibrary="2"
+ RuntimeTypeInfo="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ Description="Generate atkmm def file"
+ CommandLine="$(OutDir)\gendef.exe $(DefDir)\$(ProjectName).def
$(TargetFileName) $(IntDir)\*.obj"
+ ExcludedFromBuild="false"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="$(CPPDepLibsRelease)"
+ OutputFile="$(OutDir)\$(ProjectName)$(ReleaseDllSuffix).dll"
+ ModuleDefinitionFile="$(IntDir)\$(ProjectName).def"
+ GenerateDebugInformation="true"
+ OptimizeReferences="2"
+ RandomizedBaseAddress="1"
+ DataExecutionPrevention="0"
+ TargetMachine="17"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File RelativePath="..\atk\atkmm\action.cc" />
+ <File RelativePath="..\atk\atkmm\component.cc" />
+ <File RelativePath="..\atk\atkmm\document.cc" />
+ <File RelativePath="..\atk\atkmm\editabletext.cc" />
+ <File RelativePath="..\atk\atkmm\hyperlink.cc" />
+ <File RelativePath="..\atk\atkmm\hypertext.cc" />
+ <File RelativePath="..\atk\atkmm\image.cc" />
+ <File RelativePath="..\atk\atkmm\implementor.cc" />
+ <File RelativePath="..\atk\atkmm\init.cc" />
+ <File RelativePath="..\atk\atkmm\noopobject.cc" />
+ <File RelativePath="..\atk\atkmm\object.cc" />
+ <File RelativePath="..\atk\atkmm\objectaccessible.cc" />
+ <File RelativePath="..\atk\atkmm\relation.cc" />
+ <File RelativePath="..\atk\atkmm\relationset.cc" />
+ <File RelativePath="..\atk\atkmm\selection.cc" />
+ <File RelativePath="..\atk\atkmm\stateset.cc" />
+ <File RelativePath="..\atk\atkmm\streamablecontent.cc" />
+ <File RelativePath="..\atk\atkmm\table.cc" />
+ <File RelativePath="..\atk\atkmm\text.cc" />
+ <File RelativePath="..\atk\atkmm\value.cc" />
+ <File RelativePath="..\atk\atkmm\wrap_init.cc" />
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File RelativePath="..\atk\atkmm\action.h" />
+ <File RelativePath="..\atk\atkmm\component.h" />
+ <File RelativePath="..\atk\atkmm\document.h" />
+ <File RelativePath="..\atk\atkmm\editabletext.h" />
+ <File RelativePath="..\atk\atkmm\hyperlink.h" />
+ <File RelativePath="..\atk\atkmm\hypertext.h" />
+ <File RelativePath="..\atk\atkmm\image.h" />
+ <File RelativePath="..\atk\atkmm\implementor.h" />
+ <File RelativePath="..\atk\atkmm\init.h" />
+ <File RelativePath="..\atk\atkmm\noopobject.h" />
+ <File RelativePath="..\atk\atkmm\object.h" />
+ <File RelativePath="..\atk\atkmm\objectaccessible.h" />
+ <File RelativePath="..\atk\atkmm\relation.h" />
+ <File RelativePath="..\atk\atkmm\relationset.h" />
+ <File RelativePath="..\atk\atkmm\selection.h" />
+ <File RelativePath="..\atk\atkmm\stateset.h" />
+ <File RelativePath="..\atk\atkmm\streamablecontent.h" />
+ <File RelativePath="..\atk\atkmm\table.h" />
+ <File RelativePath="..\atk\atkmm\text.h" />
+ <File RelativePath="..\atk\atkmm\value.h" />
+ <File RelativePath="..\atk\atkmm\wrap_init.h" />
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ <File RelativePath=".\atkmm\atkmm.rc" />
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/MSVC_Net2008/filelist.am b/MSVC_Net2008/filelist.am
index 373b3d2..9a65cda 100644
--- a/MSVC_Net2008/filelist.am
+++ b/MSVC_Net2008/filelist.am
@@ -1,10 +1,12 @@
## This file is part of atkmm.
-msvc_net2008_data = \
- blank.cpp \
- atkmm.sln \
- gendef/gendef.vcproj \
- gendef/gendef.cc \
- atkmm/atkmm.rc \
- atkmm/atkmm.vcproj \
+msvc_net2008_data = \
+ blank.cpp \
+ atkmm.sln \
+ atkmm-build-defines.vsprops \
+ atkmm-version-paths.vsprops \
+ gendef.vcproj \
+ gendef/gendef.cc \
+ atkmm/atkmm.rc \
+ atkmm.vcproj \
atkmm/atkmmconfig.h
diff --git a/MSVC_Net2008/gendef/gendef.vcproj b/MSVC_Net2008/gendef.vcproj
similarity index 69%
rename from MSVC_Net2008/gendef/gendef.vcproj
rename to MSVC_Net2008/gendef.vcproj
index 19af764..d04a65e 100644
--- a/MSVC_Net2008/gendef/gendef.vcproj
+++ b/MSVC_Net2008/gendef.vcproj
@@ -20,10 +20,8 @@
<Configurations>
<Configuration
Name="Debug|Win32"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ InheritedPropertySheets="atkmm-build-defines.vsprops"
CharacterSet="2"
>
<Tool
@@ -35,18 +33,13 @@
RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
- Detect64BitPortabilityProblems="false"
DebugInformationFormat="4"
/>
<Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
Name="VCLinkerTool"
- OutputFile="$(OutDir)/gendef.exe"
+ OutputFile="$(OutDir)\$(ProjectName).exe"
LinkIncremental="2"
GenerateDebugInformation="true"
- ProgramDatabaseFile="$(OutDir)/gendef.pdb"
SubSystem="1"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
@@ -55,10 +48,8 @@
</Configuration>
<Configuration
Name="Debug|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ InheritedPropertySheets="atkmm-build-defines.vsprops"
CharacterSet="2"
>
<Tool
@@ -74,18 +65,13 @@
RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
- Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
/>
<Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
Name="VCLinkerTool"
- OutputFile="$(OutDir)/gendef.exe"
+ OutputFile="$(OutDir)\$(ProjectName).exe"
LinkIncremental="2"
GenerateDebugInformation="true"
- ProgramDatabaseFile="$(OutDir)/gendef.pdb"
SubSystem="1"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
@@ -94,10 +80,8 @@
</Configuration>
<Configuration
Name="Release|Win32"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ InheritedPropertySheets="atkmm-build-defines.vsprops"
CharacterSet="2"
>
<Tool
@@ -106,15 +90,11 @@
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
- Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
/>
<Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
Name="VCLinkerTool"
- OutputFile="$(OutDir)/gendef.exe"
+ OutputFile="$(OutDir)\$(ProjectName).exe"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="1"
@@ -127,10 +107,8 @@
</Configuration>
<Configuration
Name="Release|x64"
- OutputDirectory="$(PlatformName)\$(ConfigurationName)"
- IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
- InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+ InheritedPropertySheets="atkmm-build-defines.vsprops"
CharacterSet="2"
>
<Tool
@@ -143,15 +121,11 @@
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
- Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
/>
<Tool
- Name="VCPreLinkEventTool"
- />
- <Tool
Name="VCLinkerTool"
- OutputFile="$(OutDir)/gendef.exe"
+ OutputFile="$(OutDir)\$(ProjectName).exe"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="1"
@@ -171,7 +145,7 @@
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
- <File RelativePath=".\gendef.cc" />
+ <File RelativePath=".\gendef\gendef.cc" />
</Filter>
<Filter
Name="Header Files"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]