mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
* 设置文件版本信息 不固定为 0.0.0.0,可以不打开应用时读取版本信息 TouchHelper 版本检查和 Updater 检查更新时可以直接从文件读取版本号 * 设置文件版本号时不考虑MP_VERSION_TAG 同时从 public.py 中移除替换逻辑 * chore: RC 优化 1. 用 MP_VERSION_STRING 取代 MP_VERSION_TAG,前者不包含开头的 v 字符 2. RC 文件不再支持 VS 编辑,删除了冗余代码。区域由非特定语言改为 en-US 3. STRINGIFY 和 WIDEN_STRINGIFY 宏移到通用头文件 * chore: 简化 resource.h * chore: 删除 APSTUDIO_READONLY_SYMBOLS 宏 这个宏供 VS 资源编辑器使用 * chore: 始终定义 MP_MEOW_VERSION 通过 MP_VERSION_STRING 区分开发版本和发布版本 * chore: 简化版本字符串提取 使用了正则表达式的正向先行断言 --------- Co-authored-by: Xu <blinue@outlook.com>
46 lines
2.2 KiB
XML
46 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<ItemGroup Label="ProjectConfigurations">
|
|
<ProjectConfiguration Include="Debug|x64">
|
|
<Configuration>Debug</Configuration>
|
|
<Platform>x64</Platform>
|
|
</ProjectConfiguration>
|
|
<ProjectConfiguration Include="Debug|ARM64">
|
|
<Configuration>Debug</Configuration>
|
|
<Platform>ARM64</Platform>
|
|
</ProjectConfiguration>
|
|
<ProjectConfiguration Include="Release|x64">
|
|
<Configuration>Release</Configuration>
|
|
<Platform>x64</Platform>
|
|
</ProjectConfiguration>
|
|
<ProjectConfiguration Include="Release|ARM64">
|
|
<Configuration>Release</Configuration>
|
|
<Platform>ARM64</Platform>
|
|
</ProjectConfiguration>
|
|
</ItemGroup>
|
|
|
|
<!-- 编译选项 -->
|
|
<Import Project="$(MSBuildThisFileDirectory)\BuildOptions.props" />
|
|
|
|
<PropertyGroup>
|
|
<DefaultLanguage>en-US</DefaultLanguage>
|
|
<MajorVersion Condition="'$(MajorVersion)' == ''">0</MajorVersion>
|
|
<MinorVersion Condition="'$(MinorVersion)' == ''">0</MinorVersion>
|
|
<PatchVersion Condition="'$(PatchVersion)' == ''">0</PatchVersion>
|
|
<!-- 可通过 VersionString 区分开发版本和发布版本 -->
|
|
<VersionString Condition="'$(VersionString)' == '' And ('$(MajorVersion)' != '0' Or '$(MinorVersion)' != '0' Or '$(PatchVersion)' != '0')">$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionString>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Label="Configuration">
|
|
<PlatformToolset Condition="$(UseClangCL)">ClangCL</PlatformToolset>
|
|
<VS17 Condition="$([System.String]::new('$(MSBuildVersion)').StartsWith('17'))">true</VS17>
|
|
<VS17 Condition="'$(VS17)' != 'true'">false</VS17>
|
|
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
|
|
<VCProjectVersion Condition="$(VS17)">17.0</VCProjectVersion>
|
|
<VCProjectVersion Condition="!$(VS17)">18.0</VCProjectVersion>
|
|
<PlatformToolset Condition="!$(UseClangCL) And $(VS17)">v143</PlatformToolset>
|
|
<PlatformToolset Condition="!$(UseClangCL) And !$(VS17)">v145</PlatformToolset>
|
|
<UseDebugLibraries Condition="'$(Configuration)' == 'Debug'">true</UseDebugLibraries>
|
|
<WholeProgramOptimization Condition="'$(Configuration)' == 'Release'">true</WholeProgramOptimization>
|
|
</PropertyGroup>
|
|
</Project>
|