-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathILRepack.targets
More file actions
36 lines (28 loc) · 1.38 KB
/
ILRepack.targets
File metadata and controls
36 lines (28 loc) · 1.38 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
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="BuildHookBinaries" AfterTargets="Build" Condition="!Exists('$(TargetDir)FEZ.Hooks.mm.dll')">
<MakeDir Directories="$(TargetDir)"/>
<ItemGroup>
<HookBinaries Include="FEZ.exe" />
<HookBinaries Include="FezEngine.dll" />
<HookBinaries Include="FNA.dll" />
</ItemGroup>
<Exec
Command='"$(TargetDir)\HATDependencies\MonoMod\MonoMod.RuntimeDetour.HookGen.exe" "$(ProjectDir)\Dependencies\%(HookBinaries.Identity)" "$(TargetDir)MMHOOK_%(HookBinaries.Identity)"'
WorkingDirectory="$(TargetDir)\HATDependencies\MonoMod"
Condition="'$(OS)' == 'Windows_NT'" />
<Exec
Command='mono "$(TargetDir)/HATDependencies/MonoMod/MonoMod.RuntimeDetour.HookGen.exe" "$(ProjectDir)/Dependencies/%(HookBinaries.Identity)" "$(TargetDir)MMHOOK_%(HookBinaries.Identity)"'
WorkingDirectory="$(TargetDir)/HATDependencies/MonoMod"
Condition="'$(OS)' != 'Windows_NT'" />
<ItemGroup>
<GeneratedHookBinaries Include="$(TargetDir)MMHOOK_%(HookBinaries.Identity)"/>
</ItemGroup>
<ILRepack
Parallel = "True"
InputAssemblies = "@(GeneratedHookBinaries)"
TargetKind = "Dll"
OutputFile = "$(TargetDir)FEZ.Hooks.mm.dll" />
<Delete Files="@(GeneratedHookBinaries)" />
</Target>
</Project>