the following files are the wxWidgets 2.8.x project property file:
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ImportGroup Label="PropertySheets" /> <PropertyGroup Label="UserMacros" /> <PropertyGroup> <GenerateManifest>false</GenerateManifest> <IncludePath>$(wxMSW28x)\include;$(IncludePath)</IncludePath> </PropertyGroup> <ItemDefinitionGroup> <ClCompile> <AdditionalIncludeDirectories>$(wxMSW28x)\include;$(wxMSW28x)\include\msvc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <WarningLevel>EnableAllWarnings</WarningLevel> </ClCompile> <Link> <AdditionalLibraryDirectories>$(wxMSW28x)\lib\vc_lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <AdditionalDependencies>wxbase28ud_net.lib;wxmsw28ud_html.lib;wxbase28ud_xml.lib;wxmsw28ud_adv.lib;wxmsw28ud_aui.lib;wxmsw28ud_media.lib;wxmsw28ud_qa.lib;wxmsw28ud_richtext.lib;wxmsw28ud_xrc.lib;wxmsw28ud_core.lib;wxbase28ud.lib;wxtiffd.lib;wxjpegd.lib;wxpngd.lib;wxzlibd.lib;wxexpatd.lib;kernel32.lib;user32.lib;gdi32.lib;comdlg32.lib;winspool.lib;winmm.lib;shell32.lib;comctl32.lib;ole32.lib;oleaut32.lib;uuid.lib;rpcrt4.lib;advapi32.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies> </Link> </ItemDefinitionGroup> <ItemGroup /> </Project> <!-- Properties For wxWidgets 2.8.x in MSVC++(Express) 2010 Debug Mode :-) -->
save it as a props file, for example "wxDebugModeFor2.8.x.props", it‘s in debug mode, and the following file for "wxReleaseModeFor2.8.x.props":
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ImportGroup Label="PropertySheets" /> <PropertyGroup Label="UserMacros" /> <PropertyGroup> <IncludePath>$(wxMSW28x)\include;$(IncludePath)</IncludePath> </PropertyGroup> <ItemDefinitionGroup> <Link> <AdditionalDependencies>wxbase28u.lib;wxbase28u_net.lib;wxbase28u_xml.lib;wxexpat.lib;wxjpeg.lib;wxmsw28u_adv.lib;wxmsw28u_aui.lib;wxmsw28u_core.lib;wxmsw28u_html.lib;wxmsw28u_media.lib;wxmsw28u_qa.lib;wxmsw28u_richtext.lib;wxmsw28u_xrc.lib;wxpng.lib;wxregexu.lib;wxtiff.lib;wxzlib.lib;winmm.lib;comctl32.lib;rpcrt4.lib;wsock32.lib;oleacc.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories>$(wxMSW28x)\lib\vc_lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> </Link> <ClCompile> <AdditionalIncludeDirectories>$(wxMSW28x)\include;$(wxMSW28x)\include\msvc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <WarningLevel>EnableAllWarnings</WarningLevel> <Optimization>Full</Optimization> </ClCompile> </ItemDefinitionGroup> <ItemGroup /> </Project> <!-- Properties For wxWidgets 2.8.x in MSVC++(Express) 2010 Release Mode :-) -->
notice that in code have a global varible wxMSW28x, you need to add a system varible, and make it to your wxWidgets path, or simple it replace it by WXWIN for most wxWidgets path varible (if any).
also, i‘ll give wxWidgets 3.0.x project property file:
first, "wxDebugModeFor3.0.x.props":
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ImportGroup Label="PropertySheets" /> <PropertyGroup Label="UserMacros" /> <PropertyGroup> <GenerateManifest>false</GenerateManifest> <IncludePath>$(wxMSW30x)\include;$(IncludePath)</IncludePath> </PropertyGroup> <ItemDefinitionGroup> <ClCompile> <AdditionalIncludeDirectories>$(wxMSW30x)\include;$(wxMSW30x)\include\msvc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <WarningLevel>EnableAllWarnings</WarningLevel> </ClCompile> <Link> <AdditionalLibraryDirectories>$(wxMSW30x)\lib\vc_lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <AdditionalDependencies>wxbase30ud_net.lib;wxmsw30ud_html.lib;wxbase30ud_xml.lib;wxmsw30ud_adv.lib;wxmsw30ud_aui.lib;wxmsw30ud_gl.lib;wxmsw30ud_media.lib;wxmsw30ud_propgrid.lib;wxmsw30ud_qa.lib;wxmsw30ud_ribbon.lib;wxmsw30ud_richtext.lib;wxmsw30ud_stc.lib;wxmsw30ud_xrc.lib;wxscintillad.lib;wxmsw30ud_core.lib;wxbase30ud.lib;wxtiffd.lib;wxjpegd.lib;wxpngd.lib;wxzlibd.lib;wxexpatd.lib;kernel32.lib;user32.lib;gdi32.lib;comdlg32.lib;winspool.lib;winmm.lib;shell32.lib;comctl32.lib;ole32.lib;oleaut32.lib;uuid.lib;rpcrt4.lib;advapi32.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies> </Link> </ItemDefinitionGroup> <ItemGroup /> </Project> <!-- Properties For wxWidgets 3.0.x in MSVC++(Express) 2010 Debug Mode :-) -->
and next is "wxReleaseModeFor3.0.x.props":
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ImportGroup Label="PropertySheets" /> <PropertyGroup Label="UserMacros" /> <PropertyGroup> <IncludePath>$(wxMSW30x)\include;$(IncludePath)</IncludePath> </PropertyGroup> <ItemDefinitionGroup> <Link> <AdditionalDependencies>wxbase30u.lib;wxbase30u_net.lib;wxbase30u_xml.lib;wxexpat.lib;wxjpeg.lib;wxmsw30u_adv.lib;wxmsw30u_aui.lib;wxmsw30u_core.lib;wxmsw30u_gl.lib;wxmsw30u_html.lib;wxmsw30u_media.lib;wxmsw30u_propgrid.lib;wxmsw30u_qa.lib;wxmsw30u_ribbon.lib;wxmsw30u_richtext.lib;wxmsw30u_stc.lib;wxmsw30u_xrc.lib;wxpng.lib;wxregexu.lib;wxscintilla.lib;wxtiff.lib;wxzlib.lib;winmm.lib;comctl32.lib;rpcrt4.lib;wsock32.lib;oleacc.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalLibraryDirectories>$(wxMSW30x)\lib\vc_lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> </Link> <ClCompile> <AdditionalIncludeDirectories>$(wxMSW30x)\include;$(wxMSW30x)\include\msvc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <WarningLevel>EnableAllWarnings</WarningLevel> <Optimization>Full</Optimization> </ClCompile> </ItemDefinitionGroup> <ItemGroup /> </Project> <!-- Properties For wxWidgets 3.0.x in MSVC++(Express) 2010 Release Mode :-) -->
and add it in your MSVC++ (or Express) "Property Manager":
if any wrong, please contact me or comment this post. :-)
时间: 2024-10-20 21:31:19