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.

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