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.

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