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.

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