wxwidgets/build/msw/wx_setup.props
Lauri Nurmi 99bc43cefe Introduce minimal MSW ARM support
wxMSW could already be compiled for ARM with MSVC, but due to not
defining any ARCH_SUFFIX for ARM, makefile.vc used to place objectsi
and libraries to the same folder as x86 objects and libraries.

A completely different question is what kind of Windows runs on 32-bit
ARM, and whether one can run regular desktop apps on it.

This commit mimics what f69dbaa1 did for ARM64, and adapts it for ARM.

Closes #24222.
2024-01-21 01:48:16 +01:00

125 lines
5.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_PropertySheetDisplayName>wxWidgets Setup Options</_PropertySheetDisplayName>
</PropertyGroup>
<PropertyGroup Label="UserMacros">
<wxVersionString>330</wxVersionString>
<wxShortVersionString>33</wxShortVersionString>
<wxToolkitPrefix>msw</wxToolkitPrefix>
<wxCompilerPrefix>vc</wxCompilerPrefix>
<wxCfg>
</wxCfg>
<wxSuffix>u</wxSuffix>
<wxVendor>custom</wxVendor>
<wxRuntimeLibs>dynamic</wxRuntimeLibs>
<wxReleaseRuntimeLibrary>MultiThreadedDLL</wxReleaseRuntimeLibrary>
<wxDebugRuntimeLibrary>MultiThreadedDebugDLL</wxDebugRuntimeLibrary>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(wxRuntimeLibs)'=='static'">
<!-- Only these need overriding in wx_local.props -->
<wxReleaseRuntimeLibrary>MultiThreaded</wxReleaseRuntimeLibrary>
<wxDebugRuntimeLibrary>MultiThreadedDebug</wxDebugRuntimeLibrary>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Platform)'=='Win32'">
<wxArchSuffix>
</wxArchSuffix>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Platform)'=='x64'">
<wxArchSuffix>_x64</wxArchSuffix>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Platform)'=='ARM'">
<wxArchSuffix>_arm</wxArchSuffix>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Platform)'=='ARM64'">
<wxArchSuffix>_arm64</wxArchSuffix>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="('$(Configuration)'=='Debug' or '$(Configuration)'=='DLL Debug')">
<wxSuffixDebug>d</wxSuffixDebug>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="('$(Configuration)'=='Release' or '$(Configuration)'=='DLL Release')">
<wxSuffixDebug>
</wxSuffixDebug>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Configuration)'=='Debug' or '$(Configuration)'=='DLL Debug'">
<wxSuffixDebug>d</wxSuffixDebug>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Configuration)'!='Debug' and '$(Configuration)'!='DLL Debug'">
<wxSuffixDebug>
</wxSuffixDebug>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Configuration)'=='DLL Debug' or '$(Configuration)'=='DLL Release'">
<wxLibTypeSuffix>dll</wxLibTypeSuffix>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Configuration)'!='DLL Debug' and '$(Configuration)'!='DLL Release'">
<wxLibTypeSuffix>lib</wxLibTypeSuffix>
</PropertyGroup>
<PropertyGroup Label="UserMacros">
<wxOutDirName>$(wxCompilerPrefix)$(wxArchSuffix)_$(wxLibTypeSuffix)$(wxCfg)</wxOutDirName>
<wxOutDir>..\..\lib\$(wxOutDirName)\</wxOutDir>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Configuration)'=='DLL Debug'">
<wxIntRootDir>$(wxCompilerPrefix)$(wxArchSuffix)_$(wxToolkitPrefix)u$(wxSuffixDebug)dll\</wxIntRootDir>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Configuration)'=='DLL Release'">
<wxIntRootDir>$(wxCompilerPrefix)$(wxArchSuffix)_$(wxToolkitPrefix)u$(wxSuffixDebug)dll\</wxIntRootDir>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Configuration)'=='Debug'">
<wxIntRootDir>$(wxCompilerPrefix)$(wxArchSuffix)_$(wxToolkitPrefix)u$(wxSuffixDebug)\</wxIntRootDir>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Configuration)'=='Release'">
<wxIntRootDir>$(wxCompilerPrefix)$(wxArchSuffix)_$(wxToolkitPrefix)u$(wxSuffixDebug)\</wxIntRootDir>
</PropertyGroup>
<PropertyGroup Label="UserMacros">
<wxIncSubDir>$(wxToolkitPrefix)u$(wxSuffixDebug)</wxIncSubDir>
<wxToolkitDllNamePrefix>wx$(wxToolkitPrefix)$(wxVersionString)u$(wxSuffixDebug)_</wxToolkitDllNamePrefix>
<wxToolkitDllNameSuffix>_$(wxCompilerPrefix)$(wxArchSuffix)_$(wxVendor)</wxToolkitDllNameSuffix>
<wxToolkitLibNamePrefix>wx$(wxToolkitPrefix)$(wxShortVersionString)u$(wxSuffixDebug)_</wxToolkitLibNamePrefix>
<wxBaseDllNamePrefix>wxbase$(wxVersionString)u$(wxSuffixDebug)</wxBaseDllNamePrefix>
<wxBaseLibNamePrefix>wxbase$(wxShortVersionString)u$(wxSuffixDebug)</wxBaseLibNamePrefix>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalOptions Condition="('$(Configuration)'=='Release' or '$(Configuration)'=='DLL Release') and '$(VisualStudioVersion)' >= '14.0'">/Zc:throwingNew %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;comdlg32.lib;winspool.lib;shell32.lib;shlwapi.lib;ole32.lib;oleaut32.lib;uuid.lib;advapi32.lib;version.lib;comctl32.lib;rpcrt4.lib;ws2_32.lib;wininet.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<BuildMacro Include="wxShortVersionString">
<Value>$(wxShortVersionString)</Value>
</BuildMacro>
<BuildMacro Include="wxArchSuffix">
<Value>$(wxArchSuffix)</Value>
</BuildMacro>
<BuildMacro Include="wxToolkitPrefix">
<Value>$(wxToolkitPrefix)</Value>
</BuildMacro>
<BuildMacro Include="wxCompilerPrefix">
<Value>$(wxCompilerPrefix)</Value>
</BuildMacro>
<BuildMacro Include="wxCfg">
<Value>$(wxCfg)</Value>
</BuildMacro>
<BuildMacro Include="wxVendor">
<Value>$(wxVendor)</Value>
</BuildMacro>
<BuildMacro Include="wxOutDir">
<Value>$(wxOutDir)</Value>
</BuildMacro>
<BuildMacro Include="wxOutDirName">
<Value>$(wxOutDirName)</Value>
</BuildMacro>
<BuildMacro Include="wxIntRootDir">
<Value>$(wxIntRootDir)</Value>
</BuildMacro>
<BuildMacro Include="wxReleaseRuntimeLibrary">
<Value>$(wxReleaseRuntimeLibrary)</Value>
</BuildMacro>
<BuildMacro Include="wxDebugRuntimeLibrary">
<Value>$(wxDebugRuntimeLibrary)</Value>
</BuildMacro>
</ItemGroup>
</Project>