-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBatRun.csproj
More file actions
197 lines (167 loc) · 8.45 KB
/
Copy pathBatRun.csproj
File metadata and controls
197 lines (167 loc) · 8.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net10.0-windows7.0</TargetFramework>
<Version>3.1.0</Version>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
<IncludeNativeLibrariesForSelfExtract>false</IncludeNativeLibrariesForSelfExtract>
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<ServerGarbageCollection>false</ServerGarbageCollection>
<GarbageCollectionAdaptationMode>1</GarbageCollectionAdaptationMode>
<RetainVMGarbageCollection>false</RetainVMGarbageCollection>
<ConcurrentGarbageCollection>false</ConcurrentGarbageCollection>
<HeapCount>1</HeapCount>
<GCAllowVeryLargeObjects>false</GCAllowVeryLargeObjects>
<GCServer>false</GCServer>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Guardian\**" />
<Compile Remove="z.BatRun_Arcade_mode_*\**" />
<EmbeddedResource Remove="Guardian\**" />
<EmbeddedResource Remove="z.BatRun_Arcade_mode_*\**" />
<None Remove="Guardian\**" />
<None Remove="z.BatRun_Arcade_mode_*\**" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Compile Update="UI\MappingConfigurationForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="UI\MappingConfigurationForm.Designer.cs">
<DependentUpon>MappingConfigurationForm.cs</DependentUpon>
</Compile>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<None Update="SDL2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="LibVLCSharp.WinForms" Version="3.9.6" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
<PackageReference Include="SDL2-CS.NetCore" Version="2.0.8" />
<PackageReference Include="SharpDX" Version="4.2.0" />
<PackageReference Include="SharpDX.DirectInput" Version="4.2.0" />
<PackageReference Include="SharpDX.XInput" Version="4.2.0" />
<PackageReference Include="VideoLAN.LibVLC.Windows" Version="3.0.23" />
</ItemGroup>
<ItemGroup>
<Content Include="Locales\**\*.po">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<!--
Build the Guardian sub-project alongside BatRun. We force Platform=x64 + RID
win-x64 so the Guardian ends up directly under bin/Debug/net10.0-windows7.0/win-x64/
next to BatRun.exe, not in the stale AnyCPU default folder
(bin/Debug/net10.0-windows7.0/).
-->
<Target Name="BuildGuardian" BeforeTargets="BeforeBuild">
<Exec Command="dotnet build $(MSBuildThisFileDirectory)Guardian\BatRunGuardian.csproj -c $(Configuration) -p:Platform=x64 -r win-x64" />
</Target>
<Target Name="CleanGuardian" BeforeTargets="Clean">
<Exec Command="dotnet clean $(MSBuildThisFileDirectory)Guardian\BatRunGuardian.csproj -c $(Configuration) -p:Platform=x64 -r win-x64" ContinueOnError="true" />
<PropertyGroup>
<GuardianBinFolder>$(MSBuildThisFileDirectory)Guardian\bin\</GuardianBinFolder>
<GuardianObjFolder>$(MSBuildThisFileDirectory)Guardian\obj\</GuardianObjFolder>
</PropertyGroup>
<ItemGroup>
<_GuardianRoots Include="$(GuardianBinFolder);$(GuardianObjFolder)" />
<_GuardianOutputs Include="$(OutputPath)BatRunGuardian.exe" />
<_GuardianOutputs Include="$(OutputPath)BatRunGuardian.pdb" />
</ItemGroup>
<RemoveDir Directories="@(_GuardianRoots)" />
<Delete Files="@(_GuardianOutputs)" TreatErrorsAsWarnings="true" />
</Target>
<!-- Configuration pour les DLLs de LibVLC -->
<Target Name="CopyLibVLCBinaries" AfterTargets="Build">
<PropertyGroup>
<LibVLCDir>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)$(BaseOutputPath)$(Configuration)/$(TargetFramework)/libvlc'))</LibVLCDir>
</PropertyGroup>
<ItemGroup>
<LibVLCFiles Include="$(NuGetPackageRoot)\videolan.libvlc.windows\3.0.20\build\x64\**\*.*" />
</ItemGroup>
<Copy SourceFiles="@(LibVLCFiles)" DestinationFiles="@(LibVLCFiles->'$(LibVLCDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
<Message Text="Copied LibVLC files to: $(LibVLCDir)" Importance="high" />
</Target>
<Target Name="CopyMoonlightWebStream" AfterTargets="Build">
<PropertyGroup>
<!-- EN: Destination = .moonlight-web-stream subfolder next to BatRun.exe -->
<!-- FR: Destination = sous-dossier .moonlight-web-stream à côté de BatRun.exe -->
<MoonlightDestDir>$(OutputPath).moonlight-web-stream\</MoonlightDestDir>
</PropertyGroup>
<ItemGroup>
<!-- EN: Group sources by their intended destination subfolder -->
<!-- FR: Groupement des sources par sous-dossier de destination -->
<MoonlightStaticInclude Include="fork_moonlight-web-stream\moonlight-web-stream-master\dist\**\*.*" />
<MoonlightWebSourceInclude Include="fork_moonlight-web-stream\moonlight-web-stream-master\web\**\*.*" />
<MoonlightServerInclude Include="fork_moonlight-web-stream\moonlight-web-stream-master\server\**\*.*" />
</ItemGroup>
<!-- EN: Copy compiled JS and assets to /static -->
<!-- FR: Copier le JS compilé et les assets vers /static -->
<Copy SourceFiles="@(MoonlightStaticInclude)" DestinationFiles="@(MoonlightStaticInclude->'$(MoonlightDestDir)static\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="false" />
<!-- EN: Copy TS sources to /static (for debugging/completeness) -->
<!-- FR: Copier les sources TS vers /static (pour debug/complétude) -->
<Copy SourceFiles="@(MoonlightWebSourceInclude)" DestinationFiles="@(MoonlightWebSourceInclude->'$(MoonlightDestDir)static\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="false" />
<!-- EN: Copy server files (config/readme) to /server -->
<!-- FR: Copier les fichiers serveur (config/readme) vers /server -->
<Copy SourceFiles="@(MoonlightServerInclude)" DestinationFiles="@(MoonlightServerInclude->'$(MoonlightDestDir)server\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="false" />
<Message Text="[BatRun] Moonlight Web Stream assets updated in: $(MoonlightDestDir)" Importance="high" />
</Target>
<Target Name="DeepCleanBinaries" AfterTargets="Clean">
<PropertyGroup>
<TargetCleanDir>$([System.IO.Path]::GetFullPath('$(OutputPath)'))</TargetCleanDir>
</PropertyGroup>
<Message Text="[BatRun Clean] Nettoyage ciblé des binaires .NET dans : $(TargetCleanDir)" Importance="high" />
<ItemGroup>
<_FilesToClean Include="$(TargetCleanDir)**\*.dll" />
<_FilesToClean Include="$(TargetCleanDir)**\*.exe" />
<_FilesToClean Include="$(TargetCleanDir)**\*.pdb" />
<_FilesToClean Include="$(TargetCleanDir)**\*.deps.json" />
<_FilesToClean Include="$(TargetCleanDir)**\*.runtimeconfig.json" />
<_FilesToClean Remove="$(TargetCleanDir)**\*.ini" />
<_FilesToClean Remove="$(TargetCleanDir)SDL2.dll" />
<_FilesToClean Remove="$(TargetCleanDir)config.ini" />
</ItemGroup>
<Delete Files="@(_FilesToClean)" ContinueOnError="true" />
<ItemGroup>
<_EmptyDirs Include="$(TargetCleanDir)**\*" />
</ItemGroup>
<RemoveDir Directories="@(_EmptyDirs)" ContinueOnError="true" />
</Target>
</Project>