Sfoglia il codice sorgente

Add build configuration for COM3D2.5

Can't compile for COM25 yet though because IKCtrlData has changed to
AIKCtrl. Gonna see if getting COM25 support is as easy as changing the
type declaration.
habeebweeb 2 anni fa
parent
commit
386cd9bbf9
2 ha cambiato i file con 26 aggiunte e 1 eliminazioni
  1. 18 1
      Directory.Build.props
  2. 8 0
      MeidoPhotoStudio.Plugin.sln

+ 18 - 1
Directory.Build.props

@@ -5,10 +5,27 @@
     <LangVersion>10</LangVersion>
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     <CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)StyleCop.ruleset</CodeAnalysisRuleSet>
+    <Platforms>AnyCPU</Platforms>
+    <Configurations>Debug-COM25;Release-COM25;Release;Debug</Configurations>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" $(Configuration.StartsWith('Debug')) ">
+    <DebugSymbols>true</DebugSymbols>
+    <Optimize>false</Optimize>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" $(Configuration.StartsWith('Release')) ">
+    <DebugSymbols>false</DebugSymbols>
+    <Optimize>true</Optimize>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" $(Configuration.EndsWith('COM25')) ">
+    <DefineConstants>COM25</DefineConstants>
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="COM3D2.GameLibs" Version="2.17.0-r.0" />
+    <PackageReference Include="COM3D2.GameLibs" Version="2.17.0-r.0" Condition="!$(DefineConstants.Contains(COM25))" />
+    <PackageReference Include="COM3D2.GameLibs" Version="3.16.0-r.0" Condition="$(DefineConstants.Contains(COM25))" />
     <PackageReference Include="UnityEngine" Version="5.6.1" />
     <PackageReference Include="BepInEx.BaseLib" Version="5.4.19" />
     <PackageReference Include="HarmonyX" Version="2.9.0" />

+ 8 - 0
MeidoPhotoStudio.Plugin.sln

@@ -10,14 +10,22 @@ Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
 		Release|Any CPU = Release|Any CPU
+		Release-COM25|Any CPU = Release-COM25|Any CPU
+		Debug-COM25|Any CPU = Debug-COM25|Any CPU
 	EndGlobalSection
 	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{5FA40522-E0AC-459A-A571-DD0051217AB6}.Release-COM25|Any CPU.ActiveCfg = Release-COM25|Any CPU
+		{5FA40522-E0AC-459A-A571-DD0051217AB6}.Release-COM25|Any CPU.Build.0 = Release-COM25|Any CPU
 		{5FA40522-E0AC-459A-A571-DD0051217AB6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{5FA40522-E0AC-459A-A571-DD0051217AB6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{5FA40522-E0AC-459A-A571-DD0051217AB6}.Debug-COM25|Any CPU.ActiveCfg = Debug-COM25|Any CPU
+		{5FA40522-E0AC-459A-A571-DD0051217AB6}.Debug-COM25|Any CPU.Build.0 = Debug-COM25|Any CPU
 		{5FA40522-E0AC-459A-A571-DD0051217AB6}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{5FA40522-E0AC-459A-A571-DD0051217AB6}.Release|Any CPU.Build.0 = Release|Any CPU
+		{19D28B0C-3537-4FEE-B7B3-1ABF70B16D5E}.Release-COM25|Any CPU.ActiveCfg = Release-COM25|Any CPU
 		{19D28B0C-3537-4FEE-B7B3-1ABF70B16D5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{19D28B0C-3537-4FEE-B7B3-1ABF70B16D5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{19D28B0C-3537-4FEE-B7B3-1ABF70B16D5E}.Debug-COM25|Any CPU.ActiveCfg = Debug-COM25|Any CPU
 		{19D28B0C-3537-4FEE-B7B3-1ABF70B16D5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{19D28B0C-3537-4FEE-B7B3-1ABF70B16D5E}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection