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.

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