diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2011-01-18 13:06:48 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2011-01-18 13:06:48 +0800 |
commit | 35f2fc6061585a695bb16ff3e6f9f4e5a98b7ff5 (patch) | |
tree | 845005578f1001c41cab8cfac467d18d36ab12c7 /build | |
parent | 532a4b637e2696ee6fbceb0cb4bd4327fd8566dd (diff) | |
download | atk-35f2fc6061585a695bb16ff3e6f9f4e5a98b7ff5.tar.gz |
Bug 636190: Visual C++ 2008 Project Files
These are the Visual C++ 2008 Project Files for building ATK, along with
a hand-written config.h.win32(.in) that is used for the purpose. This
attempts to create the project files in a way that is similar to what is
being now done in GLib and GTK+
*The configure.ac and Makefile.am files are updated so that a config.h.win32
can be expanded with the updated version info with each tarball release.
*The atk/Makefile.am file is updated to re-enable the distribution of the
expanded atk/atk.rc file and also to enable the creation of
build/win32/vs9/atk.vcproj from build/win32/vs9/atk.vcprojin with the
correct source file entries in the project file with each tarball release.
This commit has been confirmed with Li Yuan and Tor Lillqvist (thank you!)
Diffstat (limited to 'build')
-rw-r--r-- | build/win32/vs9/atk.sln | 39 | ||||
-rw-r--r-- | build/win32/vs9/atk.vcprojin | 199 | ||||
-rw-r--r-- | build/win32/vs9/atk.vsprops | 123 | ||||
-rw-r--r-- | build/win32/vs9/install.vcproj | 79 |
4 files changed, 440 insertions, 0 deletions
diff --git a/build/win32/vs9/atk.sln b/build/win32/vs9/atk.sln new file mode 100644 index 0000000..950b2eb --- /dev/null +++ b/build/win32/vs9/atk.sln @@ -0,0 +1,39 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "atk", "atk.vcproj", "{86EACD59-F69F-4AAD-854B-AA03D5447360}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "install", "install.vcproj", "{00702787-1566-484D-991F-3E7E459BB909}" + ProjectSection(ProjectDependencies) = postProject + {86EACD59-F69F-4AAD-854B-AA03D5447360} = {86EACD59-F69F-4AAD-854B-AA03D5447360} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {86EACD59-F69F-4AAD-854B-AA03D5447360}.Debug|Win32.ActiveCfg = Debug|Win32 + {86EACD59-F69F-4AAD-854B-AA03D5447360}.Debug|Win32.Build.0 = Debug|Win32 + {86EACD59-F69F-4AAD-854B-AA03D5447360}.Release|Win32.ActiveCfg = Release|Win32 + {86EACD59-F69F-4AAD-854B-AA03D5447360}.Release|Win32.Build.0 = Release|Win32 + {86EACD59-F69F-4AAD-854B-AA03D5447360}.Debug|x64.ActiveCfg = Debug|x64 + {86EACD59-F69F-4AAD-854B-AA03D5447360}.Debug|x64.Build.0 = Debug|x64 + {86EACD59-F69F-4AAD-854B-AA03D5447360}.Release|x64.ActiveCfg = Release|x64 + {86EACD59-F69F-4AAD-854B-AA03D5447360}.Release|x64.Build.0 = Release|x64 + {00702787-1566-484D-991F-3E7E459BB909}.Debug|Win32.ActiveCfg = Debug|Win32 + {00702787-1566-484D-991F-3E7E459BB909}.Debug|Win32.Build.0 = Debug|Win32 + {00702787-1566-484D-991F-3E7E459BB909}.Release|Win32.ActiveCfg = Release|Win32 + {00702787-1566-484D-991F-3E7E459BB909}.Release|Win32.Build.0 = Release|Win32 + {00702787-1566-484D-991F-3E7E459BB909}.Debug|x64.ActiveCfg = Debug|x64 + {00702787-1566-484D-991F-3E7E459BB909}.Debug|x64.Build.0 = Debug|x64 + {00702787-1566-484D-991F-3E7E459BB909}.Release|x64.ActiveCfg = Release|x64 + {00702787-1566-484D-991F-3E7E459BB909}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/build/win32/vs9/atk.vcprojin b/build/win32/vs9/atk.vcprojin new file mode 100644 index 0000000..7876365 --- /dev/null +++ b/build/win32/vs9/atk.vcprojin @@ -0,0 +1,199 @@ +<?xml version="1.0" encoding="big5"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="9.00" + Name="atk" + ProjectGUID="{86EACD59-F69F-4AAD-854B-AA03D5447360}" + RootNamespace="atk" + Keyword="Win32Proj" + TargetFrameworkVersion="196613" + > + <Platforms> + <Platform + Name="Win32" + /> + <Platform + Name="x64" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin" + IntermediateDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj" + ConfigurationType="2" + InheritedPropertySheets=".\atk.vsprops" + CharacterSet="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + PreprocessorDefinitions="_DEBUG;$(AtkDefines)" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + UsePrecompiledHeader="0" + WarningLevel="3" + DebugInformationFormat="4" + /> + <Tool + Name="VCPreLinkEventTool" + CommandLine="$(GenerateAtkDef)" + /> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)\$(AtkDllPrefix)$(ProjectName)$(AtkDllSuffix).dll" + LinkIncremental="2" + IgnoreDefaultLibraryNames="" + ModuleDefinitionFile="..\..\..\atk\atk.def" + GenerateDebugInformation="true" + SubSystem="2" + ImportLibrary="$(OutDir)\$(ProjectName)-$(AtkApiVersion).lib" + TargetMachine="1" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin" + IntermediateDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj" + ConfigurationType="2" + InheritedPropertySheets=".\atk.vsprops" + CharacterSet="1" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + EnableIntrinsicFunctions="true" + PreprocessorDefinitions="$(AtkDefines)" + RuntimeLibrary="2" + EnableFunctionLevelLinking="true" + UsePrecompiledHeader="0" + WarningLevel="3" + DebugInformationFormat="3" + /> + <Tool + Name="VCPreLinkEventTool" + CommandLine="$(GenerateAtkDef)" + /> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)\$(AtkDllPrefix)$(ProjectName)$(AtkDllSuffix).dll" + LinkIncremental="1" + IgnoreDefaultLibraryNames="" + ModuleDefinitionFile="..\..\..\atk\atk.def" + GenerateDebugInformation="true" + SubSystem="2" + OptimizeReferences="2" + EnableCOMDATFolding="2" + ImportLibrary="$(OutDir)\$(ProjectName)-$(AtkApiVersion).lib" + TargetMachine="1" + /> + </Configuration> + <Configuration + Name="Debug|x64" + InheritedPropertySheets=".\atk.vsprops" + ConfigurationType="2" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + PreprocessorDefinitions="_DEBUG;$(AtkDefines)" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + UsePrecompiledHeader="0" + WarningLevel="3" + DebugInformationFormat="3" + /> + <Tool + Name="VCPreLinkEventTool" + CommandLine="$(GenerateAtkDef)" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="" + OutputFile="$(OutDir)\$(AtkDllPrefix)$(ProjectName)-$(AtkDllSuffix).dll" + LinkIncremental="2" + ModuleDefinitionFile="..\..\..\atk\atk.def" + GenerateDebugInformation="true" + SubSystem="2" + ImportLibrary="$(TargetDir)$(ProjectName)-$(AtkApiVersion).lib" + TargetMachine="17" + /> + </Configuration> + <Configuration + Name="Release|x64" + InheritedPropertySheets=".\atk.vsprops" + ConfigurationType="2" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="$(AtkDefines)" + RuntimeLibrary="2" + UsePrecompiledHeader="0" + WarningLevel="3" + DebugInformationFormat="3" + /> + <Tool + Name="VCPreLinkEventTool" + CommandLine="$(GenerateAtkDef)" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="" + OutputFile="$(OutDir)\$(AtkDllPrefix)$(ProjectName)-$(AtkDllSuffix).dll" + LinkIncremental="2" + ModuleDefinitionFile="..\..\..\atk\atk.def" + GenerateDebugInformation="true" + SubSystem="2" + OptimizeReferences="2" + EnableCOMDATFolding="2" + ImportLibrary="$(TargetDir)$(ProjectName)-$(AtkApiVersion).lib" + TargetMachine="17" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Sources" + Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" + > +#include "libatk.sourcefiles" + </Filter> + <Filter + Name="Headers" + Filter="h;hpp;hxx;hm;inl;inc;xsd" + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" + > + </Filter> + <Filter + Name="Resource Files" + Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" + UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" + > + <File RelativePath="..\..\..\atk\atk.rc" /> + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/build/win32/vs9/atk.vsprops b/build/win32/vs9/atk.vsprops new file mode 100644 index 0000000..2ec4a1f --- /dev/null +++ b/build/win32/vs9/atk.vsprops @@ -0,0 +1,123 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioPropertySheet + ProjectType="Visual C++" + Version="8.00" + Name="atkprops" + OutputDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin" + IntermediateDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj" + > + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="..\..\..;..\..\..\atk;$(AtkEtcInstallRoot)\include;$(AtkEtcInstallRoot)\include\glib-2.0;$(AtkEtcInstallRoot)\lib\glib-2.0\include\" + PreprocessorDefinitions="HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_DISABLE_SINGLE_INCLUDES" + ForcedIncludeFiles="msvc_recommended_pragmas.h" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="glib-2.0.lib gobject-2.0.lib gmodule-2.0.lib intl.lib" + AdditionalLibraryDirectories="$(AtkEtcInstallRoot)\lib" + /> + <Tool + Name="VCPreBuildEventTool" + CommandLine=" +if exist ..\..\..\config.h goto DONE_CONFIG_H
 +copy ..\..\..\config.h.win32 ..\..\..\config.h
 +:DONE_CONFIG_H
 +if exist ..\..\..\atk\atkmarshal.h goto GEN_MARS_C
 +glib-genmarshal --prefix=atk_marshal ..\..\..\atk\atkmarshal.list --header >..\..\..\atk\atkmarshal.h
 +:GEN_MARS_C
 +if exist ..\..\..\atk\atkmarshal.c goto END
 +glib-genmarshal --prefix=atk_marshal ..\..\..\atk\atkmarshal.list --body >..\..\..\atk\atkmarshal.c
 +:END
 +" + /> + <UserMacro + Name="AtkApiVersion" + Value="1.0" + /> + <UserMacro + Name="AtkDummyPrefix" + Value="/dummy" + /> + <UserMacro + Name="AtkDoInstall" + Value=" +mkdir $(OutDir)
 +mkdir $(OutDir)\bin
 +copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\*.dll $(OutDir)\bin
 + +mkdir $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atk.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkaction.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkcomponent.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkdocument.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkeditabletext.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkgobjectaccessible.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkhyperlink.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkhyperlinkimpl.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkhypertext.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atknoopobject.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atknoopobjectfactory.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkobject.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkobjectfactory.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkplug.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkimage.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkregistry.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkrelation.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkrelationtype.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkrelationset.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkselection.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atksocket.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkstate.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkstateset.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkstreamablecontent.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atktable.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atktext.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkutil.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkmisc.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atkvalue.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 +copy ..\..\..\atk\atk-enum-types.h $(OutDir)\include\atk-$(AtkApiVersion)\atk
 + +mkdir $(OutDir)\lib
 +copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\*-$(AtkApiVersion).lib $(OutDir)\lib
 +" + /> + <UserMacro + Name="GenerateAtkDef" + Value="echo EXPORTS >"..\..\..\atk\atk.def" && cl /EP ..\..\..\atk\atk.symbols >>"..\..\..\atk\atk.def"" + /> + <UserMacro + Name="AtkDefines" + Value="ATK_LOCALEDIR="\"$(AtkDummyPrefix)/share/locale\""" + /> + <UserMacro + Name="AtkLibtoolCompatibleDllPrefix" + Value="lib" + /> + <UserMacro + Name="AtkLibtoolCompatibleDllSuffix" + Value="-1.0-0" + /> + <UserMacro + Name="AtkSeparateVS9DllPrefix" + Value="" + /> + <UserMacro + Name="AtkSeparateVS9DllSuffix" + Value="-1-vs9" + /> + <!-- Change these two to AtkLibtoolCompatibleDllPrefix and + AtkLibtoolCompatibleDllSuffix if that is what you want --> + <UserMacro + Name="AtkDllPrefix" + Value="$(AtkSeparateVS9DllPrefix)" + /> + <UserMacro + Name="AtkDllSuffix" + Value="$(AtkSeparateVS9DllSuffix)" + /> + <UserMacro + Name="AtkEtcInstallRoot" + Value="..\..\..\..\..\vs9\$(PlatformName)" + /> +</VisualStudioPropertySheet> diff --git a/build/win32/vs9/install.vcproj b/build/win32/vs9/install.vcproj new file mode 100644 index 0000000..98a6149 --- /dev/null +++ b/build/win32/vs9/install.vcproj @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="big5"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="9.00" + Name="install" + ProjectGUID="{00702787-1566-484D-991F-3E7E459BB909}" + RootNamespace="install" + TargetFrameworkVersion="196613" + > + <Platforms> + <Platform + Name="Win32" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="$(AtkEtcInstallRoot)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="10" + InheritedPropertySheets=".\atk.vsprops" + CharacterSet="2" + > + <Tool + Name="VCPostBuildEventTool" + CommandLine="$(AtkDoInstall)" + /> + </Configuration> + <Configuration + Name="Debug|x64" + OutputDirectory="$(AtkEtcInstallRoot)" + InheritedPropertySheets=".\atk.vsprops" + ConfigurationType="10" + CharacterSet="2" + DeleteExtensionsOnClean="" + > + <Tool + Name="VCPreBuildEventTool" + CommandLine="$(AtkDoInstall)" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="$(AtkEtcInstallRoot)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="10" + InheritedPropertySheets=".\atk.vsprops" + CharacterSet="2" + WholeProgramOptimization="1" + > + <Tool + Name="VCPostBuildEventTool" + CommandLine="$(AtkDoInstall)" + /> + </Configuration> + <Configuration + Name="Release|x64" + OutputDirectory="$(AtkEtcInstallRoot)" + InheritedPropertySheets=".\atk.vsprops" + ConfigurationType="10" + CharacterSet="2" + WholeProgramOptimization="1" + DeleteExtensionsOnClean="" + > + <Tool + Name="VCPreBuildEventTool" + CommandLine="$(AtkDoInstall)" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + </Files> + <Globals> + </Globals> +</VisualStudioProject> |