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.

99 lines
4.6 KiB

5 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Assemble" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup>
  4. <Configuration Condition=" '$(Configuration)' == '' ">Debug_Net4</Configuration>
  5. <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  6. <ProjectGuid>{880A3560-82CD-4836-996B-11BEFE6B44DB}</ProjectGuid>
  7. <OutputType>Library</OutputType>
  8. <RootNamespace>BSIPA_Net4_Meta</RootNamespace>
  9. <AssemblyName>BSIPA-Net4-Meta</AssemblyName>
  10. <TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
  11. <FileAlignment>512</FileAlignment>
  12. <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  13. <Deterministic>true</Deterministic>
  14. </PropertyGroup>
  15. <PropertyGroup Condition=" '$(Platform)' == 'x86' ">
  16. <ProxyPlatform>Win32</ProxyPlatform>
  17. </PropertyGroup>
  18. <PropertyGroup Condition=" '$(Platform)' == 'x64' ">
  19. <ProxyPlatform>x64</ProxyPlatform>
  20. </PropertyGroup>
  21. <PropertyGroup Condition=" '$(Configuration)' == 'Debug_Net4' ">
  22. <PlatformTarget>AnyCPU</PlatformTarget>
  23. <DebugSymbols>true</DebugSymbols>
  24. <DebugType>full</DebugType>
  25. <Optimize>false</Optimize>
  26. <OutputPath>bin\Debug_Net4\</OutputPath>
  27. <DefineConstants>DEBUG;TRACE</DefineConstants>
  28. <ErrorReport>prompt</ErrorReport>
  29. <WarningLevel>4</WarningLevel>
  30. <OtherConfig>Debug</OtherConfig>
  31. <ProxyConfig>Release</ProxyConfig>
  32. </PropertyGroup>
  33. <PropertyGroup Condition=" '$(Configuration)' == 'Release_Net4' ">
  34. <PlatformTarget>AnyCPU</PlatformTarget>
  35. <DebugType>pdbonly</DebugType>
  36. <Optimize>true</Optimize>
  37. <OutputPath>bin\Release_Net4\</OutputPath>
  38. <DefineConstants>TRACE</DefineConstants>
  39. <ErrorReport>prompt</ErrorReport>
  40. <WarningLevel>4</WarningLevel>
  41. <OtherConfig>Release</OtherConfig>
  42. <ProxyConfig>Release</ProxyConfig>
  43. </PropertyGroup>
  44. <PropertyGroup Condition=" '$(Configuration)' == 'Verbose_Net4' ">
  45. <PlatformTarget>AnyCPU</PlatformTarget>
  46. <DebugSymbols>true</DebugSymbols>
  47. <DebugType>full</DebugType>
  48. <Optimize>false</Optimize>
  49. <OutputPath>bin\Verbose_Net4\</OutputPath>
  50. <DefineConstants>DEBUG;TRACE</DefineConstants>
  51. <ErrorReport>prompt</ErrorReport>
  52. <WarningLevel>4</WarningLevel>
  53. <OtherConfig>Verbose</OtherConfig>
  54. <ProxyConfig>Verbose_Release</ProxyConfig>
  55. </PropertyGroup>
  56. <PropertyGroup Condition=" '$(Configuration)' == 'Verbose_Release_Net4' ">
  57. <PlatformTarget>AnyCPU</PlatformTarget>
  58. <DebugType>pdbonly</DebugType>
  59. <Optimize>true</Optimize>
  60. <OutputPath>bin\Verbose_Release_Net4\</OutputPath>
  61. <DefineConstants>TRACE</DefineConstants>
  62. <ErrorReport>prompt</ErrorReport>
  63. <WarningLevel>4</WarningLevel>
  64. <OtherConfig>Verbose_Release</OtherConfig>
  65. <ProxyConfig>Verbose_Release</ProxyConfig>
  66. </PropertyGroup>
  67. <Target Name="Clean">
  68. <ItemGroup>
  69. <Files Include="$(OutputPath)**\*" />
  70. </ItemGroup>
  71. <Delete Files="@(Files)" />
  72. </Target>
  73. <Target Name="Rebuild">
  74. <CallTarget Targets="Assemble" />
  75. </Target>
  76. <Target Name="Build">
  77. <CallTarget Targets="Assemble" />
  78. </Target>
  79. <ItemGroup>
  80. <InputDlls Include="$(SolutionDir)IPA.Injector\bin\$(OtherConfig)\**\*" Exclude="$(SolutionDir)IPA.Injector\bin\$(OtherConfig)\Libraries\**\*" />
  81. <InputDlls Include="$(SolutionDir)Doorstop\Proxy\bin\$(ProxyPlatform)\$(ProxyConfig)\**\*.dll" />
  82. <InputDlls Include="$(SolutionDir)Doorstop\Proxy\bin\$(ProxyPlatform)\$(ProxyConfig)\**\*.pdb" />
  83. <InputIPAFiles Include="$(SolutionDir)IPA\bin\$(OtherConfig)\**\*" />
  84. </ItemGroup>
  85. <Target Name="Assemble" Returns="$(OutputPath)">
  86. <Message Text="Packing..." Importance="High" />
  87. <Message Text="Results will be put in $(OutputPath)" Importance="High" />
  88. <Copy SourceFiles="@(InputDlls)" DestinationFolder="$(OutputPath)IPA\%(RecursiveDir)" />
  89. <Move SourceFiles="$(OutputPath)IPA\proxy.dll" DestinationFiles="$(OutputPath)IPA\winhttp.dll" />
  90. <Move Condition="Exists('$(OutputPath)IPA\proxy.pdb')" SourceFiles="$(OutputPath)IPA\proxy.pdb" DestinationFiles="$(OutputPath)IPA\winhttp.pdb" />
  91. <Copy SourceFiles="@(InputIPAFiles)" DestinationFolder="$(OutputPath)%(RecursiveDir)" />
  92. <ItemGroup>
  93. <BadFiles Include="$(OutputPath)*.dll" />
  94. <BadFiles Include="$(OutputPath)*.pdb" Condition="'$(Configuration)'=='Release_Net4' Or '$(Configuration)'=='Verbose_Release_Net4'" />
  95. <BadFiles Include="$(OutputPath)IPA\*.pdb" Condition="'$(Configuration)'=='Release_Net4' Or '$(Configuration)'=='Verbose_Release_Net4'" />
  96. </ItemGroup>
  97. <Delete Files="@(BadFiles)" />
  98. <RemoveDir Directories="$(OutputPath)Libraries\" />
  99. </Target>
  100. </Project>