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.

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