Add property sheet to allow easily configure projects using wx
This seems to be the simplest possible way to let a MSVS project use the library.
This commit is contained in:
@@ -168,6 +168,7 @@ wxMSW:
|
||||
- Improve wxNotebook themed background drawing (Arrigo Marchiori).
|
||||
- Send wxEVT_WEBVIEW_NAVIGATING when redirecting (Josue Andrade Gomes).
|
||||
- Fix build with MSVS 2005 broken in 3.1.1.
|
||||
- Add wxwidgets.props property sheet file for MSVS users.
|
||||
|
||||
wxOSX:
|
||||
|
||||
|
@@ -505,6 +505,10 @@ The full list of the build settings follows:
|
||||
Building Applications Using wxWidgets {#msw_build_apps}
|
||||
=====================================
|
||||
|
||||
If you use MSVS 2010 or later IDE for building your project, simply add
|
||||
`wxwidgets.props` property sheet to (all) your project(s) using wxWidgets.
|
||||
You don't need to do anything else.
|
||||
|
||||
If you want to use CMake for building your project, please see
|
||||
@ref overview_cmake.
|
||||
|
||||
|
30
wxwidgets.props
Normal file
30
wxwidgets.props
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This is a property sheet to be included in MSVS projects of the applications
|
||||
using wxWidgets. Use "View|Property Manager" and choose "Add Existing
|
||||
Property Sheet..." from the context menu to add it from the IDE or edit your
|
||||
.vcxproj file directly and add <Import Project="path\to\wxwidgets.props">
|
||||
tag to it.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ImportGroup Label="PropertySheets">
|
||||
<Import Project="build/msw/wx_setup.props" />
|
||||
<Import Project="build/msw/wx_local.props" Condition="exists('build/msw/wx_local.props')" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" Condition="'$(Configuration)'=='DLL Debug' or '$(Configuration)'=='DLL Release'">
|
||||
<wxUsingDllDefine>WXUSINGDLL</wxUsingDllDefine>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>__WXMSW__;$(wxUsingDllDefine);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)include\msvc;$(MSBuildThisFileDirectory)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>__WXMSW__;$(wxUsingDllDefine);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)lib\$(wxOutDirName)\$(wxToolkitPrefix)$(wxSuffix);$(MSBuildThisFileDirectory)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)lib\$(wxOutDirName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user