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.

95 lines
4.5 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. <PropertyGroup Condition=" '$(Platform)' == 'x64' " />
  17. <PropertyGroup Condition=" '$(Configuration)' == 'Debug_Net4' ">
  18. <PlatformTarget>AnyCPU</PlatformTarget>
  19. <DebugSymbols>true</DebugSymbols>
  20. <DebugType>full</DebugType>
  21. <Optimize>false</Optimize>
  22. <OutputPath>bin\Debug\</OutputPath>
  23. <DefineConstants>DEBUG;TRACE</DefineConstants>
  24. <ErrorReport>prompt</ErrorReport>
  25. <WarningLevel>4</WarningLevel>
  26. <OtherConfig>Debug</OtherConfig>
  27. <ProxyConfig>Release</ProxyConfig>
  28. </PropertyGroup>
  29. <PropertyGroup Condition=" '$(Configuration)' == 'Release_Net4' ">
  30. <PlatformTarget>AnyCPU</PlatformTarget>
  31. <DebugType>pdbonly</DebugType>
  32. <Optimize>true</Optimize>
  33. <OutputPath>bin\Release\</OutputPath>
  34. <DefineConstants>TRACE</DefineConstants>
  35. <ErrorReport>prompt</ErrorReport>
  36. <WarningLevel>4</WarningLevel>
  37. <OtherConfig>Release</OtherConfig>
  38. <ProxyConfig>Release</ProxyConfig>
  39. </PropertyGroup>
  40. <PropertyGroup Condition=" '$(Configuration)' == 'Verbose_Net4' ">
  41. <PlatformTarget>AnyCPU</PlatformTarget>
  42. <DebugSymbols>true</DebugSymbols>
  43. <DebugType>full</DebugType>
  44. <Optimize>false</Optimize>
  45. <OutputPath>bin\Verbose\</OutputPath>
  46. <DefineConstants>DEBUG;TRACE</DefineConstants>
  47. <ErrorReport>prompt</ErrorReport>
  48. <WarningLevel>4</WarningLevel>
  49. <OtherConfig>Verbose</OtherConfig>
  50. <ProxyConfig>Verbose_Release</ProxyConfig>
  51. </PropertyGroup>
  52. <PropertyGroup Condition=" '$(Configuration)' == 'Verbose_Release_Net4' ">
  53. <PlatformTarget>AnyCPU</PlatformTarget>
  54. <DebugType>pdbonly</DebugType>
  55. <Optimize>true</Optimize>
  56. <OutputPath>bin\Verbose_Release\</OutputPath>
  57. <DefineConstants>TRACE</DefineConstants>
  58. <ErrorReport>prompt</ErrorReport>
  59. <WarningLevel>4</WarningLevel>
  60. <OtherConfig>Verbose_Release</OtherConfig>
  61. <ProxyConfig>Verbose_Release</ProxyConfig>
  62. </PropertyGroup>
  63. <Target Name="Clean">
  64. <ItemGroup>
  65. <Files Include="$(OutputPath)**\*" />
  66. </ItemGroup>
  67. <Delete Files="@(Files)" />
  68. </Target>
  69. <Target Name="Rebuild">
  70. <CallTarget Targets="Assemble" />
  71. </Target>
  72. <Target Name="Build">
  73. <CallTarget Targets="Assemble" />
  74. </Target>
  75. <ItemGroup>
  76. <InputDlls Include="$(SolutionDir)IPA.Injector\bin\$(OtherConfig)\**\*" Exclude="$(SolutionDir)IPA.Injector\bin\$(OtherConfig)\Libraries\**\*" />
  77. <InputDlls Include="$(SolutionDir)Doorstop\Proxy\bin\$(Platform)\$(ProxyConfig)\**\*.dll" />
  78. <InputDlls Include="$(SolutionDir)Doorstop\Proxy\bin\$(Platform)\$(ProxyConfig)\**\*.pdb" />
  79. <InputIPAFiles Include="$(SolutionDir)IPA\bin\$(OtherConfig)\**\*" />
  80. </ItemGroup>
  81. <Target Name="Assemble" Returns="$(OutputPath)">
  82. <Message Text="Packing..." Importance="High" />
  83. <Message Text="Results will be put in $(OutputPath)" Importance="High" />
  84. <Copy SourceFiles="@(InputDlls)" DestinationFolder="$(OutputPath)IPA\%(RecursiveDir)" />
  85. <Move SourceFiles="$(OutputPath)IPA\proxy.dll" DestinationFiles="$(OutputPath)IPA\winhttp.dll" />
  86. <Move Condition="Exists('$(OutputPath)IPA\proxy.pdb')" SourceFiles="$(OutputPath)IPA\proxy.pdb" DestinationFiles="$(OutputPath)IPA\winhttp.pdb" />
  87. <Copy SourceFiles="@(InputIPAFiles)" DestinationFolder="$(OutputPath)%(RecursiveDir)" />
  88. <ItemGroup>
  89. <BadFiles Include="$(OutputPath)*.dll" />
  90. <BadFiles Include="$(OutputPath)*.pdb" Condition="'$(Configuration)'=='Release_Net4' Or '$(Configuration)'=='Verbose_Release_Net4'" />
  91. <BadFiles Include="$(OutputPath)IPA\*.pdb" Condition="'$(Configuration)'=='Release_Net4' Or '$(Configuration)'=='Verbose_Release_Net4'" />
  92. </ItemGroup>
  93. <Delete Files="@(BadFiles)" />
  94. <RemoveDir Directories="$(OutputPath)Libraries\" />
  95. </Target>
  96. </Project>