-
Notifications
You must be signed in to change notification settings - Fork 1
/
ILRepack.targets
31 lines (24 loc) · 1.04 KB
/
ILRepack.targets
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
<?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"
/>
<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>