You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.5 KiB

6 years ago
6 years ago
6 years ago
6 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="PostBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
  3. <PropertyGroup>
  4. <OPath></OPath>
  5. <SolDir></SolDir>
  6. </PropertyGroup>
  7. <UsingTask TaskName="AssemblyRename" AssemblyFile="$(SolDir)MSBuildTasks\bin\$(Configuration)\MSBuildTasks.dll" />
  8. <UsingTask TaskName="PdbToMdb" AssemblyFile="$(SolDir)MSBuildTasks\bin\$(Configuration)\MSBuildTasks.dll" />
  9. <Target Name="PostBuild">
  10. <Message Text="Relocating" Importance="normal" />
  11. <ItemGroup>
  12. <SystemFiles Include="$(OPath)IPA.Injector.*" />
  13. <SystemFiles Include="$(OPath)IPA.Loader.*" />
  14. <SystemFiles Include="$(OPath)Libraries\Mono\**\*" />
  15. <OldLibFiles Include="$(OPath)Libs\**\*" />
  16. </ItemGroup>
  17. <Move SourceFiles="@(SystemFiles)" DestinationFolder="$(OPath)Data\Managed" />
  18. <RemoveDir Directories="$(OPath)Libraries\Mono" />
  19. <Delete Files="@(OldLibFiles)" />
  20. <RemoveDir Directories="$(OPath)Libs" />
  21. <ItemGroup>
  22. <LibFiles Include="$(OPath)**\*" Exclude="$(OPath)Data\**\*;$(OPath)Libs\**\*" />
  23. </ItemGroup>
  24. <Move SourceFiles="@(LibFiles)" DestinationFolder="$(OPath)Libs\" />
  25. <RemoveDir Directories="$(OPath)Libraries\Included" />
  26. <RemoveDir Directories="$(OPath)Libraries" />
  27. <ItemGroup>
  28. <ToRename Include="$(OPath)Libs\**\*.dll" />
  29. <ToMdb Include="$(OPath)**\*.pdb" />
  30. </ItemGroup>
  31. <AssemblyRename Assemblies="@(ToRename)" />
  32. <PdbToMdb Binaries="@(ToMdb)" />
  33. </Target>
  34. </Project>